/* Copyright 2002 [c] Artlogic Media Limited and its licensors. All rights reserved. (http://www.artlogic.net/) Some portions ('MM SCRIPTS') [c] Macromedia Inc. */ // INIT VARS var pathToImages='/images/'; // BROWSER AND PLATFORM 020130 var bName = navigator.appName; var bVer = parseInt(navigator.appVersion); var agt=navigator.userAgent.toLowerCase(); var OPERA = (agt.indexOf("opera")!=-1); // must be above IE4 as Opera users can set Opera to 'identify' as IE in preferences var NS4 = (bName=="Netscape"&&bVer>=4&&bVer<5); var NS6 = (bName=="Netscape"&&bVer>=5); var IE4 = (bName=="Microsoft Internet Explorer"&&bVer>=4&&!OPERA); var NS3 = (bName=="Netscape" && bVer < 4); var IE3 = (bName=="Microsoft Internet Explorer"&&bVer<4&&!OPERA); var menuActive = 0 var menuOn = 0 var onLayer var timeOn = null var thePlatform; var MAC = (agt.indexOf("mac") != -1); var WIN = (agt.indexOf("win") != -1); var X11 = (agt.indexOf("x11") != -1); var IE4WIN=(IE4&&WIN); var IE4MAC=(IE4&&MAC); var NS4MAC=(NS4&&MAC); var OPERAWIN=(OPERA&&WIN); var OPERAMAC=(OPERA&&MAC); var browserOK=(NS4||NS6||IE4||OPERAWIN) // supported browser for some functions var dropMenuOK=(NS4||NS6||IE4) // supported browsers for drop down menu function if (browserOK) { // support for layer style objects is different in IE and NS if (navigator.appName == "Netscape") { layerStyleRef="layer."; layerRef="document.layers"; styleSwitch=""; }else{ layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style"; } } // BROWSER & PLATFORM SPECIFIC CSS if(1==2) { // D I S A B L E D ! if (IE4MAC) { document.write("\"); } else if (NS4MAC) { document.write("\"); } else if (IE4WIN) { document.write("\"); } else if (OPERAMAC) { document.write("\"); } } // FLASH DETECT 020130 // settable vars var flashVersionRequired = 4; // init vars var hasFlash=false; var flashVersion=0; // flashDetected flags - must be declared globally as they are used by the 'document' object in the IE VBScript var flash2Detected=false; var flash3Detected=false; var flash4Detected=false; var flash5Detected=false; var flash6Detected=false; var flashDetectProcessed=false; function flashDetect() { var maxpluginsFlashVersion = 6; // settable - the maximum version of Flash - set one version ahead. flashDetectProcessed=true; // get detected version on IE4 win which requires a VBScript to detect Flash plugin (requires var IE4WIN, set in BROWSER AND PLATFORM section, above) if(IE4WIN){ document.write("\n"); document.write("on error resume next\n"); document.write("flash2Detected=(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.2\")))\n"); document.write("flash3Detected=(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.3\")))\n"); document.write("flash4Detected=(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.4\")))\n"); document.write("flash5Detected=(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.5\")))\n"); document.write("flash6Detected=(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.6\")))\n"); document.write("\\n"); // break up end tag so it doesn't terminate the script } // get detected version on browsers which have the navigator.plugins array object if (navigator.plugins) { if (navigator.plugins["Shockwave Flash 2.0"]|| navigator.plugins["Shockwave Flash"]) { var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var pluginsFlashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description; var pluginsFlashVersion = parseInt(pluginsFlashDescription.charAt(pluginsFlashDescription.indexOf(".") - 1)); flash2Detected=(pluginsFlashVersion==2); flash3Detected=(pluginsFlashVersion==3); flash4Detected=(pluginsFlashVersion==4); flash5Detected=(pluginsFlashVersion==5); flash6Detected=(pluginsFlashVersion>=6); // use >= on highest version so it will detect future versions } } for (i=2;i<=maxpluginsFlashVersion;i++) { if (eval("flash" + i + "Detected") == true) flashVersion = i; } if(navigator.userAgent.indexOf("WebTV") != -1) flashVersion = 3; // webtv support (version 3) if (flashVersion >= flashVersionRequired) hasFlash = true; } flashDetect(); // call flashDetect function to set vars 'hasFlash' (true,false) and flashVersion (num) function placeFlash(flashMovieURL,fVersion,flashBackgroundColor,flashMovieWidth,flashMovieHeight,altImageURL,altImageAltText,altImageLink,altImageName,altCode) { // Copyright 2002-2003 [c] Arlogic Media Limited - Version 2.1 January 28, 2003 // SYNTAX: placeFlash("flashMovieName",flashVersion,"backgroundColor",width,height,"altImageURL","altImageAltText","altImageLink","altImageName","altCode") // EXAMPLE: placeFlash("/images/fcident.swf",6,"#000000",200,77,"/images/333399.gif","Alternative text","pluginspage","imgName","Alternative code") // set the param - 'altImageLink' - to "pluginspage" to make the image click to the Flash downloads page) // give the image a name using 'altImageName' so you can use an image map for the alternative image // Jan 28, 2003 - added 'altCode' (non-flash html code; if present, supercedes altImage) if (!flashDetectProcessed) flashDetect(); // requires the function flashDetect(), above, to have been run - if it hasn't it is called here if (flashVersion>=fVersion) { var t=""; t+="\"; t+="\\\"; t+="\\"; t+="\"; document.write(t); } else { if (altCode != '') { document.write(altCode); } else { if (altImageLink=="pluginspage") altImageLink="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; if (altImageLink!="") { var faOn="\"; var faOff="\"; } document.write(faOn+"\\""+altImageAltText+"\""+faOff); } } } function getFlash(fVers,fMsg) { // display 'Get Flash Player' image - params: flashVersion, message // define a css style '.getFlashBox' to style the surrounding box if(flashVersion\
\
"; t+="\
"; t+="\"; t+="\\
\
"; t+="\
"; t+=fMsg; t+="\
"; document.write(t) } } // MISC function setStatus(theMsg) { window.status=theMsg; return true; } function returnClientDateLong() { // this function returns the date on the client's computer in the form 'Friday October 12, 2001' var t=""; var today=new Date(); var cdlMonthNames=["January","February","March","April","May","June","July","August","September","October","November","December"]; var cdlDayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; cdl=cdlDayNames[(today.getDay())]+" "+cdlMonthNames[(today.getMonth())]+" "+today.getDate()+", "+today.getYear(); return(cdl); } function clientDateLong() { // this function uses the function 'returnClientDateLong()' to return // the date on the client's computer in the form 'Friday October 12, 2001' // to call this function, place the following code on your page: // document.write("\"+l+"\"); } // MM SCRIPTS function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_setTextOfLayer(objName,x,newText) { //v4.01 if ((obj=MM_findObj(objName))!=null) with (obj) if (document.layers) {document.write(unescape(newText)); document.close();} else innerHTML = unescape(newText); } function MM_showHideLayers() { //v3.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; } obj.visibility=v; } } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&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