function getInternetExplorerVersion() // Returns the version of Internet Explorer or a -1 // (indicating the use of another browser). { var rv = -1; // Return value assumes failure if (navigator.appName == 'Microsoft Internet Explorer') { var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) rv = parseFloat( RegExp.$1 ); } return rv; } function checkIEVersion() { var ver = getInternetExplorerVersion(); if ( ver > -1 ) { if ( ver >= 5.0 ) return true; else return false; } } function swapImgRestore() { var i,x,a=document.sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 5.0)){ document.getElementById("redSquareSub").style.visibility = "visible"; } } function hideDiv(){ if (is.ns4){ if (document.redSquareSub !=null) { if (document.redSquareSub != "undefined") { document.redSquareSub.visibility = 'hide'; } } } var ieVer = getInternetExplorerVersion(); if (ieVer == 4.0){ if (document.all["redSquareSub"] !=null) { if (document.all["redSquareSub"] != "undefined") { document.all["redSquareSub"].style.visibility = "hidden"; } } } if ((is.ns6) || (ieVer >= 5.0)) { if (document.getElementById("redSquareSub") !=null) { if (document.getElementById("redSquareSub") !="undefined") { document.getElementById("redSquareSub").style.visibility = "hidden"; } } } } function showMenuDiv(){ if (is.ns4) { document.myMenu.visibility = 'show'; } var ieVer = getInternetExplorerVersion(); if (ieVer == 4.0){ document.all["myMenu"].style.visibility = "visible"; } if ((is.ns6) || (ieVer >= 5.0)) { document.getElementById("myMenu").style.visibility = "visible"; } } function hideMenuDiv(){ if (is.ns4){ document.myMenu.visibility = 'hide'; } var ieVer = getInternetExplorerVersion(); if (ieVer == 4.0){ document.all["myMenu"].style.visibility = "hidden"; } if ((is.ns6) || (ieVer >= 5.0)){ document.getElementById("myMenu").style.visibility = "hidden"; } } function hideLb(layerName){ if (is.ns4){ document.layers[layerName].visibility = "hide"; } var ieVer = getInternetExplorerVersion(); if (ieVer == 4.0){ document.all[layerName].visibility = "hidden"; } if ((is.ns6) || (ieVer >= 5.0)){ document.getElementById(layerName).style.visibility = "hidden"; } } function showLb(layerName){ if (is.ns4){ document.layers[layerName].visibility = "show"; } var ieVer = getInternetExplorerVersion(); if (ieVer == 4.0){ document.all[layerName].visibility = "visible"; } if ((is.ns6) || (ieVer >= 5.0)){ document.getElementById(layerName).style.visibility = "visible"; } } function BrowserCheck() { var b = navigator.appName; if (b=="Netscape") this.b = "ns"; else if (b=="Microsoft Internet Explorer") this.b = "ie"; else this.b = b; this.version = navigator.appVersion this.v = parseInt(this.version) this.ns = (this.b=="ns" && this.v>=4) this.ns4 = (this.b=="ns" && this.v==4) this.ns6 = (this.b=="ns" && this.v>=5) this.ie = (this.b=="ie" && this.v>=4) this.ie4 = (this.version.indexOf('MSIE 4')>0) this.ie5 = (this.version.indexOf('MSIE 5')>0) this.ie6 = (this.version.indexOf('MSIE 6')>0) this.mac = (navigator.appVersion.indexOf("Mac") != -1) this.min = (this.ns||this.ie) }