<!-- This page contains all javascript code use in the application.  It is "Included" in "top.html"

  //Create objects for on/off buttons (Global navigation)	
  if (document.images)
   {
     Homeon= new Image();
     Homeon.src="images/HomeOn.gif";  
     Homeoff= new Image();
     Homeoff.src="images/HomeOff.gif";
     
     Specialguestson= new Image();
     Specialguestson.src="images/specialGuestsOn.gif";  
     Specialguestsoff= new Image();
     Specialguestsoff.src="images/specialGuestsOff.gif";
     
	 Calendaron= new Image();
     Calendaron.src="images/calendaron.gif";  
     Calendaroff= new Image();
     Calendaroff.src="images/calendaroff.gif";
	
	 Weeknightson= new Image();
     Weeknightson.src="images/Weeknightson.gif";  
     Weeknightsoff= new Image();
     Weeknightsoff.src="images/Weeknightsoff.gif";
	
	 Newson= new Image();
     Newson.src="images/Newson.gif";  
     Newsoff= new Image();
     Newsoff.src="images/Newsoff.gif";
		
	 Directionson= new Image();
     Directionson.src="images/Directionson.gif";  
     Directionsoff= new Image();
     Directionsoff.src="images/Directionsoff.gif";
		
	 Reviewson= new Image();
     Reviewson.src="images/Reviewson.gif";  
     Reviewsoff= new Image();
     Reviewsoff.src="images/Reviewsoff.gif";
     
     ButtonGreenon= new Image();
     ButtonGreenon.src="images/ButtonGreenOn.gif";  
     ButtonGreenoff= new Image();
     ButtonGreenoff.src="images/ButtonGreenOff.gif";
     
     ButtonGreenoff= new Image();
     ButtonGreenoff.src="images/ButtonGreenOff.gif";  
     ButtonGreenon= new Image();
     ButtonGreenon.src="images/ButtonGreenOn.gif";
     
   
    
   }

//JAF 06/06/2009 for Toggling BackGround Images
function changeBackground(el, imgOn, imgOff){ 
    if (el.style.backgroundImage == "images/" + imgOn) 
        el.style.backgroundImage = "images/" + imgOff;
    else
        el.style.backgroundImage = "images/" + imgOn;
}


//For turning buttons "on"
function ButtonOn(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

//For turning buttons "Off"
function ButtonOff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }

//For "skipping" from a combo box to a page
function goNav(fE) {
				urlStr = fE.options[fE.selectedIndex].value;
				window.parent.location = urlStr;
			}
			
//---->

//For Hover Colors
function setCellColor(foo,foo2)
{
  foo.bgColor=foo2;
}


//For Opening a popup Window
function createWindow(strUrl) {
	var features = 'directories=no' + 
	',width=800' + 
	',height=500' + 
	',screenX=800' +
	',screenY=600' +
	',top=100' +
	',left=100' +
	',location=no' + 
	',menubar=no' + 
	',scrollbars=yes' + 
	',status=yes' + 
	',toolbar=no' + 
	',resizable=yes'; 
	
	window.open(strUrl,'MyWindow',features);
}

 //function for dynamically switching the background image
function changeBg(myObject,sBack) {
    myObject.style.backgroundImage=backgroundImage="url(images/"+ sBack + ")";
}    
		
//---->
