// JavaScript Document function navover(object) { object.style.backgroundColor = "#E7EBEB"; } function navout(object) { object.style.backgroundColor = ""; } 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 showLayer(layerName) { var imgObj = document.getElementById(layerName + 'Img'); var layerObj = document.getElementById(layerName); layerObj.style.visibility="visible"; } function hideLayer(layerName) { document.getElementById(layerName).style.visibility="hidden"; } function hideAll() { hideLayer('Layer1'); hideLayer('Layer2'); hideLayer('Layer3'); hideLayer('Layer4'); hideLayer('Layer5'); hideLayer('Layer6'); hideLayer('Layer7'); //Put all layers used in the nav here. } function hideSub() { hideLayer('Layer1-1'); hideLayer('Layer1-2'); hideLayer('Layer2-1'); hideLayer('Layer2-2'); //Put all SUB 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( "hideSub()" , timecountSub); timerOnSub = true; } } function stopTimeSub() { if (timerOnSub) { clearTimeout(timerIDSub); timerIDSub = null; timerOnSub = false; } }