//************************************************************* // 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 goHome() { if(confirm("You may lose properties added to a short list if you continue.\n\nAre you sure you want to continue?")){ location = "orders_01.asp"; } else { history.back(); } } //************************************************************* // 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.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.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"; } }