//************************************************************* // MouseOver Functions //************************************************************* function swapImage(strImage,blnState,strArea){ var strImageName = (blnState) ? "_images/" + strArea + "/" + strImage + "-1.gif" : "_images/" + strArea + "/" + strImage + "-0.gif"; document.images[strImage].src = strImageName; } function swapImage01(strImage,blnState){ var strImageName = (blnState) ? "../_images/" + strImage + "-1.gif" : "../_images/" + strImage + "-0.gif"; document.images[strImage].src = strImageName; } function swapImage02(strImage,blnState){ var strImageName = (blnState) ? "_images/" + strImage + "-1.gif" : "_images/" + strImage + "-0.gif"; document.images[strImage].src = strImageName; } function switchRestaurant(strImage){ document.images["main"].src = "../_images/eating-out/" + strImage + ".jpg" } function switchClass(objElement,blnState){ var strClassName = (blnState) ? "standardLinkOn" : "standardLinkOff"; if(objElement.className) objElement.className = strClassName; } //************************************************************* // MouseOver Functions //************************************************************* function displayBox(strElement1,strElement2,strElement3,strElement4){ if(document.all){ document.all[strElement1].style.display = "block"; document.all[strElement2].style.display = "block"; document.all[strElement3].style.display = "none"; document.all[strElement4].style.display = "none"; } else if (document.layers){ document.layers(strElement1).style.display = "block"; document.layers(strElement2).style.display = "block"; document.layers(strElement3).style.display = "none"; document.layers(strElement4).style.display = "none"; } else if (document.getElementById){ document.getElementById(strElement1).style.display = "block"; document.getElementById(strElement2).style.display = "block"; document.getElementById(strElement3).style.display = "none"; document.getElementById(strElement4).style.display = "none"; } } function hideBox(strElement1,strElement2,strElement3,strElement4){ if(document.all){ document.all[strElement1].style.display = "none"; document.all[strElement2].style.display = "none"; document.all[strElement3].style.display = "block"; document.all[strElement4].style.display = "block"; } else if (document.layers){ document.layers(strElement1).style.display = "none"; document.layers(strElement2).style.display = "none"; document.layers(strElement3).style.display = "blockz"; document.layers(strElement4).style.display = "block"; } else if(document.getElementById){ document.getElementById(strElement1).style.display = "none"; document.getElementById(strElement2).style.display = "none"; document.getElementById(strElement3).style.display = "block"; document.getElementById(strElement4).style.display = "block"; } }