function GetBr(){var d=navigator.userAgent.toLowerCase();var a=navigator.appName.toLowerCase();var b=(a=="netscape");if(d.indexOf("msie")!=-1){br="ie";}var c=(d.indexOf("mac")!=-1);if(c){platform="mac";}else{platform="pc";}if(b&&d.indexOf("netscape6")!=-1){ver=d.substr(d.indexOf("netscape6")).split("/")[1];br="nn6";}else{if(b){ver=(b)?parseFloat(navigator.appVersion):d.split(";")[1].substr(6);br="nn4";}}return br;return platform;}var DEFAULT_WINDOW_JS_OPTIONS="width=700,height=500,toolbar=yes,location=yes,menubar=yes,resizable=yes,status=yes,scrollbars=yes";var windowArray=new Array();var windowIndexArray=new Array();function windowHelper(b,a){var c=null;for(i=0;i<windowIndexArray.length;i++){if(windowIndexArray[i]==a){c=windowArray[i];}}if(c==null||c.closed){windowIndexArray[windowArray.length+1]=a;windowArray[windowArray.length+1]=window.open(b,a,DEFAULT_WINDOW_JS_OPTIONS);}else{c.focus();}return false;}function defaultWindowOpener(b,a){return windowOpener(b,a,DEFAULT_WINDOW_JS_OPTIONS);}function windowOpener(e,b,d){var c=null;var a=true;if(windowArray[b]){c=windowArray[b];if(c!=null&&!c.closed){c.location.href=e;a=false;}}if(a){c=window.open(e,b,d);windowArray[b]=c;}c.focus();return false;}function Submitter(a){document.forms[a].submit();}function LoginSubmitter(b){var f=ReadCookie("JSESSIONID");var d=document.forms[b].action;var a=d.indexOf(";jsessionid=");var c=d.length;var e="";if(a==-1){e=document.forms[b].action+";jsessionid="+f;}else{if(c==a+12){e=document.forms[b].action+f;}else{e=d;}}document.forms[b].action=e;document.forms[b].submit();}function ReadCookie(e){var b=""+document.cookie;var c=b.indexOf(e);if(c==-1||e==""){return"";}var a=b.indexOf(";",c);if(a==-1){a=b.length;}var d=unescape(b.substring(c+e.length+1,a));return d;}function checkMenu(a){if(menuOpen==null){}else{if(menuOpen==a){}else{SetCurrentMenu(a);}}}function closer(){for(var a=0;a<menuArray.length;a++){menuName=menuArray[a].name;SwitchVis(menuName,"hidden");}}function SetCurrentMenu(a){if(currentMenu==a){SwitchVis(a,"hidden");}else{if(currentMenu==null){SwitchVis(a,"visible");currentMenu=a;menuOpen=a;}else{SwitchVis(currentMenu,"hidden");SwitchVis(a,"visible");currentMenu=a;menuOpen=a;}}}function SwitchVis(theParent,visState){GetBr();GetTheObj(theParent);eval("theObj."+style+"visibility ='"+visState+"'");if(visState=="hidden"){currentMenu=null;menuOpen=null;}}function SwitchImg(a,b){if(document.images){imgSource=document[a].src;if(b=="on"){onState=imgSource.replace(/_off/i,"_on");document[a].src=onState;}else{offState=imgSource.replace(/_on/i,"_off");document[a].src=offState;}}}function SwitchInputImg(a,b){imgSource=a.src;if(b=="on"){onState=imgSource.replace(/_off/i,"_on");a.src=onState;}else{offState=imgSource.replace(/_on/i,"_off");a.src=offState;}}function GetTheObj(theItm,theWrp){GetBr();if(br=="ie"){theObj=eval("document.all."+theItm);style="style.";}else{if(br=="nn4"){if(theWrp){theObj=eval("document.layers."+theWrp+".layers. "+theItm);style="";}else{theObj=eval("document.layers."+theItm);style="";}}else{if(br=="nn6"){theObj=eval("document.getElementById(theItm)");style="style.";}}}return theObj;return style;}function SwitchBg(b,a,c){theObj=GetTheObj(a,c);if(br=="nn4"){theObj.Color=b;}else{theObj.style.Color=b;}}function WriteValues(){GetBr();args="/js/menu_"+br+platform+"Values.js";document.write('<script src="'+args+'"><\/script>');}function Write(a){document.write(a);}function wndOpenEmailPage(a,b,c){s2=new String(b);x=s2.charAt(0);if(x=="u"){b=400;}if(b=="yes"){b=400;c="yes";}if(c==""){c="no";}y="toolbar=0,width=391,height="+b+",scrollbars="+c;wndHandle=window.open(a,"pop_up",y);}function wndOpen(a,b,c){s2=new String(b);x=s2.charAt(0);if(x=="u"){b=400;}if(b=="yes"){b=400;c="yes";}if(c==""){c="no";}y="toolbar=0,width=380,height="+b+",scrollbars="+c;wndHandle=window.open(a,"pop_up",y);wndHandle.focus();}function wndOpenReg(a){y="toolbar=0,width=380,height=500,scrollbars=yes";wndHandle=window.open(a,"pop_up",y);wndHandle.focus();}function wndOpenWithScroll(a){wndHandle=window.open(a,"pop_up","toolbar=0,width=350,height=500,scrollbars=yes");}function wndOpenmap(a){wndHandle=window.open(a,"pop_up","toolbar=0,width=350,height=400");}function netscaperesizeFix(){if(pageWidth!=window.innerWidth||pageHeight!=window.innerHeight){document.location.reload();}}function clearText(a){if(a.defaultValue==a.value){a.value="";}}function linkOpener(a){newwin=window.open(a,"Window","resizable=yes, scrollbars=yes, toolbar=no, location=no, directories=no, status=no, menubar=no,height=550,width=620");if(window.focus){newwin.focus();}}function linkOpenerFull(a){newwin=window.open(a,"Window","resizable=yes, scrollbars=yes, toolbar=yes, location=yes, directories=no, status=no, menubar=yes,height=720,width=820");if(window.focus){newwin.focus();}}function WM_checkIn(WM_id){if(!WM_id){return;}var theObj,ss,sr,i,j,WM_layers=new Array();if(document.all){if((document.all[WM_id].style.position!="absolute")&&(document.all[WM_id].style.position!="relative")){for(ss=0;ss<document.styleSheets.length;ss++){for(sr=0;sr<document.styleSheets(ss).rules.length;sr++){if(document.styleSheets(ss).rules(sr).selectorText=="#"+WM_id){theObj=document.styleSheets(ss).rules(sr).style;break;}}}}else{theObj=document.all[WM_id].style;}}else{if(document.layers){WM_layers=new Array();with(document){for(i=0;i<layers.length;i++){WM_layers[i]=layers[i];}for(i=0;i<WM_layers.length;i++){if(WM_layers[i].document&&WM_layers[i].document.layers){for(j=0;j<WM_layers[i].document.layers.length;j++){WM_layers[WM_layers.length]=WM_layers[i].document.layers[j];}if(WM_layers[i].name==WM_id){theObj=WM_layers[i];}}}}}}return theObj;}
