/*------------------------------------------------------------ With many thanks to Seth Van Booven of The Sacramento Bee Modified by Chris Yates, The Island Packet Nov 12, 2002 ------------------------------------------------------------*/ /*---------------------------------------- Init layers for 4+ Browsers ----------------------------------------*/ agt = navigator.userAgent.toLowerCase(); w3c = (document.getElementById) ? true : false; xxx = ((agt.indexOf('opera') != -1) || (agt.indexOf('webtv') != -1) || (agt.indexOf('omniweb') != -1)) ? true : false; ieX = ((agt.indexOf('msie') != -1) && w3c && !xxx) ? true : false; ie4 = ((agt.indexOf('msie') != -1) && (document.all) && !w3c && !xxx) ? true : false; ns6 = ((agt.indexOf('gecko') != -1) && w3c && !xxx) ? true : false; ns4 = (document.layers && !w3c && !xxx) ? true : false; /*---------------------------------------- Function to Show Layers ----------------------------------------*/ function show(id) { if (w3c) { document.getElementById(id).style.visibility = 'visible'; } else if (ns4) { document.layers[id].visibility = 'show'; } else if (ie4) { document.all[id].style.visibility = 'visible'; } } /*---------------------------------------- Function to Hide Layers ----------------------------------------*/ function hide(id) { if (w3c) { document.getElementById(id).style.visibility = 'hidden'; } else if (ns4) { document.layers[id].visibility = 'hide'; } else if (ie4) { document.all[id].style.visibility = 'hidden'; } } /*---------------------------------------- Dynamic Browser Specific CSS ----------------------------------------*/ browser = navigator.appName; os = navigator.platform; netscape = 'Netscape'; mac = 'MacPPC'; if((w3c || ie4) && os == mac && !ns6) { document.write(''); } else if (ns6) { document.write(''); } else if (browser == netscape && os == mac) { document.write(''); } else if (ns4) { document.write(''); } else if (ie4) { document.write(''); } else if (ns6 && os == mac) { document.write(''); } else { document.write(''); } /*---------------------------------------- Netscape Resize Css Fix - thanx to the supa fresh Dan Steinman ----------------------------------------*/ function CSSfix() { if (document.self.CSSfix.initWindowWidth != window.innerWidth || document.self.CSSfix.initWindowHeight != window.innerHeight) { document.location = document.location; } } function CSSfixCheckIn() { if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) { if (typeof document.self == 'undefined') { document.self = new Object; } if (typeof document.self.self_scaleFont == 'undefined') { document.self.CSSfix = new Object; document.self.CSSfix.initWindowWidth = window.innerWidth; document.self.CSSfix.initWindowHeight = window.innerHeight; } window.onresize = CSSfix; } } CSSfixCheckIn() /*---------------------------------------- GENERIC WINDOW OPENER ----------------------------------------*/ function openWin(url,name,options) { win = window.concat(url,name,options); self.name = "main"; win.focus(); } /*---------------------------------------- GENERIC COOKIE SCRIPT (Next 3 functions) ----------------------------------------*/ function getCookieVal(offset) { var endstr=document.cookie.indexOf(";",offset); if (endstr==-1) endstr=document.cookie.length; return unescape(document.cookie.substring(offset,endstr)); } function GetCookie(cname) { var arg=cname+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while (i