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