
var dMsg = false;
var cStts = false;
var dfltStts = 'Save Our Stepney';
window.defaultStatus = 'Save Our Stepney';
var dateToday = new Date();
var jcopyright = ' 2006-'+dateToday.getFullYear()+' ';

/* Tool Tip Setup */
var ttImage = '<img src="http://www.stepneyct.org/favicon.png" width="16" height="16">&nbsp;&nbsp;';
var ttMsg000 = ttImage+'Click to enter Save Our Stepney Task Force.';
var ttMsg001 = ttImage+'Return to the Save Our Stepney Home Page.';

/*
Open Centered Popup Window Script-
© DHTML Shock (www.dhtmlshock.com)
To add more shock to your site, visit www.DHTML Shock.com
*/
function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"){
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

// dStts: Display Status Bar Message
function dStts(oStts) {
cStts = false;
document.returnValue = false;
if(document.images) {
  window.status = oStts;
  cStts = true;
  document.returnValue = true; }
}

// rStts: Display Default Status Bar Message
function rStts() {
cStts = false;
document.returnValue = false;
if(document.images) {
  window.status = dfltStts;
  cStts = true;
  document.returnValue = true; }
}

//***********************************************************
// FUNCTION: dSpecial - Display Special Notice
// PARAMETERS:
//  pDateStart format: January 13, 2008 12:00:00
//  pDateExpire format: January 14, 2008 23:59:59
//  pDisplay: HTML to be used
//  pDefault: HTML to be used
//
function dSpecial(pDateStart,pDateExpire,pDisplay,pDefault) {
  var todaysDate = new Date();
  var todaysTime = todaysDate.getTime();
  var messageTimeFrom = Date.parse(pDateStart);
  var messageTimeTo = Date.parse(pDateExpire);
  //********************************************************
  //  If today's date falls within the display date ranges,
  //  display the notice
  //
  if(todaysTime>messageTimeFrom &&
     todaysTime<messageTimeTo) {
    document.write(pDisplay);
  }
  else {
    document.write(pDefault);
  }
}
