// convert all characters to lowercase to simplify testing var agt=navigator.userAgent.toLowerCase(); // *** BROWSER VERSION *** // Note: On IE5, these return 4, so use is_ie5up to detect IE5. var is_major = parseInt(navigator.appVersion); var is_minor = parseFloat(navigator.appVersion); // Note: Opera and WebTV spoof Navigator. We do strict client detection. // If you want to allow spoofing, take out the tests for opera and webtv. var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)); var is_nav2 = (is_nav && (is_major == 2)); var is_nav3 = (is_nav && (is_major == 3)); var is_nav4 = (is_nav && (is_major == 4)); var is_nav4up = (is_nav && (is_major >= 4)); var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) ); var is_nav6 = (is_nav && (is_major == 5)); var is_nav6up = (is_nav && (is_major >= 5)); var is_gecko = (agt.indexOf('gecko') != -1); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie3 = (is_ie && (is_major < 4)); var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) ); var is_ie4up = (is_ie && (is_major >= 4)); var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); var is_ie5_5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1)); var is_ie5up = (is_ie && !is_ie3 && !is_ie4); var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5); var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) ); var is_ie6up = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5); var timeoutID; var overdiv="0";; function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; 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"; } if ( is_nav6 || is_gecko ){ pad="0"; bord="1 bordercolor=black"; }else { pad="1"; bord="0"; } desc = "
\n" +"
\n" +descarray[a] +"\n
\n" +"
"; if(is_nav4up && !is_gecko) { document.popupObject.document.write(desc); document.popupObject.document.close(); document.popupObject.left=181;//x+15; document.popupObject.top=y-10; }else if( is_nav6 || is_gecko ){ document.getElementById("popupObject").innerHTML=desc; document.getElementById("popupObject").style.left=181; document.getElementById("popupObject").style.top=(y - 10); }else if(is_ie4up){ popupObject.innerHTML=desc; popupObject.style.pixelLeft=181;//+15; popupObject.style.pixelTop=y-10; } } function hideLayer(){ if (overdiv == "0") { if(is_nav4up && !is_gecko ) {eval(document.popupObject.top="-500");} else if(is_ie4up){popupObject.innerHTML="";} else if( is_gecko) {document.getElementById("popupObject").style.top="-500";} } } // ######## TRACKS MOUSE POSITION FOR POPUP PLACEMENT function handlerMM(e){ x = (is_nav4up) ? e.pageX : event.clientX + document.body.scrollLeft; y = (is_nav4up) ? e.pageY : event.clientY + document.body.scrollTop; } if (is_nav4up && !is_gecko){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; // ######## TRACKS MOUSE POSITION FOR POPUP PLACEMENT var requestNo = 0; function showPDFPopup(url){ var w = window.open("","Disclaimer"+requestNo++,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=10,left=10,width=458,height=310"); w.opener = self; var d = w.document; //I use this variable to save typing d.writeln(''); d.writeln(''); d.writeln('PDF popup'); d.writeln(''); d.writeln(''); d.writeln(''); d.writeln(''); d.writeln(); w.focus(); return true; } // Launch External Browser Window // acts like target="_blank" of file - new // to activate replace the word location only in the // link tag below with the href of the link // // to modify the function -- see below function exWin (exURL) { window.open(exURL, "", "menubar=yes,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width=800,height=800"); } // End External Browser Window // menubar=yes always (disabling, also disables print function) // toolbar=yes always (disable for pop-up non-navigating windows) // directories=no annoying netscape and explorer buttons // status=yes whether status bar at bottom of window is visible // scrollbars=yes can be changed to no // resizable=yes window can be resized by user or not // width=x x is the width in pixels of the window // height=y change y to the height in pixels of the window // External Window Variations used function helpWin (helpURL) { window.open(helpURL, "Help_Center", "menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,width=520,height=400"); } function prWin (prURL) { window.open(prURL, "Press_Releases", "menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,width=520,height=400"); } function contactWin(contactURL) { window.open(contactURL, "Contact_Us", "menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,width=470,height=420"); } var drap=0; function startpopup(path) { NewWin=window.open(path,"name","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=650,height=290"); drap=1; } function winopenpopup(path) { path = "/GO.jsp?go="+path+"&from="+escape(window.location.href); if (drap){ if (navigator.appName == "Microsoft Internet Explorer") { Browser = "Ie"; NewWin.close(); startpopup(path); } else { startpopup(path); NewWin.focus(); } } else startpopup(path); }