function SyncHttpRequest(B){var A=null;if(typeof XMLHttpRequest!="undefined"){A=new XMLHttpRequest()}if(!A){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(C){A=null}}}if(A){A.open("GET",B,false);A.send(null);return A.responseText}return false}function CXMLHttpRequest(){this.XMLHttpTimeout=45000;this.XMLHttpUserAgent="XMLHTTP/1.0";var D=new Array();var E=new Array();var A=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];this.sendXMLHttpRequest=function(K,G,N,L,H){var I=C();if(!I){return }if(!K){var J=F()+B(8);D[J]=0;E[J]=setTimeout(function(){if(E[J]){clearTimeout(E[J])}if(D[J]!=1){D[J]=2;if(N){N(2,L,false)}}},this.XMLHttpTimeout)}var M=(H)?"POST":"GET";if(G.match(/\?/)){G+="&"}else{G+="?"}G+="XMLHttpRequestID="+J;if(!K){I.open(M,G,true)}else{I.open(M,G,false)}I.setRequestHeader("User-Agent",this.XMLHttpUserAgent);if(H){I.setRequestHeader("Content-type","application/x-www-form-urlencoded")}if(!K){I.onreadystatechange=function(){if(I.readyState!=4){return }if(I.status!=200&&I.status!=304){if(this.XMLHttpStatus[J]!=1){this.XMLHttpStatus[J]=2;if(N){N(2,L,I)}}return }if(D[J]!=2){if(E[J]){clearTimeout(E[J])}D[J]=1;if(N){N(1,L,I)}}};if(I.readyState==4){return }I.send(H)}else{I.send(H);if(N){N(1,L,I)}}};function C(){var H=false;for(var G=0;G<A.length;G++){try{H=A[G]()}catch(I){continue}break}return H}function F(){var G=new Date();return G.getTime()}function B(I){var H=new Array();while(H.length<I){var G=Math.round(Math.random()*(122-48))+48;if((G>47&&G<58)||(G>65&&G<91)||(G>96&&G<123)){H.push(String.fromCharCode(G))}}return H.join("")}}var storage=new function(){var D={};function B(){var F="",E,G;for(E in D){E=encodeURIComponent(E);G=encodeURIComponent(D[E]);F+=E+"="+G+"&"}if(F!=""){F=F.substring(0,F.length-1)}return F}function C(){if(window.name==""||window.name.indexOf("=")==-1){return }var H=window.name.split("&");var I,E,G;for(var F=0;F<H.length;F++){if(H[F]==""){continue}I=H[F].split("=");E=decodeURIComponent(I[0]);G=decodeURIComponent(I[1]);D[E]=G}}function A(){window.name=B()}this.set=function(E,F){D[E]=F;A()};this.get=function(E){var F=D[E];return F};this.getAll=function(){return D};this.remove=function(E){if(typeof (D[E])!=undefined){delete D[E]}A()};this.removeAll=function(){D={};A()};C()};function getCSSRule(D,F){D=D.toLowerCase();if(document.styleSheets){for(var B=0;B<document.styleSheets.length;B++){var E=document.styleSheets[B];var C=0;var A=false;do{if(E.cssRules){A=E.cssRules[C]}else{A=E.rules[C]}if(A){if(A.selectorText.toLowerCase()==D){if(F=="delete"){if(E.cssRules){E.deleteRule(C)}else{E.removeRule(C)}return true}else{return A}}}C++}while(A)}}return false}function killCSSRule(A){return getCSSRule(A,"delete")}function addCSSRule(A){if(document.styleSheets){if(!getCSSRule(A)){if(document.styleSheets[0].addRule){document.styleSheets[0].addRule(A,null,0)}else{document.styleSheets[0].insertRule(A+" { }",0)}}}return getCSSRule(A)}function CookieUtil(C,H,G,E,F){this.affix="";if(H){var B=new Date();var D=new Date().getTime();B.setTime(D+(1000*60*H));this.affix="; expires="+B.toGMTString()}if(G){this.affix+="; path="+G}if(E){this.affix+="; domain="+E}if(F){this.affix+="; secure="+F}function A(){var I=document.cookie.match(new RegExp("("+C+"=[^;]*)(;|$)"));return I?I[1]:null}this.cookieExists=function(){return A()?true:false};this.expire=function(){var I=new Date();I.setFullYear(I.getYear()-1);document.cookie=C+"=noop; expires="+I.toGMTString()};this.setSubValue=function(J,K){var I=A();if(/[;, ]/.test(K)){K=window.encodeURI?encodeURI(K):escape(K)}if(K){var L="@"+J+K;if(I){if(new RegExp("@"+J).test(I)){document.cookie=I.replace(new RegExp("@"+J+"[^@;]*"),L)+this.affix}else{document.cookie=I.replace(new RegExp("("+C+"=[^;]*)(;|$)"),"$1"+L)+this.affix}}else{document.cookie=C+"="+L+this.affix}}else{if(new RegExp("@"+J).test(I)){document.cookie=I.replace(new RegExp("@"+J+"[^@;]*"),"")+this.affix}}};this.getSubValue=function(K){var J=A();if(J){var I=J.match(new RegExp("@"+K+"([^@;]*)"));if(I){var L=I[1];if(L){return window.decodeURI?decodeURI(L):unescape(L)}}}return false}};