// This function returns Internet Explorer's major version number, // or 0 for others. It works by finding the "MSIE " string and // extracting the version number following the space, up to the decimal // point, ignoring the minor version number function msieversion() { var ua = window.navigator.userAgent var msie = ua.indexOf ( "MSIE " ) if ( msie > 0 ) // If Internet Explorer, return version number return parseInt (ua.substring (msie+5, ua.indexOf (".", msie ))) else // If another browser, return 0 return 0 } function clear_focus(e,o,compare){ if (o.value != compare) {return} if(o.firstTime){return} o.firstTime=true o.value="" } function SetCookie (name, value, expires, path, domain, secure) { var expDays = 30; var exp = new Date(); exp.setTime(exp.getTime() + (expDays*24*60*60)); var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : exp; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? ";" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); // alert(document.cookie+"=set "+name+": "+value); } function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function SwitchOnOff(name) { var theValue = GetCookie(name); if (theValue == "off") { theValue = "on";} else { theValue = "off"; } SetCookie(name, theValue); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function DeleteCookie (name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); // This cookie is history var cval = GetCookie (name); document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString(); } function expandmenu(thisclass, thisState) { var theState=""; var thecState=""; var argv = expandmenu.arguments; var argc = expandmenu.arguments.length; if (argc > 1) { thecState=thisState; } else { thecState=GetCookie(thisclass); } if ((thecState == "") || (thecState=="off") || (thecState=="none")) { theState="block"; } else {theState="none"; } // Code for other Exploders if ( msieversion() == 0 ) { document.getElementById(thisclass).style.display = theState; // alert(thisclass+": "+theState+"/"+thecState+" ("+document.getElementById(thisclass).style.display+")"); } else { // This is code for Internet Exploder var theclass=thisclass; divColl = document.all.tags("tr"); for (i=1; i 2) { me.border=itsBorder; } else { me.border="1"; } } function tMouseOutOfMe(me, itsID, itsImage) { me.border="0"; if (tMouseOutOfMe.arguments.length > 2) { me.background=itsImage; } else { me.background=""; } } function ChangeMyBorderStyle(me, itsSet, itsBackColor) { me.style.borderStyle=itsSet; } function changeMyImg(me, itsImage) { me.src = itsImage; } function changeImg(itsID, itsImage) { document.images(itsID).src = itsImage; } function MouseOverImage(me, itsColor) { me.bgColor=itsColor; } function MouseOutOfImage(me, itsColor) { me.bgColor=itsColor; } function ClickMe(itsLocation, itstarget) { window.open(itsLocation, itstarget); } function ShopMe(itsLocation, itstarget, itsMenu) { window.open(itsLocation, itstarget); top.SwitchToMenu(itsMenu); } function GoPrevious() { ThenGoPrevious(); } function GoNext() { ThenGoNext(); } function LogClickMe(itsLocation, itstarget) { infoIframe.onclick(); window.open(itsLocation, itstarget); } SetCookie("ScreenHeight", window.screen.height); SetCookie("ScreenWidth", window.screen.width);