var isIE;if(navigator.appName=="Microsoft Internet Explorer"){isIE=true;}
if(navigator.appName=="MSIE"){isIE=true;}
function loadMovie(src,h,w,fvars){var text="";if(isIE){text='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';text=text+'codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,14,0" ';text=text+'width="'+w+'" height="'+h+'">';text=text+'<param name="movie" value="'+src+'" />';text=text+'<param name="allowScriptAccess" value="sameDomain" />';text=text+'<param name="wmode" value="transparent" />';text=text+'<param name="quality" value="high" />';if(fvars.length>0){text=text+'<param name="FlashVars" value="'+fvars+'" />';}
text=text+'</object>';}else{text='<embed src="'+src+'" ';text=text+'quality="high" ';text=text+'pluginspage="//www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ';text=text+'type="application/x-shockwave-flash" ';text=text+'width="'+w+'" height="'+h+'" ';text=text+'allowscriptaccess="samedomain" ';text=text+'wmode="transparent"';if(fvars.length>0){text=text+' flashvars="'+fvars+'"';}
text=text+'></embed>';}
document.write(text);}
function loadMovieFS(src,h,w,fvars){var text="";if(isIE){text='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';text=text+'codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,14,0" ';text=text+'width="'+w+'" height="'+h+'">';text=text+'<param name="movie" value="'+src+'" />';text=text+'<param name="allowScriptAccess" value="sameDomain" />';text=text+'<param name="allowfullscreen" value="true" />';text=text+'<param name="wmode" value="transparent" />';text=text+'<param name="quality" value="high" />';if(fvars.length>0){text=text+'<param name="FlashVars" value="'+fvars+'" />';}
text=text+'</object>';}else{text='<embed src="'+src+'" ';text=text+'quality="high" ';text=text+'pluginspage="//www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ';text=text+'type="application/x-shockwave-flash" ';text=text+'width="'+w+'" height="'+h+'" ';text=text+'allowscriptaccess="samedomain" ';text=text+'allowfullscreen="true" ';text=text+'wmode="transparent"';if(fvars.length>0){text=text+' flashvars="'+fvars+'"';}
text=text+'></embed>';}
document.write(text);}
function targetLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external"){anchor.target="_blank";}
if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="internal"){anchor.target="_top";}}}
window.onload=targetLinks;function changeCase(frmObj){var index;var tmpStr;var tmpChar;var preString;var postString;var strlen;tmpStr=frmObj.value.toLowerCase();strLen=tmpStr.length;if(strLen>0){for(index=0;index<strLen;index++){if(index==0){tmpChar=tmpStr.substring(0,1).toUpperCase();postString=tmpStr.substring(1,strLen);tmpStr=tmpChar+postString;}else{tmpChar=tmpStr.substring(index,index+1);if(tmpChar==" "&&index<(strLen-1)){tmpChar=tmpStr.substring(index+1,index+2).toUpperCase();preString=tmpStr.substring(0,index+1);postString=tmpStr.substring(index+2,strLen);tmpStr=preString+tmpChar+postString;}}}}
frmObj.value=tmpStr;}
function changeLower(frmObj){var tmpStr;tmpStr=frmObj.value.toLowerCase();frmObj.value=tmpStr;}
function changeUpper(frmObj){var tmpStr;tmpStr=frmObj.value.toUpperCase();frmObj.value=tmpStr;}
var qs=location.search.substring(1);if(qs.length>1){var ary=location.search.substring(1).substring(1).split("&");for(var i=0,n=ary.length;i<n;i++){var fname=ary[i].split("=")[0];var fvalue=ary[i].split("=")[1];if(fname=="essid"&&fvalue.length>5){document.cookie='sessid='+escape(fvalue)+'; path=/';}}}
function getXHTTP(){var xhttp;try{xhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{xhttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e2){try{xhttp=new XMLHttpRequest();}
catch(e3){xhttp=false;}}}
return xhttp;}
function doHttpRequest(url){http.open("GET",url,true);http.onreadystatechange=getHttpRes;http.send(null);}
function getHttpRes(){try{if(http.readyState==4){if(http.status==200){document.getElementById("ot").innerHTML=http.responseText;}else{alert("There was a problem retrieving information requested:\n"+http.statusText);}}}catch(e){alert("Error:"+e.name+"\n"+e.message);}}
var http=getXHTTP();function show(object){if(document.layers&&document.layers[object]){document.layers[object].visibility='visible';}else if(!document.all&&document.getElementById){document.getElementById(object).style.visibility='visible';}else if(document.getElementById){document.getElementById(object).style.visibility='visible';}}
function hide(object){if(document.layers&&document.layers[object]){document.layers[object].visibility='hidden';}else if(!document.all&&document.getElementById){document.getElementById(object).style.visibility='hidden';}else if(document.getElementById){document.getElementById(object).style.visibility='hidden';}}
function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
