var eyeDeskItems=0,eyeFlag=0,IEversion=0,TimeViewClock=2E3;if(navigator.appVersion.indexOf("MSIE")!=-1)IEversion=parseFloat(navigator.appVersion.split("MSIE")[1]);var minArrows=0,spaceBetweenApps=1,zLayers=11,mouseX=0,mouseY=0,messageBoxDirection=0,eyeKeyDown=0;document.oncontextmenu=function(a){if(!IEversion){a.preventDefault();a.cancelBubble=true}return false};document.onkeydown=function(a){a=new xEvent(a);eyeKeyDown=a.which?a.which:a.keyCode};document.onkeyup=function(){eyeKeyDown=0};
function fixPNG(a,c){if(IEversion&&IEversion<7){a.src||(a=xGetElementById(a));if(a.src.substr(a.src.length-4).toLowerCase()==".png"&&a.src.substr(a.src.length-24).toLowerCase()!="apps/eyex/gfx/spacer.gif"){c||(c="scale");a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a.src+"', sizingMethod='"+c+"')";a.src="index.php?version="+EXTERN_CACHE_VERSION+"&extern=apps/eyeX/gfx/spacer.gif"}}}
function cookieEnabled(){if(typeof navigator.cookieEnabled=="boolean"&&navigator.cookieEnabled)return navigator.cookieEnabled;for(var a=0;document.cookie.indexOf("cookieEnabled-"+a)!=-1;)a++;document.cookie="cookieEnabled-"+a;return document.cookie.indexOf("cookieEnabled-"+a)!=-1?true:false}var isEyeCursorActivated=false;
function ViewLoading(){if(navigator.appVersion.indexOf("Mac")!=-1){oCursor.style.top=mouseY-14+"px";oCursor.style.left=mouseX+10+"px";oCursor.style.display="block"}else oApps.style.cursor="url(index.php?version="+EXTERN_CACHE_VERSION+"&theme=1&extern=images/desktop/loadingcursor/loading.cur), wait";return true}var loadingRequests=0;
function NoViewLoading(){if(loadingRequests<=0){loadingRequests=0;if(navigator.appVersion.indexOf("Mac")!=-1)oCursor.style.display="none";else oApps.style.cursor="auto"}return true}function notifyLoadingRequest(){loadingRequests++;return setTimeout(ViewLoading,TimeViewClock)}function notifyEndOfLoadingRequest(){loadingRequests--;NoViewLoading();return true}function resetLoadingRequests(){loadingRequests=0;ViewLoading();return true}
if(navigator.appVersion.indexOf("Mac")!=-1)document.onmousemove=function(a){if(IEversion&&IEversion<8){mouseX=a.clientX+document.body.scrollLeft;mouseY=a.clientY+document.body.scrollTop}else{mouseX=a.pageX;mouseY=a.pageY}if(loadingRequests>0){oCursor.style.left=mouseX+10+"px";oCursor.style.top=mouseY-14+"px"}};
function updateOpacity(a,c,b,d,e){d=Math.round(d/100);var g=0;if(c>b){for(c=c;c>=b;c--){setTimeout("updateOpacityOnce("+c+",'"+a+"')",g*d);g++}e&&setTimeout(e,g*d)}else if(c<b){for(c=c;c<=b;c++){setTimeout("updateOpacityOnce("+c+",'"+a+"')",g*d);g++}e&&setTimeout(e,g*d)}}function updateOpacityOnce(a,c){c=xGetElementById(c);c.style.opacity=a/100;c.style.filter="alpha(opacity="+a+")";if(a==0)c.style.display="none";else if(c.style.display=="none")c.style.display="block"}
function sendMsg(a,c,b){var d=false;if(window.XMLHttpRequest)d=new XMLHttpRequest;else if(window.ActiveXObject&&ActiveXObject)try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(g){}}if(!d){alert("Sorry, but eyeOS only works with AJAX capable browsers!");return false}if(c!="ping")var q=notifyLoadingRequest();d.onreadystatechange=function(){if(d.readyState==4){var f;try{f=new ActiveXObject("Microsoft.XMLDOM");f.async="false";f.loadXML(d.responseText)}catch(h){f=
new DOMParser;f.async="false";f=f.parseFromString(d.responseText,"text/xml")}if(d.responseText!="<eyeMessage><action><task>pong</task></action></eyeMessage>"){clearTimeout(q);localEngine(f)}}};d.open("POST","index.php?checknum="+a+"&msg="+c,true);d.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");d.send("params="+encodeURIComponent(b))}function eyeParam(a,c,b){a=String(a);c=String(c);if(!b){a=htmlspecialchars(a);c=htmlspecialchars(c)}return"<"+a+">"+c+"</"+a+">"}
function dhtmlLoadScript(a){var c=document.createElement("script");c.src=a;c.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(c)}function dhtmlLoadCSS(a,c){var b=document.createElement("link");b.setAttribute("href",a);b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("id",c);document.getElementsByTagName("head")[0].appendChild(b)}
function dhtmlRemoveCSS(a){(a=document.getElementById(a))&&document.getElementsByTagName("head")[0].removeChild(a)}function getNodeValue(a){if(!a)return"";if(typeof a.textContent!="undefined")return a.textContent;return a.firstChild.nodeValue}function checkEnterKey(a){return(a.which?a.which:a.keyCode)==13?true:false}
function setWallpaper(a,c,b,d){var e=document.getElementById("eyeWallpaper");e.style.backgroundImage="url('"+a+"')";e.style.backgroundRepeat=c==1?"repeat":"no-repeat";e.style.backgroundPosition=b==0?"left top":"center";e.style.backgroundColor=d?d:"transparent"}
function eyeMessageBoxShow(a){if(a!=""){for(var c=0;document.getElementById("eyeMessageBox_"+c);)c++;var b=document.createElement("div");b.setAttribute("id","eyeMessageBox_"+c);b.className="eyeMessageBox";if(c>0){var d=document.getElementById("eyeMessageBox_"+(c-1));b.style.top=messageBoxDirection==0?xTop(d)-xHeight(d)+20+"px":xTop(d)+xHeight(d)+20+"px"}d=document.createElement("div");d.setAttribute("id","eyeMessageBoxText_"+c);d.className="eyeMessageBoxText";d.innerHTML=a;b.appendChild(d);document.getElementById("eyeScreen").appendChild(b);
if(IEversion)document.getElementById("eyeMessageBox_"+c).style.visibility="visible";else updateOpacity("eyeMessageBox_"+c,0,100,1E3);setTimeout("eyeMessageBoxHid("+c+")",2E3)}}
function eyeMessageBoxHid(a){box=document.getElementById("eyeMessageBoxText_"+a);if(IEversion)document.getElementById("eyeScreen").removeChild(document.getElementById("eyeMessageBox_"+a));else document.getElementById("eyeMessageBox_"+a).style.opacity==1?updateOpacity("eyeMessageBox_"+a,100,0,1E3,'document.getElementById("eyeScreen").removeChild(document.getElementById("eyeMessageBox_'+a+'"));'):document.getElementById("eyeScreen").removeChild(document.getElementById("eyeMessageBox_"+a))}
var EventHandler={List:{},LastEvent:0,HandleEvent:function(a){a=new xEvent(a);EventHandler.LastEvent=a;var c=0;for(var b in EventHandler.List[a.type])if(b!=a.target.id&&EventHandler.List[a.type][b]){if(EventHandler.List[a.type][b].option)for(var d=a.target.parentNode;!c&&d;)if(b==d.id)c=1;else d=d.parentNode;if(!c)for(var e in EventHandler.List[a.type][b].friends)if(EventHandler.List[a.type][b].friends[e]==a.target.id)c=1;if(EventHandler.List[a.type][b]["function"])c=EventHandler.List[a.type][b]["function"](a,
c);c||(new Function(EventHandler.List[a.type][b].code))();c=0}},Add:function(a,c,b,d,e){if(typeof EventHandler.List[a]!="object"){EventHandler.List[a]={};xAddEventListener(document,a,EventHandler.HandleEvent,false)}if(typeof EventHandler.List[a][c]!="object"){EventHandler.List[a][c]={};EventHandler.List[a][c].friends=[]}EventHandler.List[a][c].code=b;if(typeof d!="undefined")EventHandler.List[a][c].option=d;if(typeof e!="undefined")EventHandler.List[a][c]["function"]=e},AddFriend:function(a,c,b){EventHandler.List[a]&&
EventHandler.List[a][c]&&EventHandler.List[a][c].friends.push(b)},Remove:function(a,c){if(EventHandler.List[a]&&EventHandler.List[a][c]){xRemoveEventListener(document,a,EventHandler.HandleEvent,false);EventHandler.List[a][c]=0}},RemoveFriend:function(a,c,b){for(var d=0;d<EventHandler.List[a][c].friends.length;d++)if(EventHandler.List[a][c].friends[d]==b){EventHandler.List[a][c].friends[d]=0;return}}};function addClickHandler(a,c){EventHandler.Add("click",a,c)}
function addFriendClick(a,c){EventHandler.AddFriend("click",a,c)}function delClickHandler(a){EventHandler.Remove("click",element)}function getArrayArg(a){a=a.split('""');for(var c=0;c<a.length;c++){var b=a[c].replace(/\\\"/,'"');b=b.replace(/\\\'/,"'");for(var d=a[c];b!=d;){d=b;b=b.replace(/\\\"/,'"');b=b.replace(/\\\'/,"'")}a[c]=b}b=[];c=0;for(var e in a)if(a[e]!==""){b[c]=a[e];c++}return b}zindex=100;
function getParentWidgetType(a,c){if(!a.parentNode)return false;for(a=a.parentNode;;){if(a.widgetType==c)return a;if(!a.parentNode)return false;a=a.parentNode}}
function setWidgetPos(a,c,b,d,e,g,q){a=xGetElementById(a);c=xGetElementById(c);if(!a||!c)return false;if(q==1||q==2)e=parseInt(e,10)+(xWidth(c)-xWidth(a))/2;else if(q==4||q==5)e=parseInt(e,10)+xWidth(c)/2;if(!isNaN(e)&&e>=0)if(b==1)a.style.right=String(parseInt(e,10))+"px";else a.style.left=String(parseInt(e,10))+"px";if(q==1||q==3)g=parseInt(g,10)+(xHeight(c)-xHeight(a))/2;else if(q==4||q==6)g=parseInt(g,10)+xHeight(c)/2;if(!isNaN(g)&&g>=0)if(d==1)a.style.bottom=String(parseInt(g,10))+"px";else a.style.top=
String(parseInt(g,10))+"px";return a}
function createWidget(a,c,b,d,e,g,q,f,h,j,r,t,k,p){if(document.getElementById(a)){try{console.log(a+" already exists.")}catch(w){}return false}var B=document.getElementById(c);if(!B){try{console.log(c+" does not exist.")}catch(C){}return false}t||(t="px");c=document.createElement("div");c.setAttribute("id",a);B.appendChild(c);b!=""&&c.appendChild(b);if(j)c.className=j;c.style.display=k==0?"none":"block";if(parseInt(h,10)>0)c.style.height=String(parseInt(h,10))+t;if(parseInt(f,10)>0)c.style.width=
String(parseInt(f,10))+t;c.style.position="absolute";c.widgetType=p;return setWidgetPos(c,B,d,e,g,q,r)}function makeDrag(a,c,b,d,e,g){function q(t,k,p){j=k;r=p}function f(t,k,p){if(b){t="";if(e)t=",'"+e+"'";(new Function(b+"('"+a+"',"+j+","+r+","+k+","+p+",'"+d+"'"+t+");"))()}}var h=xGetElementById(a);if(!h)return false;if(!g)h.onmousedown=function(){xZIndex(h,zindex);zindex++};var j=0,r=0;xEnableDrag2(a,q,null,f,c);xShow(h)}
function removeWidget(a){(a=xGetElementById(a))&&a.parentNode.removeChild(a)}function createLayer(a,c,b){var d=document.createElement("div");d.setAttribute("id",a);d.className=b;d.style.display="none";document.getElementById(c).appendChild(d)}function removeLayer(a){var c=document.getElementById("eyeScreen");a=document.getElementById(a);c&&a&&c.removeChild(a)}function showLayer(a){if(a=document.getElementById(a)){a.style.display="block";xZIndex(a,zLayers);zLayers++}}
function hideLayer(a){if(a=document.getElementById(a)){a.style.display="none";xZIndex(a,1)}}function fadeOutLayer(a,c,b,d){var e=document.getElementById(a);if(e){updateOpacityOnce(0,a);e.style.display="block";xZIndex(e,zLayers);zLayers++;updateOpacity(a,c,b,d,"")}}function fadeInLayer(a,c,b,d){document.getElementById(a)&&updateOpacity(a,c,b,d,'hideLayer("'+a+'");')}function updateCss(a,c,b){(new Function('document.getElementById("'+a+'").style.'+c+'="'+b+'";'))()}
function printToTty(a,c){a=document.getElementById(a+"_tty");if(!a)return false;if(a.tagName=="DIV"){a.appendChild(document.createTextNode(c));a.appendChild(document.createElement("br"))}else if(a.tagName=="INPUT"){a.value+=c;a.value+="\n"}}
function localEngine(a){notifyEndOfLoadingRequest();if(a.hasChildNodes()){var c=a.getElementsByTagName("action");if(!c)c=a.firstChild.childNodes;a=c.length;for(var b=0;b<a;b++)try{var d=getNodeValue(c[b].getElementsByTagName("task")[0]),e,g,q,f,h,j,r,t,k,p,w;if(d=="createWidget"){var B=c[b].getElementsByTagName("position")[0],C=getNodeValue(B.getElementsByTagName("x")[0]),D=getNodeValue(B.getElementsByTagName("y")[0]),l=getNodeValue(B.getElementsByTagName("horiz")[0]),m=getNodeValue(B.getElementsByTagName("vert")[0]);
j=getNodeValue(c[b].getElementsByTagName("name")[0]);var n=getNodeValue(c[b].getElementsByTagName("checknum")[0]);q=getNodeValue(c[b].getElementsByTagName("father")[0]);var o=getNodeValue(c[b].getElementsByTagName("widgetname")[0]),s=getNodeValue(c[b].getElementsByTagName("cent")[0]),u=getNodeValue(c[b].getElementsByTagName("params")[0]);try{r=new Function(o+"_show("+u+",'"+j+"','"+q+"','"+C+"','"+D+"','"+l+"','"+m+"','"+n+"','"+s+"');");r()}catch(v){try{console.log("widget error: "+v)}catch(z){}}}else if(d==
"messageBox"){e=getNodeValue(c[b].getElementsByTagName("content")[0]);e=tinyMCE.entityDecode(e);var y=getNodeValue(c[b].getElementsByTagName("type")[0]);if(!y||y==1)eyeMessageBoxShow(e);else y==2&&alert(e)}else if(d=="setValue"){e=getNodeValue(c[b].getElementsByTagName("content")[0]);w=getNodeValue(c[b].getElementsByTagName("widget")[0]);if(document.getElementById(w))document.getElementById(w).value=e}else if(d=="setValueB64"){e=getNodeValue(c[b].getElementsByTagName("content")[0]);w=getNodeValue(c[b].getElementsByTagName("widget")[0]);
if(document.getElementById(w))document.getElementById(w).value=Base64.decode(e)}else if(d=="concatValue"){e=getNodeValue(c[b].getElementsByTagName("content")[0]);w=getNodeValue(c[b].getElementsByTagName("widget")[0]);if(document.getElementById(w))document.getElementById(w).value=document.getElementById(w).value+e}else if(d=="concatValueB64"){e=getNodeValue(c[b].getElementsByTagName("content")[0]);w=getNodeValue(c[b].getElementsByTagName("widget")[0]);if(document.getElementById(w))document.getElementById(w).value=
document.getElementById(w).value+Base64.decode(e)}else if(d=="concatDiv"){e=getNodeValue(c[b].getElementsByTagName("content")[0]);w=getNodeValue(c[b].getElementsByTagName("widget")[0]);if(document.getElementById(w))document.getElementById(w).innerHTML=document.getElementById(w).innerHTML+e}else if(d=="rawjs"){var x=getNodeValue(c[b].getElementsByTagName("js")[0]);x=x.replace(/\n/,"");x=x.replace(/\r/,"");r=new Function(x);r()}else if(d=="setDiv"){e=getNodeValue(c[b].getElementsByTagName("content")[0]);
j=getNodeValue(c[b].getElementsByTagName("name")[0]);document.getElementById(j).innerHTML=e}else if(d=="loadScript"){p=getNodeValue(c[b].getElementsByTagName("url")[0]);dhtmlLoadScript(p)}else if(d=="loadCSS"){p=getNodeValue(c[b].getElementsByTagName("url")[0]);f=getNodeValue(c[b].getElementsByTagName("id")[0]);dhtmlLoadCSS(p,f)}else if(d=="removeCSS"){f=getNodeValue(c[b].getElementsByTagName("id")[0]);dhtmlRemoveCSS(f)}else if(d=="removeWidget"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);
removeWidget(j)}else if(d=="createDiv"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);h=getNodeValue(c[b].getElementsByTagName("class")[0]);q=getNodeValue(c[b].getElementsByTagName("father")[0]);var A=document.createElement("div");A.setAttribute("id",j);A.className=h;document.getElementById(q).appendChild(A)}else if(d=="setWallpaper"){p=getNodeValue(c[b].getElementsByTagName("url")[0]);var I=getNodeValue(c[b].getElementsByTagName("repeat")[0]),J=getNodeValue(c[b].getElementsByTagName("center")[0]),
K=getNodeValue(c[b].getElementsByTagName("color")[0]);setWallpaper(p,I,J,K)}else if(d=="updateCss"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);var L=getNodeValue(c[b].getElementsByTagName("property")[0]),M=getNodeValue(c[b].getElementsByTagName("value")[0]);updateCss(j,L,M)}else if(d=="makeDrag"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);q=getNodeValue(c[b].getElementsByTagName("father")[0]);try{var N=getNodeValue(c[b].getElementsByTagName("noIndex")[0]);makeDrag(j,q,"","","",
N)}catch(R){makeDrag(j,q,"","","","")}}else if(d=="rawSendMessage"){var O=getNodeValue(c[b].getElementsByTagName("msg")[0]),E;E=c[b].getElementsByTagName("par")[0].firstChild?getNodeValue(c[b].getElementsByTagName("par")[0]):"";var P=getNodeValue(c[b].getElementsByTagName("checknum")[0]);sendMsg(P,O,E)}else if(d=="addEvent"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);var F=getNodeValue(c[b].getElementsByTagName("event")[0]),G=getNodeValue(c[b].getElementsByTagName("func")[0]),H=getNodeValue(c[b].getElementsByTagName("args")[0]);
r=H==0?new Function('document.getElementById("'+j+'").'+F+"=function(){"+G+"}"):new Function('document.getElementById("'+j+'").'+F+"=function("+H+"){"+G+"}");r()}else if(d=="createLayer"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);h=getNodeValue(c[b].getElementsByTagName("class")[0]);q=getNodeValue(c[b].getElementsByTagName("father")[0]);createLayer(j,q,h)}else if(d=="removeLayer"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);removeLayer(j)}else if(d=="showLayer"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);
showLayer(j)}else if(d=="hideLayer"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);hideLayer(j)}else if(d=="fadeOutLayer"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);k=getNodeValue(c[b].getElementsByTagName("time")[0]);t=getNodeValue(c[b].getElementsByTagName("startAlpha")[0]);g=getNodeValue(c[b].getElementsByTagName("endAlpha")[0]);fadeOutLayer(j,t,g,k)}else if(d=="fadeInLayer"){j=getNodeValue(c[b].getElementsByTagName("name")[0]);k=getNodeValue(c[b].getElementsByTagName("time")[0]);
t=getNodeValue(c[b].getElementsByTagName("startAlpha")[0]);g=getNodeValue(c[b].getElementsByTagName("endAlpha")[0]);fadeInLayer(j,t,g,k)}}catch(Q){try{console.log("Response error: "+Q)}catch(S){}}}}tinyMCE.entityDecode=function(a){var c=document.createElement("div");c.innerHTML=a;return!c.firstChild?a:c.firstChild.nodeValue};xLibrary={version:"4.21",license:"GNU LGPL",url:"http://cross-browser.com/"};
function xEvent(a){if(a=a||window.event){this.type=a.type;this.target=a.target||a.srcElement;this.relatedTarget=a.relatedTarget;if(xDef(a.pageX)){this.pageX=a.pageX;this.pageY=a.pageY}else if(xDef(a.clientX)){this.pageX=a.clientX+xScrollLeft();this.pageY=a.clientY+xScrollTop()}if(xDef(a.offsetX)){this.offsetX=a.offsetX;this.offsetY=a.offsetY}else if(xDef(a.layerX)){this.offsetX=a.layerX;this.offsetY=a.layerY}else{this.offsetX=this.pageX-xPageX(this.target);this.offsetY=this.pageY-xPageY(this.target)}this.keyCode=
a.keyCode||a.which||0;this.shiftKey=a.shiftKey;this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;if(typeof a.type=="string")if(a.type.indexOf("click")!=-1)this.button=0;else if(a.type.indexOf("mouse")!=-1)this.button=a.button}}function xAddClass(a,c){if((a=xGetElementById(a))!=null){var b="";if(a.className.length&&a.className.charAt(a.className.length-1)!=" ")b=" ";if(!xHasClass(a,c)){a.className+=b+c;return true}}return false}
function xAddEventListener(a,c,b,d){if(a=xGetElementById(a)){c=c.toLowerCase();if(a.addEventListener)a.addEventListener(c,b,d||false);else if(a.attachEvent)a.attachEvent("on"+c,b);else{var e=a["on"+c];a["on"+c]=typeof e=="function"?function(g){e(g);b(g)}:b}}}function xBackground(a,c,b){if(!(a=xGetElementById(a)))return"";var d="";if(a.style){if(xStr(c))a.style.backgroundColor=c;if(xStr(b))a.style.backgroundImage=b!=""?"url("+b+")":null;d=a.style.backgroundColor}return d}
function xCamelize(a){var c,b,d;b=a.split("-");d=b[0];for(a=1;a<b.length;++a){c=b[a].charAt(0);d+=b[a].replace(c,c.toUpperCase())}return d}
function xClientHeight(){var a=0,c=document,b=window;if((!c.compatMode||c.compatMode=="CSS1Compat")&&c.documentElement&&c.documentElement.clientHeight)a=c.documentElement.clientHeight;else if(c.body&&c.body.clientHeight)a=c.body.clientHeight;else if(b.innerHeight&&xDef(b.innerHeight)){a=b.innerHeight;if(xDef(b.innerWidth,c.width)&&c.width>b.innerWidth)a-=16}return a}
function xClientWidth(){var a=0,c=document,b=window;if((!c.compatMode||c.compatMode=="CSS1Compat")&&!b.opera&&c.documentElement&&c.documentElement.clientWidth)a=c.documentElement.clientWidth;else if(c.body&&c.body.clientWidth)a=c.body.clientWidth;else if(b.innerWidth&&xDef(b.innerWidth)){a=b.innerWidth;if(xDef(b.innerHeight,c.height)&&c.height>b.innerHeight)a-=16}return a}
function xColor(a,c){if(!(a=xGetElementById(a)))return"";var b="";if(a.style&&xDef(a.style.color)){if(xStr(c))a.style.color=c;b=a.style.color}return b}function xDef(){for(var a=0;a<arguments.length;++a)if(typeof arguments[a]=="undefined")return false;return true}function xDisableDrag(a){xGetElementById(a).xDragEnabled=false}function xDisableDrop(a){xGetElementById(a).xDropEnabled=false}
function xDisplay(a,c){if((a=xGetElementById(a))&&a.style&&xDef(a.style.display)){if(xStr(c))try{a.style.display=c}catch(b){a.style.display=""}return a.style.display}return null}function xDocSize(){var a=document.body,c=document.documentElement,b=0,d=0,e=0,g=0,q=0,f=0,h=0,j=0;if(c){b=c.scrollWidth;d=c.offsetWidth;q=c.scrollHeight;f=c.offsetHeight}if(a){e=a.scrollWidth;g=a.offsetWidth;h=a.scrollHeight;j=a.offsetHeight}return{w:Math.max(b,d,e,g),h:Math.max(q,f,h,j)}}
function xEnableDrag(a,c,b,d){function e(r){if(j.xDragEnabled){var t=new xEvent(r);xPreventDefault(r);f=t.pageX;h=t.pageY;xAddEventListener(document,"mousemove",g,false);xAddEventListener(document,"mouseup",q,false);c&&c(j,t.pageX,t.pageY,t)}}function g(r){if(j&&j.xDragEnabled){var t,k;xPreventDefault(r);r=new xEvent(r);t=r.pageX-f;k=r.pageY-h;f=r.pageX;h=r.pageY;b?b(j,t,k,r):xMoveTo(j,xLeft(j)+t,xTop(j)+k)}}function q(r){var t=new xEvent(r);xPreventDefault(r);xRemoveEventListener(document,"mouseup",
q,false);xRemoveEventListener(document,"mousemove",g,false);d&&d(j,t.pageX,t.pageY,t);xEnableDrag.drop&&xEnableDrag.drop(j,t)}var f=0,h=0,j=xGetElementById(a);if(j){j.xDragEnabled=true;xAddEventListener(j,"mousedown",e,false)}}xEnableDrag.drops=[];
function xEnableDrag2(a,c,b,d,e,g,q,f){var h=null;if(typeof e!="undefined"&&!q)h=xGetElementById(e);xEnableDrag(a,function(j,r,t,k){if(h){e=xPageX(h);g=xPageY(h);q=e+h.offsetWidth;f=g+h.offsetHeight}c&&c(j,r,t,k)},function(j,r,t,k){var p=xPageX(j)+r,w=xPageY(j)+t,B=k.pageX,C=k.pageY;if(!(p<e||p+j.offsetWidth>q)&&!(B<e||B>q))j.style.left=j.offsetLeft+r+"px";if(!(w<g||w+j.offsetHeight>f)&&!(C<g||C>f))j.style.top=j.offsetTop+t+"px";b&&b(j,r,t,k)},function(j,r,t,k){d&&d(j,r,t,k)})}
function xEnableDrop(a,c){if(a=xGetElementById(a)){a.xDropEnabled=true;xEnableDrag.drops[xEnableDrag.drops.length]={e:a,f:c}}}xEnableDrag.drop=function(a,c){var b,d=0,e=null,g=xEnableDrag.drops;for(b=0;b<g.length;++b)if(g[b]&&xHasPoint(g[b].e,c.pageX,c.pageY)){var q=getZindex(g[b].e);if(q>=d){d=q;e=g[b].e.xDropEnabled?g[b]:null}}e&&e.f(e.e,a,c.pageX,c.pageY)};
function getZindex(a){for(var c=0;a;){if(a.style&&parseInt(a.style.zIndex))c+=parseInt(a.style.zIndex);a=a.parentNode?a.parentNode:null}return c}function xFindAfterByClassName(a,c){var b=new RegExp("\\b"+c+"\\b","i");return xWalkToLast(a,function(d){if(d.className.search(b)!=-1)return d})}function xFindBeforeByClassName(a,c){var b=new RegExp("\\b"+c+"\\b","i");return xWalkToFirst(a,function(d){if(d.className.search(b)!=-1)return d})}function xGetCSSRules(a){return a.rules?a.rules:a.cssRules}
function xGetComputedStyle(a,c,b){if(!(a=xGetElementById(a)))return null;var d="undefined",e=document.defaultView;if(e&&e.getComputedStyle){if(a=e.getComputedStyle(a,""))d=a.getPropertyValue(c)}else if(a.currentStyle)d=a.currentStyle[xCamelize(c)];else return null;return b?parseInt(d)||0:d}function xGetElementById(a){if(typeof a=="string")a=document.getElementById?document.getElementById(a):document.all?document.all[a]:null;return a}
function xGetElementsByClassName(a,c,b,d){var e=[];a=new RegExp("(^|\\s)"+a+"(\\s|$)");c=xGetElementsByTagName(b,c);for(b=0;b<c.length;++b)if(a.test(c[b].className)){e[e.length]=c[b];d&&d(c[b])}return e}function xGetElementsByTagName(a,c){var b=null;a=a||"*";c=xGetElementById(c)||document;if(typeof c.getElementsByTagName!="undefined"){b=c.getElementsByTagName(a);if(a=="*"&&(!b||!b.length))b=c.all}else if(a=="*")b=c.all;else if(c.all&&c.all.tags)b=c.all.tags(a);return b||[]}
function xGetStyleSheetFromLink(a){return a.styleSheet?a.styleSheet:a.sheet}function xHasClass(a,c){a=xGetElementById(a);if(!a||a.className=="")return false;return(new RegExp("(^|\\s)"+c+"(\\s|$)")).test(a.className)}function xHasPoint(a,c,b,d,e,g,q){if(xNum(d))if(xNum(e)){if(!xNum(g)){q=e;g=d}}else e=g=q=d;else d=e=g=q=0;var f=xPageX(a),h=xPageY(a);return c>=f+q&&c<=f+xWidth(a)-e&&b>=h+d&&b<=h+xHeight(a)-g}
function xHasStyleSelector(a){function c(b){return b.selectorText.indexOf(a)>=0}if(xHasStyleSheets())return xTraverseDocumentStyleSheets(c)}function xHasStyleSheets(){return document.styleSheets?true:false}
function xHeight(a,c){var b,d=0,e=0,g=0,q=0;if(!(a=xGetElementById(a)))return 0;c=xNum(c)?c<0?0:Math.round(c):-1;b=xDef(a.style);if(a==document||a.tagName.toLowerCase()=="html"||a.tagName.toLowerCase()=="body")c=xClientHeight();else if(b&&xDef(a.offsetHeight)&&xStr(a.style.height)){if(c>=0){if(document.compatMode=="CSS1Compat"){b=xGetComputedStyle;d=b(a,"padding-top",1);if(d!==null){e=b(a,"padding-bottom",1);g=b(a,"border-top-width",1);q=b(a,"border-bottom-width",1)}else if(xDef(a.offsetHeight,a.style.height)){a.style.height=
c+"px";d=a.offsetHeight-c}}c-=d+e+g+q;if(isNaN(c)||c<0)return;else a.style.height=c+"px"}c=a.offsetHeight}else if(b&&xDef(a.style.pixelHeight)){if(c>=0)a.style.pixelHeight=c;c=a.style.pixelHeight}return c}function xHex(a,c,b){var d="";a=Math.ceil(a);if(b)d=b;a=a.toString(16);for(b=0;b<c-a.length;++b)d+="0";return d+a}function xHide(a){return xVisibility(a,0)}
function xInsertRule(a,c,b,d){if(!(a=xGetElementById(a)))return false;if(a.insertRule)a.insertRule(c+"{"+b+"}",d>=0?d:a.cssRules.length);else if(a.addRule)a.addRule(c,b,d);else return false;return true}
function xLeft(a,c){if(!(a=xGetElementById(a)))return 0;var b=xDef(a.style);if(b&&xStr(a.style.left))if(xNum(c))a.style.left=c+"px";else{c=parseInt(a.style.left);if(isNaN(c))c=xGetComputedStyle(a,"left",1);if(isNaN(c))c=0}else if(b&&xDef(a.style.pixelLeft))if(xNum(c))a.style.pixelLeft=c;else c=a.style.pixelLeft;return c}function xMoveTo(a,c,b){xLeft(a,c);xTop(a,b)}function xNum(){for(var a=0;a<arguments.length;++a)if(isNaN(arguments[a])||typeof arguments[a]!="number")return false;return true}
function xOpacity(a,c){var b=xDef(c);if(!(a=xGetElementById(a)))return 2;if(xStr(a.style.opacity))if(b)a.style.opacity=c+"";else c=parseFloat(a.style.opacity);else if(xStr(a.style.filter))if(b)a.style.filter="alpha(opacity="+100*c+")";else{if(a.filters&&a.filters.alpha)c=a.filters.alpha.opacity/100}else if(xStr(a.style.MozOpacity))if(b)a.style.MozOpacity=c+"";else c=parseFloat(a.style.MozOpacity);else if(xStr(a.style.KhtmlOpacity))if(b)a.style.KhtmlOpacity=c+"";else c=parseFloat(a.style.KhtmlOpacity);
return isNaN(c)?1:c}function xPageX(a){var c=0;for(a=xGetElementById(a);a;){if(xDef(a.offsetLeft))c+=a.offsetLeft;try{a=xDef(a.offsetParent)?a.offsetParent:null}catch(b){a=null}}return c}function xPageY(a){var c=0;for(a=xGetElementById(a);a;){if(xDef(a.offsetTop))c+=a.offsetTop;try{a=xDef(a.offsetParent)?a.offsetParent:null}catch(b){a=null}}return c}function xParent(a,c){if(a=xGetElementById(a)){a=a.parentNode;if(c)for(;a&&a.nodeName.toLowerCase()!=c;)a=a.parentNode}return a}
function xParseColor(a){function c(d){b.n=d||0;b.r=(b.n&16711680)>>16;b.g=(b.n&65280)>>8;b.b=b.n&255}var b={};if(xStr(a))if(a.indexOf("rgb")!=-1){a=a.match(/(\d*)\s*,\s*(\d*)\s*,\s*(\d*)/);b.r=parseInt(a[1])||0;b.g=parseInt(a[2])||0;b.b=parseInt(a[3])||0;b.n=b.r<<16|b.g<<8|b.b}else c(parseInt(a.substr(1),16));else c(a);b.s=xHex(b.n,6,"#");return b}function xPreventDefault(a){if(a&&a.preventDefault)a.preventDefault();else if(window.event)window.event.returnValue=false}
function xRemoveClass(a,c){if(!(a=xGetElementById(a)))return false;a.className=a.className.replace(new RegExp("(^|\\s)"+c+"(\\s|$)","g"),function(b,d,e){return d==" "&&e==" "?" ":""});return true}function xRemoveEventListener(a,c,b,d){if(a=xGetElementById(a)){c=c.toLowerCase();if(a.removeEventListener)a.removeEventListener(c,b,d||false);else if(a.detachEvent)a.detachEvent("on"+c,b);else a["on"+c]=null}}function xResizeTo(a,c,b){return{w:xWidth(a,c),h:xHeight(a,b)}}
function xScrollLeft(a,c){var b,d=0;if(!xDef(a)||c||a==document||a.tagName.toLowerCase()=="html"||a.tagName.toLowerCase()=="body"){b=window;if(c&&a)b=a;if(b.document.documentElement&&b.document.documentElement.scrollLeft)d=b.document.documentElement.scrollLeft;else if(b.document.body&&xDef(b.document.body.scrollLeft))d=b.document.body.scrollLeft}else if((a=xGetElementById(a))&&xNum(a.scrollLeft))d=a.scrollLeft;return d}
function xScrollTop(a,c){var b,d=0;if(!xDef(a)||c||a==document||a.tagName.toLowerCase()=="html"||a.tagName.toLowerCase()=="body"){b=window;if(c&&a)b=a;if(b.document.documentElement&&b.document.documentElement.scrollTop)d=b.document.documentElement.scrollTop;else if(b.document.body&&xDef(b.document.body.scrollTop))d=b.document.body.scrollTop}else if((a=xGetElementById(a))&&xNum(a.scrollTop))d=a.scrollTop;return d}function xShow(a){return xVisibility(a,1)}
function xSlideTo(a,c,b,d){if(a=xGetElementById(a)){if(!a.timeout)a.timeout=25;a.xTarget=c;a.yTarget=b;a.slideTime=d;a.stop=false;a.yA=a.yTarget-xTop(a);a.xA=a.xTarget-xLeft(a);a.B=a.slideLinear?1/a.slideTime:Math.PI/(2*a.slideTime);a.yD=xTop(a);a.xD=xLeft(a);a.C=(new Date).getTime();a.moving||_xSlideTo(a)}}
function _xSlideTo(a){if(a=xGetElementById(a)){var c,b;b=(new Date).getTime()-a.C;if(a.stop)a.moving=false;else if(b<a.slideTime){setTimeout("_xSlideTo('"+a.id+"')",a.timeout);c=a.B*b;a.slideLinear||(c=Math.sin(c));b=Math.round(a.xA*c+a.xD);c=Math.round(a.yA*c+a.yD);xMoveTo(a,b,c);a.moving=true}else{xMoveTo(a,a.xTarget,a.yTarget);a.moving=false;a.onslideend&&a.onslideend()}}}
function xStopPropagation(a){if(a&&a.stopPropagation)a.stopPropagation();else if(window.event)window.event.cancelBubble=true}function xStr(){for(var a=0;a<arguments.length;++a)if(typeof arguments[a]!="string")return false;return true}function xStyle(a,c){var b,d;for(b=2;b<arguments.length;++b){d=xGetElementById(arguments[b]);if(d.style)try{d.style[a]=c}catch(e){d.style[a]=""}}}
function xToggleClass(a,c){if(!(a=xGetElementById(a)))return null;if(!xRemoveClass(a,c)&&!xAddClass(a,c))return false;return true}function xTop(a,c){if(!(a=xGetElementById(a)))return 0;var b=xDef(a.style);if(b&&xStr(a.style.top))if(xNum(c))a.style.top=c+"px";else{c=parseInt(a.style.top);if(isNaN(c))c=xGetComputedStyle(a,"top",1);if(isNaN(c))c=0}else if(b&&xDef(a.style.pixelTop))if(xNum(c))a.style.pixelTop=c;else c=a.style.pixelTop;return c}
function xTraverseDocumentStyleSheets(a){var c=document.styleSheets;if(c){for(i=0;i<c.length;i++){var b=c[i];if(b)if(xTraverseStyleSheet(b,a))return true}return false}}
function xTraverseStyleSheet(a,c){if(!a)return false;var b=xGetCSSRules(a);if(b){for(var d,e=0;e<b.length;e++){var g=b[e];if(g.selectorText)if(d=c(g))return true;g.type&&g.type==3&&g.styleSheet&&xTraverseStyleSheet(g.styleSheet,c)}if(a.imports)for(e=0;e<a.imports.length;e++)if(xTraverseStyleSheet(a.imports[e],c))return true;return false}}
function xVisibility(a,c){if(!(a=xGetElementById(a)))return null;if(a.style&&xDef(a.style.visibility)){if(xDef(c))a.style.visibility=c?"visible":"hidden";return a.style.visibility}return null}function xWalkToFirst(a,c,b,d){for(var e=null;a;){if(a.nodeType==1&&a!=b)if(e=c(a,d))return e;for(var g=a;g=g.previousSibling;)if(g!=b)if(e=xWalkTreeRev(g,c,b,d))return e;a=a.parentNode}return e}
function xWalkToLast(a,c,b,d){var e=null;if(a){if(e=xWalkTree2(a,c,b,d))return e;for(;a;){for(var g=a;g=g.nextSibling;)if(g!=b)if(e=xWalkTree2(g,c,b,d))return e;a=a.parentNode}}return e}function xWalkTree2(a,c,b,d){var e=null;if(a){if(a.nodeType==1&&a!=b)if(e=c(a,d))return e;for(a=a.firstChild;a;a=a.nextSibling){if(a!=b)e=xWalkTree2(a,c,b,d);if(e)return e}}return e}
function xWalkTreeRev(a,c,b,d){var e=null;if(a){if(a.nodeType==1&&a!=b)if(e=c(a,d))return e;for(a=a.lastChild;a;a=a.previousSibling){if(a!=b)e=xWalkTreeRev(a,c,b,d);if(e)return e}}return e}
function xWidth(a,c){var b,d=0,e=0,g=0,q=0;if(!(a=xGetElementById(a)))return 0;c=xNum(c)?c<0?0:Math.round(c):-1;b=xDef(a.style);if(a==document||a.tagName.toLowerCase()=="html"||a.tagName.toLowerCase()=="body")c=xClientWidth();else if(b&&xDef(a.offsetWidth)&&xStr(a.style.width)){if(c>=0){if(document.compatMode=="CSS1Compat"){b=xGetComputedStyle;d=b(a,"padding-left",1);if(d!==null){e=b(a,"padding-right",1);g=b(a,"border-left-width",1);q=b(a,"border-right-width",1)}else if(xDef(a.offsetWidth,a.style.width)){a.style.width=
c+"px";d=a.offsetWidth-c}}c-=d+e+g+q;if(isNaN(c)||c<0)return;else a.style.width=c+"px"}c=a.offsetWidth}else if(b&&xDef(a.style.pixelWidth)){if(c>=0)a.style.pixelWidth=c;c=a.style.pixelWidth}return c}function xZIndex(a,c){if(!(a=xGetElementById(a)))return 0;if(a.style&&xDef(a.style.zIndex)){if(xNum(c))a.style.zIndex=c;c=parseInt(a.style.zIndex)}return c}
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var c="",b,d,e,g,q,f,h=0;for(a=Base64._utf8_encode(a);h<a.length;){b=a.charCodeAt(h++);d=a.charCodeAt(h++);e=a.charCodeAt(h++);g=b>>2;b=(b&3)<<4|d>>4;q=(d&15)<<2|e>>6;f=e&63;if(isNaN(d))q=f=64;else if(isNaN(e))f=64;c=c+this._keyStr.charAt(g)+this._keyStr.charAt(b)+this._keyStr.charAt(q)+this._keyStr.charAt(f)}return c},decode:function(a){var c="",b,d,e,g,q,f=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,
"");f<a.length;){b=this._keyStr.indexOf(a.charAt(f++));d=this._keyStr.indexOf(a.charAt(f++));g=this._keyStr.indexOf(a.charAt(f++));q=this._keyStr.indexOf(a.charAt(f++));b=b<<2|d>>4;d=(d&15)<<4|g>>2;e=(g&3)<<6|q;c+=String.fromCharCode(b);if(g!=64)c+=String.fromCharCode(d);if(q!=64)c+=String.fromCharCode(e)}return c=Base64._utf8_decode(c)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var c="",b=0;b<a.length;b++){var d=a.charCodeAt(b);if(d<128)c+=String.fromCharCode(d);else{if(d>127&&d<2048)c+=
String.fromCharCode(d>>6|192);else{c+=String.fromCharCode(d>>12|224);c+=String.fromCharCode(d>>6&63|128)}c+=String.fromCharCode(d&63|128)}}return c},_utf8_decode:function(a){for(var c="",b=0,d=c1=c2=0;b<a.length;){d=a.charCodeAt(b);if(d<128){c+=String.fromCharCode(d);b++}else if(d>191&&d<224){c2=a.charCodeAt(b+1);c+=String.fromCharCode((d&31)<<6|c2&63);b+=2}else{c2=a.charCodeAt(b+1);c3=a.charCodeAt(b+2);c+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63);b+=3}}return c}};
function html_entity_decode(a,c){var b={},d="",e="",g="";e=a.toString();if(false===(b=this.get_html_translation_table("HTML_ENTITIES",c)))return false;delete b["&"];b["&"]="&amp;";for(d in b){g=b[d];e=e.split(g).join(d)}return e=e.split("&#039;").join("'")}function htmlspecialchars(a,c){var b={},d="",e="",g="";e=a.toString();if(false===(b=this.get_html_translation_table("HTML_SPECIALCHARS",c)))return false;b["'"]="&#039;";for(d in b){g=b[d];e=e.split(d).join(g)}return e}
function get_html_translation_table(a,c){var b={},d={},e=0,g="";g={};var q={},f={},h={};g[0]="HTML_SPECIALCHARS";g[1]="HTML_ENTITIES";q[0]="ENT_NOQUOTES";q[2]="ENT_COMPAT";q[3]="ENT_QUOTES";f=!isNaN(a)?g[a]:a?a.toUpperCase():"HTML_SPECIALCHARS";h=!isNaN(c)?q[c]:c?c.toUpperCase():"ENT_COMPAT";if(f!=="HTML_SPECIALCHARS"&&f!=="HTML_ENTITIES")throw new Error("Table: "+f+" not supported");b["38"]="&amp;";if(f==="HTML_ENTITIES"){b["160"]="&nbsp;";b["161"]="&iexcl;";b["162"]="&cent;";b["163"]="&pound;";
b["164"]="&curren;";b["165"]="&yen;";b["166"]="&brvbar;";b["167"]="&sect;";b["168"]="&uml;";b["169"]="&copy;";b["170"]="&ordf;";b["171"]="&laquo;";b["172"]="&not;";b["173"]="&shy;";b["174"]="&reg;";b["175"]="&macr;";b["176"]="&deg;";b["177"]="&plusmn;";b["178"]="&sup2;";b["179"]="&sup3;";b["180"]="&acute;";b["181"]="&micro;";b["182"]="&para;";b["183"]="&middot;";b["184"]="&cedil;";b["185"]="&sup1;";b["186"]="&ordm;";b["187"]="&raquo;";b["188"]="&frac14;";b["189"]="&frac12;";b["190"]="&frac34;";b["191"]=
"&iquest;";b["192"]="&Agrave;";b["193"]="&Aacute;";b["194"]="&Acirc;";b["195"]="&Atilde;";b["196"]="&Auml;";b["197"]="&Aring;";b["198"]="&AElig;";b["199"]="&Ccedil;";b["200"]="&Egrave;";b["201"]="&Eacute;";b["202"]="&Ecirc;";b["203"]="&Euml;";b["204"]="&Igrave;";b["205"]="&Iacute;";b["206"]="&Icirc;";b["207"]="&Iuml;";b["208"]="&ETH;";b["209"]="&Ntilde;";b["210"]="&Ograve;";b["211"]="&Oacute;";b["212"]="&Ocirc;";b["213"]="&Otilde;";b["214"]="&Ouml;";b["215"]="&times;";b["216"]="&Oslash;";b["217"]=
"&Ugrave;";b["218"]="&Uacute;";b["219"]="&Ucirc;";b["220"]="&Uuml;";b["221"]="&Yacute;";b["222"]="&THORN;";b["223"]="&szlig;";b["224"]="&agrave;";b["225"]="&aacute;";b["226"]="&acirc;";b["227"]="&atilde;";b["228"]="&auml;";b["229"]="&aring;";b["230"]="&aelig;";b["231"]="&ccedil;";b["232"]="&egrave;";b["233"]="&eacute;";b["234"]="&ecirc;";b["235"]="&euml;";b["236"]="&igrave;";b["237"]="&iacute;";b["238"]="&icirc;";b["239"]="&iuml;";b["240"]="&eth;";b["241"]="&ntilde;";b["242"]="&ograve;";b["243"]=
"&oacute;";b["244"]="&ocirc;";b["245"]="&otilde;";b["246"]="&ouml;";b["247"]="&divide;";b["248"]="&oslash;";b["249"]="&ugrave;";b["250"]="&uacute;";b["251"]="&ucirc;";b["252"]="&uuml;";b["253"]="&yacute;";b["254"]="&thorn;";b["255"]="&yuml;"}if(h!=="ENT_NOQUOTES")b["34"]="&quot;";if(h==="ENT_QUOTES")b["39"]="&#39;";b["60"]="&lt;";b["62"]="&gt;";for(e in b){g=String.fromCharCode(e);d[g]=b[e]}return d}
function md5(a){var c=function(s,u){return s<<u|s>>>32-u},b=function(s,u){var v,z,y,x;y=s&2147483648;x=u&2147483648;v=s&1073741824;z=u&1073741824;s=(s&1073741823)+(u&1073741823);if(v&z)return s^2147483648^y^x;return v|z?s&1073741824?s^3221225472^y^x:s^1073741824^y^x:s^y^x},d=function(s,u,v){return s&u|~s&v},e=function(s,u,v){return s&v|u&~v},g=function(s,u,v){return s^u^v},q=function(s,u,v){return u^(s|~v)},f=function(s,u,v,z,y,x,A){s=b(s,b(b(d(u,v,z),y),A));return b(c(s,x),u)},h=function(s,u,v,z,
y,x,A){s=b(s,b(b(e(u,v,z),y),A));return b(c(s,x),u)},j=function(s,u,v,z,y,x,A){s=b(s,b(b(g(u,v,z),y),A));return b(c(s,x),u)},r=function(s,u,v,z,y,x,A){s=b(s,b(b(q(u,v,z),y),A));return b(c(s,x),u)},t=function(s){var u="",v="",z;for(z=0;z<=3;z++){v=s>>>z*8&255;v="0"+v.toString(16);u+=v.substr(v.length-2,2)}return u},k=[],p,w,B,C,D,l,m,n,o;a=this.utf8_encode(a);k=function(s){var u,v=s.length;u=v+8;for(var z=((u-u%64)/64+1)*16,y=new Array(z-1),x=0,A=0;A<v;){u=(A-A%4)/4;x=A%4*8;y[u]|=s.charCodeAt(A)<<
x;A++}u=(A-A%4)/4;x=A%4*8;y[u]|=128<<x;y[z-2]=v<<3;y[z-1]=v>>>29;return y}(a);l=1732584193;m=4023233417;n=2562383102;o=271733878;a=k.length;for(p=0;p<a;p+=16){w=l;B=m;C=n;D=o;l=f(l,m,n,o,k[p+0],7,3614090360);o=f(o,l,m,n,k[p+1],12,3905402710);n=f(n,o,l,m,k[p+2],17,606105819);m=f(m,n,o,l,k[p+3],22,3250441966);l=f(l,m,n,o,k[p+4],7,4118548399);o=f(o,l,m,n,k[p+5],12,1200080426);n=f(n,o,l,m,k[p+6],17,2821735955);m=f(m,n,o,l,k[p+7],22,4249261313);l=f(l,m,n,o,k[p+8],7,1770035416);o=f(o,l,m,n,k[p+9],12,2336552879);
n=f(n,o,l,m,k[p+10],17,4294925233);m=f(m,n,o,l,k[p+11],22,2304563134);l=f(l,m,n,o,k[p+12],7,1804603682);o=f(o,l,m,n,k[p+13],12,4254626195);n=f(n,o,l,m,k[p+14],17,2792965006);m=f(m,n,o,l,k[p+15],22,1236535329);l=h(l,m,n,o,k[p+1],5,4129170786);o=h(o,l,m,n,k[p+6],9,3225465664);n=h(n,o,l,m,k[p+11],14,643717713);m=h(m,n,o,l,k[p+0],20,3921069994);l=h(l,m,n,o,k[p+5],5,3593408605);o=h(o,l,m,n,k[p+10],9,38016083);n=h(n,o,l,m,k[p+15],14,3634488961);m=h(m,n,o,l,k[p+4],20,3889429448);l=h(l,m,n,o,k[p+9],5,568446438);
o=h(o,l,m,n,k[p+14],9,3275163606);n=h(n,o,l,m,k[p+3],14,4107603335);m=h(m,n,o,l,k[p+8],20,1163531501);l=h(l,m,n,o,k[p+13],5,2850285829);o=h(o,l,m,n,k[p+2],9,4243563512);n=h(n,o,l,m,k[p+7],14,1735328473);m=h(m,n,o,l,k[p+12],20,2368359562);l=j(l,m,n,o,k[p+5],4,4294588738);o=j(o,l,m,n,k[p+8],11,2272392833);n=j(n,o,l,m,k[p+11],16,1839030562);m=j(m,n,o,l,k[p+14],23,4259657740);l=j(l,m,n,o,k[p+1],4,2763975236);o=j(o,l,m,n,k[p+4],11,1272893353);n=j(n,o,l,m,k[p+7],16,4139469664);m=j(m,n,o,l,k[p+10],23,3200236656);
l=j(l,m,n,o,k[p+13],4,681279174);o=j(o,l,m,n,k[p+0],11,3936430074);n=j(n,o,l,m,k[p+3],16,3572445317);m=j(m,n,o,l,k[p+6],23,76029189);l=j(l,m,n,o,k[p+9],4,3654602809);o=j(o,l,m,n,k[p+12],11,3873151461);n=j(n,o,l,m,k[p+15],16,530742520);m=j(m,n,o,l,k[p+2],23,3299628645);l=r(l,m,n,o,k[p+0],6,4096336452);o=r(o,l,m,n,k[p+7],10,1126891415);n=r(n,o,l,m,k[p+14],15,2878612391);m=r(m,n,o,l,k[p+5],21,4237533241);l=r(l,m,n,o,k[p+12],6,1700485571);o=r(o,l,m,n,k[p+3],10,2399980690);n=r(n,o,l,m,k[p+10],15,4293915773);
m=r(m,n,o,l,k[p+1],21,2240044497);l=r(l,m,n,o,k[p+8],6,1873313359);o=r(o,l,m,n,k[p+15],10,4264355552);n=r(n,o,l,m,k[p+6],15,2734768916);m=r(m,n,o,l,k[p+13],21,1309151649);l=r(l,m,n,o,k[p+4],6,4149444226);o=r(o,l,m,n,k[p+11],10,3174756917);n=r(n,o,l,m,k[p+2],15,718787259);m=r(m,n,o,l,k[p+9],21,3951481745);l=b(l,w);m=b(m,B);n=b(n,C);o=b(o,D)}return(t(l)+t(m)+t(n)+t(o)).toLowerCase()}
function utf8_encode(a){a=a+"";var c="",b,d,e=0;b=d=0;e=a.length;for(var g=0;g<e;g++){var q=a.charCodeAt(g),f=null;if(q<128)d++;else f=q>127&&q<2048?String.fromCharCode(q>>6|192)+String.fromCharCode(q&63|128):String.fromCharCode(q>>12|224)+String.fromCharCode(q>>6&63|128)+String.fromCharCode(q&63|128);if(f!==null){if(d>b)c+=a.substring(b,d);c+=f;b=d=g+1}}if(d>b)c+=a.substring(b,a.length);return c}
var FlashDetect=new (function(){var a=this;a.installed=false;a.raw="";a.major=-1;a.minor=-1;a.revision=-1;a.revisionStr="";var c=[{name:"ShockwaveFlash.ShockwaveFlash.7",version:function(f){return b(f)}},{name:"ShockwaveFlash.ShockwaveFlash.6",version:function(f){var h="6,0,21";try{f.AllowScriptAccess="always";h=b(f)}catch(j){}return h}},{name:"ShockwaveFlash.ShockwaveFlash",version:function(f){return b(f)}}],b=function(f){var h=-1;try{h=f.GetVariable("$version")}catch(j){}return h},d=function(f){var h=
-1;try{h=new ActiveXObject(f)}catch(j){h={activeXError:true}}return h},e=function(f){var h=f.split(",");return{raw:f,major:parseInt(h[0].split(" ")[1],10),minor:parseInt(h[1],10),revision:parseInt(h[2],10),revisionStr:h[2]}},g=function(f){var h=f.split(/ +/),j=h[2].split(/\./);h=h[3];return{raw:f,major:parseInt(j[0],10),minor:parseInt(j[1],10),revisionStr:h,revision:q(h)}},q=function(f){return parseInt(f.replace(/[a-zA-Z]/g,""),10)||a.revision};a.majorAtLeast=function(f){return a.major>=f};a.minorAtLeast=
function(f){return a.minor>=f};a.revisionAtLeast=function(f){return a.revision>=f};a.versionAtLeast=function(){var f=[a.major,a.minor,a.revision],h=Math.min(f.length,arguments.length);for(i=0;i<h;i++)if(f[i]>=arguments[i]){if(!(i+1<h&&f[i]==arguments[i]))return true}else return false};a.FlashDetect=function(){if(navigator.plugins&&navigator.plugins.length>0){var f=navigator.mimeTypes;if(f&&f["application/x-shockwave-flash"]&&f["application/x-shockwave-flash"].enabledPlugin&&f["application/x-shockwave-flash"].enabledPlugin.description){f=
f["application/x-shockwave-flash"].enabledPlugin.description;var h=g(f);a.raw=h.raw;a.major=h.major;a.minor=h.minor;a.revisionStr=h.revisionStr;a.revision=h.revision;a.installed=true}}else if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){f=-1;for(var j=0;j<c.length&&f==-1;j++){h=d(c[j].name);if(!h.activeXError){a.installed=true;f=c[j].version(h);if(f!=-1){h=e(f);a.raw=h.raw;a.major=h.major;a.minor=h.minor;a.revision=h.revision;a.revisionStr=h.revisionStr}}}}}()});
FlashDetect.JS_RELEASE="1.0.4";
