var timerID = null; var timerOn = false; var timecount = 200; // Change this to the time delay that you desire var timerIDSub = null; var timerOnSub = false; var timecountSub = 200; // Change this to the time delay that you desire var what = null; var newbrowser = true; var check = false; function showLodgingMap(layerID,imageID,imgSrc,topDown) { if (navigator.appName == "Netscape") { xcoord = (self.innerWidth/2) - 393; } else { xcoord = (document.body.clientWidth / 2) - 383; } //alert(xcoord); document.getElementById(layerID).style.left = xcoord; document.getElementById(layerID).style.top = topDown; document.getElementById(layerID).style.visibility = "visible"; document.getElementById(imageID).src = imgSrc; } function navOver(obj,bgcolor) { //document.getElementById(obj).style.backgroundColor = bgcolor; obj.style.backgroundColor = bgcolor; } function centerLayer(ycoord) { if (navigator.appName == "Netscape") { xcoord = (self.innerWidth/2) - 386; } else { xcoord = (document.body.clientWidth / 2) - 386; } //alert(xcoord); //ycoord = 181; - 29 document.getElementById('mainLayer').style.left = xcoord; document.getElementById('mainLayer').style.top = ycoord; } function showLayer(layerName) { //console.log("Show Layer: " + layerName); document.getElementById(layerName).style.display = ""; //console.log("Display: " + document.getElementById(layerName).style.zIndex); } function hideLayer(layerName) { document.getElementById(layerName).style.display="none"; } function hideAll() { hideLayer('Accomodations'); hideLayer('Activities'); hideLayer('AreaAttractions'); hideLayer('LocationMaps'); hideLayer('ContactReserve'); //Put all layers used in the nav here. } function hideAllSub() { hideLayer('ThingsToDo'); //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; } } function startTimeSub() { if (timerOnSub == false) { timerIDSub=setTimeout( "hideAllSub()" , timecountSub); timerOnSub = true; } } function stopTimeSub() { if (timerOnSub) { clearTimeout(timerIDSub); timerIDSub = null; timerOnSub = false; } }