var timerID = null; var timerOn = false; var timecount = 200; // Change this to the time delay that you desire function navOver(obj,bgimg) { //alert (obj); //alert (bgimg); document.getElementById(obj).style.backgroundImage = "url(" + bgimg+ ")"; //document.obj.style.backgroundImage = url(bgimg); } function navOverBGColor(obj,bgColor) { //alert (obj); //alert (bgimg); document.getElementById(obj).style.backgroundColor = bgColor; //document.obj.style.backgroundImage = url(bgimg); document.getElementById(obj).style.cursor = "pointer"; } function navOutBGColor(obj,bgColor) { //alert (obj); //alert (bgimg); document.getElementById(obj).style.backgroundColor = bgColor; //document.obj.style.backgroundImage = url(bgimg); document.getElementById(obj).style.cursor = "auto"; } function navOnClick(webLink,newWindow){ if (newWindow != '') { window.open(webLink,'res'); } else { window.location.href = webLink; } } //Start Drop Down Funtions function centerLayer() { hideLayer('Lodging'); hideLayer('Packages'); hideLayer('AreaInfo'); if (navigator.appName == "Netscape") { if(window.scrollbars.visible == "true") { xcoord = ((self.innerWidth - 18)/2) - 400; } else { xcoord = (self.innerWidth/2) - 400; } } else { xcoord = (document.body.clientWidth / 2)-400; } //alert(xcoord); ycoord = 181; document.getElementById('main').style.left = xcoord; document.getElementById('main').style.top = ycoord; } function showLayer(layerName) { document.getElementById(layerName).style.visibility="visible"; } function hideLayer(layerName) { document.getElementById(layerName).style.visibility="hidden"; } function hideAll() { hideLayer('Lodging'); hideLayer('Packages'); hideLayer('AreaInfo'); //Put all layers used in the nav here. } function startTime() { if (timerOn == false) { timerID=setTimeout( "hideAll()" , timecount); timerOn = true; } } function stopTime() { if (timerOn) { clearTimeout(timerID); timerID = null; timerOn = false; } }