<!--
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
        //LEFT NAV IMAGES
		var sidenav_EastonTownCenter_over = newImage("images/nav/sidenav_EastonTownCenter_over.gif");
		var sidenav_TheGreene_over = newImage("images/nav/sidenav_TheGreene_over.gif");
		var sidenav_NewportontheLevee_over = newImage("images/nav/sidenav_NewportontheLevee_over.gif");

		var sidenav_LunchMenu_over = newImage("images/nav/sidenav_LunchMenu_over.gif");
		var sidenav_DinnerMenu_over = newImage("images/nav/sidenav_DinnerMenu.gif");
		var sidenav_CocktailandDessertMenu_over = newImage("images/nav/sidenav_CocktailandDessertMenu_over.gif");
		
		
	    //TOP NAV IMAGES
		var topnav_0_over = newImage("images/nav/topnav_home_over.jpg");
		var topnav_1_over = newImage("images/nav/topnav_themenu_over.jpg");
		var topnav_2_over = newImage("images/nav/topnav_thecellar_over.jpg");
		var topnav_3_over = newImage("images/nav/topnav_thespace_over.jpg");
		var topnav_4_over = newImage("images/nav/topnav_thelocations_over.jpg");
		
		//FOOTER IMAGES
		var ln_about_over = newImage("http://www.cafeshishkebab.com/images/ln_about_over.gif");
		var ln_reservations_over = newImage("http://www.cafeshishkebab.com/images/ln_reservations_over.gif");
		var ln_employment_over = newImage("http://www.cafeshishkebab.com/images/ln_employment_over.gif");
		var ln_contact_over = newImage("http://www.cafeshishkebab.com/images/ln_contact_over.gif");
		var ln_map_over = newImage("http://www.cafeshishkebab.com/images/ln_map_over.gif");			
		preloadFlag = true;
	}
}

function newImage(arg) {
	if (document.images) {
		var rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
	else
	{
	return null;
	}
}

function navSelect(theID) {
    
    var theSRC = document.getElementById(theID).src;
    var theIMG = theSRC.substring(theSRC.lastIndexOf('index.html') + 1, theSRC.lastIndexOf('.')); 
     
    //IF '_over' is in the theIMG, remove it. If it's NOT in the theIMG, add it!
    if(theIMG.indexOf('_over')>-1)
        theIMG = theSRC.replace(/_over/, "");
    else
        theIMG = theSRC.replace(theIMG, theIMG + "_over");
        
    if(document.getElementById(theID) && (preloadFlag == true))
      document.getElementById(theID).src = theIMG;

}


function setOverState(theID){
    //The Below sets the over states
    if(document.getElementById(theID)){
        //alert(document.getElementById(theID).src);
        var theSRC = document.getElementById(theID).src;
        var theIMG = theSRC.substring(theSRC.lastIndexOf('index.html') + 1, theSRC.lastIndexOf('.')); 
        theIMG = theSRC.replace(theIMG, theIMG + "_over");
        
        document.getElementById(theID).src= theIMG;
        document.getElementById(theID).onmouseover= null;
        document.getElementById(theID).onmouseout = null;
        document.getElementById(theID).onmousedown= null;
        document.getElementById(theID).onmousedown= null;
    }
     
}


function OpenFeatureWindow(theURL, theParams) { //v2.0
    window.open(theURL,'Features',theParams);
}
   

// -->

