function showIt(object) { object.visibility = VISIBLE; } function hideIt(object) { object.visibility = HIDDEN; } function clickIE() { if (document.all) { return false; } } function clickNS(e) { if (document.layers || (document.getElementById && !document.all)) { if (e.which == 2 || e.which == 3) { return false; } } } function toggleVis(divID, state) // 1 visible, 0 hidden { var obj = document.layers ? document.layers[divID] : document.getElementById ? document.getElementById(divID).style : document.all[divID].style; obj.visibility = document.layers ? (state ? "show" : "hide") : (state ? "visible" : "hidden"); } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS; var HIDDEN = 'hide'; var VISIBLE = 'show'; } else { var HIDDEN = 'hidden'; var VISIBLE = 'visible'; document.onmouseup=clickNS; document.oncontextmenu=clickIE; } document.oncontextmenu=new Function("return false"); //---------------------------Image Replacement Code Begins--------------------------------- //A required Variable for the loadImages() function loadedImages = null /** * loadImages() accepts a list of file names to load into cache. * For each file name it creates a new image object and begins * downloading the file into the browser's cache. **/ function loadImages(){ var img if (document.images){ if (!loadedImages) loadedImages = new Array() for (var i=0; i < arguments.length; i++){ img = new Image() img.src = arguments[i] loadedImages[loadedImages.length] = img } } } /** * flip(imgName, imgSrc) sets the src attribute of a named * image in the current document. The function must be passed * two strings. The first is the name of the image in the document * and the second is the source to set it to. **/ function flip(imgName, imgSrc){ if (document.images){ document[imgName].src = imgSrc } } //Fix Netscape resize bug for mouseDown and mouseUp events. function fixNetscape4(){ NS4 = document.layers NSVer = parseFloat(navigator.appVersion) if (NSVer >= 5.0 || NSVer < 4.1) NS4 = false function forceReload() { window.location.reload() } if (NS4) onresize = forceReload } //---------------------------Image Replacement Code Ends-----------------------------------