// JavaScript Document 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 function linkIt(obj){ var linkObj = obj.firstChild; //alert(linkObj.href); window.location = linkObj.href; } function over(layerName){ hideAll(); showLayer(layerName); stopTime(); } function out(){ startTime(); } function subOver(layerName){ hideAllSub(); showLayer(layerName); stopTimeSub(); } function subOut(){ startTimeSub(); } function showLayer(layerName) { document.getElementById(layerName).style.display=""; } function hideLayer(layerName) { document.getElementById(layerName).style.display="none"; } function hideAll() { hideLayer('lodging_dd'); hideLayer('activities_dd'); hideLayer('dining_dd'); hideLayer('events_dd'); hideLayer('more_dd'); hideLayer('planners_dd'); //Put all layers used in the nav here. } function hideAllSub() { hideLayer('activities_parks_dd'); hideLayer('activities_tours_dd'); hideLayer('activities_tourstwo_dd'); hideLayer('activities_activities_dd'); hideLayer('more_cities_dd'); //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; } }