// Script begins

//rollovers

function randomMessage() {
	menuMessages = new Array("Test your smoke detectors every month!", 
						"Support your local volunteers!", 
						"Don't drink & drive!",
						"Always fasten your seatbelts!");

	var randomNumber= Math.round(Math.random()*(menuMessages.length-1));
	document.write(menuMessages[randomNumber]);
}

function menuHighlight(theCell){
	theCell.style.backgroundColor='#900c00';
}

function menuRestore(theCell){
	theCell.style.backgroundColor='';
}

function popWindow(img, w, h)
{
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  var win = window.open(img,'f59','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,width='+w+',height='+h+',resizable=yes,top='+wint+',left='+winl);
  win.focus();
}

function closePopup() { if(win!=null) win.close(); }

var win = null;
function popWindowImg(img, w, h)
{
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  if(win!=null) win.close();
  win = window.open(img,'f59','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width='+w+',height='+h+',resizable=yes,top='+wint+',left='+winl);
  win.focus();
}

function closeWindow(){
self.close()
}

function alertuser(string,redirect)
{
  if(confirm(string))
    location.replace(redirect);
}


// Script ends