var BrowserType;var Ie6Warning;var fsGreyout=1;var fsGreyoutClose=1;var fsGreyoutLevel1=0;var fsGreyoutLevel2=0;var Browser={Version:function(){var a=8;if(navigator.appVersion.indexOf("MSIE")!=-1){a=parseFloat(navigator.appVersion.split("MSIE")[1])}return a},BrowserType:function(){var a=0;if(navigator.appVersion.indexOf("MSIE")!=-1){a="IE"}return a}};BrowserType=Browser.BrowserType();function warning_standard(d,c,b,a){if(!a){a=1}document.getElementById("warning_box").style.display="";if(fsGreyout==1){GreyOut("on")}document.getElementById("warning_title").innerHTML=d;document.getElementById("warning_msg").innerHTML=c;center("warning_box",0);if(b!="off"){setTimeout("warning_off();",a)}}var taskrfunction;function loadXML(url,rfunction,parameter){fsIntransit=1;taskrfunction=rfunction;var req;var errormessage;if(window.XMLHttpRequest){try{req=new XMLHttpRequest()}catch(e){req=false}}else{if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){req=false}}}}if(req){function handleAjaxResponse(){if(req.readyState==4&&req.status==200){if(encodeURIComponent(req.responseText)=="logout"){auto_logout();return}if(rfunction){eval(rfunction+'("'+encodeURIComponent(req.responseText)+'","'+parameter+'")');fsIntransit=0}}}req.open("POST",(url),true);req.onreadystatechange=handleAjaxResponse;req.send(null)}else{errormessage="Sorry, your browser does not support XMLHTTPRequest objects. This page requires Internet Explorer 5 or better for Windows, or Firefox for any system, or Safari. Other compatible browsers may also exist.";alert(errormessage)}return false}function bld_js(file,rfunc){var script=document.createElement("script");script.type="text/javascript";script.src=file;document.getElementsByTagName("head")[0].appendChild(script);if(BrowserType=="IE"){script.onreadystatechange=function(){if(script.readyState=="loaded"||script.readyState=="complete"){eval(rfunc+";")}}}else{script.onload=function(){eval(rfunc)}}}function bld_css(b){var c=document.getElementsByTagName("head")[0];var a=document.createElement("link");a.type="text/css";a.rel="stylesheet";a.href=b;a.media="screen";c.appendChild(a)}function GreyOut(a){if(Browser.Version()!=6){if(a=="on"){document.getElementById("greyout").style.display=""}else{document.getElementById("greyout").style.display="none"}}}function center(b,a){b=document.getElementById(b);var c=document.body.scrollTop;if(c==0){if(window.pageYOffset){c=window.pageYOffset}else{c=(document.body.parentElement)?document.body.parentElement.scrollTop:0}}b.style.top=(c-a)+"px"}function randomNumber(){var a=2147483647;var b;b=Math.floor(Math.random()*(a+1));return b}var ConstructedButtons=[];function ConstructedSearch(a,b){for(i in b){if(a==b[i]){return false}}return true}function constructButton(object,classname,gofunction,register){var createbutton;if(register=="register"){if(ConstructedSearch(object,ConstructedButtons)){ConstructedButtons.push(object);createbutton=true}else{createbutton=false}}else{createbutton=true}if(createbutton){var div=document.getElementById(object);div.setAttribute("onclick",gofunction+"");div.setAttribute("onmouseover",eval("div.className = '"+classname+"_hover';"));div.setAttribute("onmouseout",eval("div.className = '"+classname+"';"));div.onclick=function(){eval(gofunction+";")};div.onmouseover=function(){eval("div.className = '"+classname+"_hover';")};div.onmouseout=function(){eval("div.className = '"+classname+"';")};eval("div.className = '"+classname+"_hover';")}}function btt_exit_click(){fsGreyoutClose=1;fsGreyoutLevel1=0;document.body.style.overflow="";document.getElementById("warning_box_details").style.display="none";setTimeout("warning_off();",1)}function warning_off(){fsGreyout=1;document.getElementById("warning_box").style.display="none";if(fsGreyoutClose){GreyOut("off")}fsGreyoutClose=1}function load_main(){warning_standard("Connecting","Loading QR Code