var seaTimeout;var tiSeaZ=200;var fragment;var seaMode=false;var fs="";var fStart=null;var CO={md:false,so:3,sop:2,ca:0,cap:0,ul:false,uc:false,uh:true,ud:0,uv:false,ua:false,ri:-1,cs:true,cl:Array(),ls:null,ms:""};var ll=[];var px;var oiw=790;var oih=580;var li=false;var lty="";var xls="";var si=0;var ml=false;var cof=true;var prevDrop=null;var lastSearch="";var ri=-1;var lri=0;var lai=-1;var ls="";var srZ=0;var opA=Array("icd","pri","kva","atc","mor");var divA=Array("ksh","kva","atc","mor","ksh","ksh");var _m_elink=103;var _m_note=104;var _m_calc=105;var _m_help=108;var _m_underlakare=110;var _m_rss=111;var dxk=[];var kmode=false;var hi=true;var hib;var hii;var hih="";var pw;var hd;var isie,isie6,isie6lt,iswin;var wLogin;var tiLC;var phAList="Koder";var phNoMatches="Sökningen gav tyvärr inga träffar.";var phGoToCat="Visa närliggande koder";var phInstruction="Sök efter kod genom att skriva i rutan";var phAddToBasket="Lägg till diagnoslistan";var phListToAccount="Visa listan på mitt konto";var phListToClient="Visa listan på denna dator";var phList="Koder";var phSuggestDaggers="Föreslå daggerkoder";var phComment="Kommentera";var cDagger="†";var _FS_unload_init=0;var _FS_unload_proceed=1;var _FS_unload_deleted=2;var _FS_unload_fail=3;var _FS_unload_logout=_FS_unload_deleted;var hmode=1;Array.prototype.pos=function(A){var B=0;while(B<this.length){if(this[B]==A){return B}B++}return -1};Array.prototype.contains=function(A){var B=0;while(B<this.length){if(this[B]==A){return true}B++}return false};Array.prototype.max=function(){return Math.max.apply({},this)};function XS(A,E,B){this.callback=E;this.module=A;this.arg=B;var D=wx+"js/"+A+".js";var C=Y.util.Connect.asyncRequest("GET",D,this)}XS.prototype.failure=function(A){};XS.prototype.success=function(B){if(B.status!=200){this.failure();return }var A=document.createElement("script");document.getElementsByTagName("head")[0].appendChild(A);A.type="text/javascript";A.text=B.responseText;System.report(this.module,this.callback,this.arg)};var System={components:[],queue:[],rid:0,include:function(m){if(this.components.contains(m)){try{eval("_"+m+"_();")}catch(err){}return }var s=document.createElement("script");s.type="text/javascript";s.src=wx+"js/"+m+".js";document.getElementsByTagName("head")[0].appendChild(s)},require:function(B){var A=System.require.caller.arguments;if(this.components.contains(B)){return true}new XS(B,System.require.caller,A);return false},report:function(A,C,B){if(!this.components.contains(A)){this.components.push(A)}if(typeof C=="function"){if(typeof B=="undefined"){C.call()}else{C.apply(this,B)}}},external:function(D){if(arguments.length<1){return }var E=arguments[0].split(":");var B=E[0];var C=E[1];if(!System.require(B)){return }var A=[];for(var F=1;F<arguments.length;F++){A.push(arguments[F])}if(typeof window[C]!="function"){return }window[C].apply(this,A)},modules:{_modules:[],add:function(A){this._modules.push(A)},byType:function(A){var B=[];for(var C=0;C<this._modules.length;C++){if(this._modules[C].type==A){B.push(this._modules[C])}}return B},get:function(B){for(var A=0;A<this._modules.length;A++){if(this._modules[A].id==B){return this._modules[A]}}return false},idx:function(B){for(var A=0;A<this._modules.length;A++){if(this._modules[A].id==B){return A}}return -1},byOwner:function(A){if(A!==true){A=false}var B=[];for(var C=0;C<this._modules.length;C++){if(0>(A)?-1*this._modules[C].id:this._modules[C].id){B.push(this._modules[C])}}return B},unload:function(E,C){if(typeof C=="undefined"){C=_FS_unload_init}if(C==_FS_unload_fail){return }var D,B;var A=this.get(E);if(A===false){return }if(E>-1){if(C==_FS_unload_init){dialog("moduleDelete",{data:E})}else{if(C==_FS_unload_proceed){(new CR("md",{id:E},"m.php")).send()}else{if(C==_FS_unload_deleted){if(!(D=document.getElementById("M_"+A.id+"_"+A.type))){return }D.parentNode.removeChild(D);B=this.idx(E);if(B>-1){this._modules.splice(B,1)}}}}}else{if(!(D=document.getElementById("M_"+A.id+"_"+A.type))){return }D.parentNode.removeChild(D);B=this.idx(E);if(B>-1){this._modules.splice(B,1)}}}}};function dialog(B,A){if(!System.require("int")){return }if(typeof A=="object"){var A=new Dialog(B,A)}else{var A=new Dialog(B)}}function CR(E,D,C,A,B){this.op=E;this.d=D;this.q=wx+C;this.fnSuccess=(typeof A=="function")?A:function(){return };this.fnFailure=(typeof B=="function")?B:function(){return }}CR.prototype.failure=function(A){};CR.prototype.success=function(o){if(o.status!=200){this.failure();return }var t=parseInt(o.responseText.substr(0,1));var d=o.responseText.substr(1);switch(t){case 4:complain(d);break;case 3:return ;break;case 2:eval(d);break;case 1:break;default:break}};CR.prototype.send=function(){var C=this.q;delete this.q;var B=JSON.stringify(this);Y.util.Connect.resetDefaultHeaders();Y.util.Connect.setDefaultPostHeader(false);Y.util.Connect.initHeader("Content-Length",B.length);Y.util.Connect.initHeader("Content-Type","application/json; charset=utf-8",true);var A=Y.util.Connect.asyncRequest("POST",C,this,B)};var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"Unknown";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown";this.OS=this.searchString(this.dataOS)||"Unknown";isie=(BrowserDetect.browser=="Explorer");isie6=(isie&&(BrowserDetect.version==6));isie6lt=(isie&&(BrowserDetect.version<6));iswin=(this.OS=="Windows")},searchString:function(D){for(var A=0;A<D.length;A++){var B=D[A].string;var C=D[A].prop;this.versionSearchString=D[A].versionSearch||D[A].identity;if(B){if(B.indexOf(D[A].subString)!=-1){return D[A].identity}}else{if(C){return D[A].identity}}}},searchVersion:function(B){var A=B.indexOf(this.versionSearchString);if(A==-1){return }return parseFloat(B.substring(A+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();var windowState=(function(){var F={scrollLeft:0,scrollTop:0};var A={clientWidth:0,clientHeight:0};var D="scrollLeft";var C="scrollTop";var G="clientWidth";var E="clientHeight";function B(H){if((document.compatMode)&&(document.compatMode=="CSS1Compat")&&(document.documentElement)){return document.documentElement}else{if(document.body){return document.body}else{return H}}}if((typeof this.innerHeight=="number")&&(typeof this.innerWidth=="number")){A=this;G="innerWidth";E="innerHeight"}else{A=B(A)}if((typeof this.pageYOffset=="number")&&(typeof this.pageXOffset=="number")){F=this;C="pageYOffset";D="pageXOffset"}else{F=B(F)}return{getScrollX:function(){return(F[D]||0)},getScrollY:function(){return(F[C]||0)},getWidth:function(){return(A[G]||0)},getHeight:function(){return(A[E]||0)}}})();var EventUtil=new Object;EventUtil.formatEvent=function(A){if(BrowserDetect.browser=="Opera"){return A}if(isie){A.charCode=(A.type=="keypress")?A.keyCode:0;A.eventPhase=2;A.isChar=(A.charCode>0);A.pageX=A.clientX+document.body.scrollLeft;A.pageY=A.clientY+document.body.scrollTop;A.preventDefault=function(){this.returnValue=false};if(A.type=="mouseout"){A.relatedTarget=A.toElement}else{if(A.type=="mouseover"){A.relatedTarget=A.fromElement}}A.stopPropagation=function(){this.cancelBubble=true};A.target=A.srcElement;if(A.srcElement&&A.srcElement.id){A.target.id=A.srcElement.id}A.time=(new Date).getTime()}return A};EventUtil.getEvent=function(){if(window.event){return this.formatEvent(window.event)}else{return(!isie)?EventUtil.getEvent.caller.arguments[0]:this.formatEvent(EventUtil.getEvent.caller.arguments[0])}};function unformat(A){A=A.replace(/[^A-Za-z0-9\-]/g,"");return A}function go(A){if(!A.match(/^\/|http/)){A=wx+A}window.location.href=A}function gdx(B){var A=wx+((CO.md)?"diagnos/p/":"diagnos/")+B;go(A)}function gkva(A){go(wx+((CO.md)?"kva/p/":"kva/")+A)}function icdStart(C){var F,E,B,A;px=(typeof document.body.style.top=="string")?"px":0;scriptTabs();if((E=document.getElementById("aSettings"))){E.style.visibility="visible"}if((E=document.getElementById("aAlt"))){E.style.display="block"}if((E=document.getElementById("tdMenu_settings"))){E.className="menu"}if((E=document.getElementById("trK"))){formatTrK(E)}A=getCookie("pli",true);if(!li&&A!=null&&A.length>9){pliLogin(A)}readCookies();applyOptions();if(cp=="list"&&typeof setupListView=="function"){setupListView()}lastSearch=(typeof fStart=="string")?fStart:"";setTimeout(function(){ml=true},100);if(typeof ife=="string"){if(E=document.getElementById(ife)){E.focus()}}if(typeof pp=="number"){prePop()}if(li&&mx){modulesCheck()}if(li&&(lty=="openid")){openidMenu()}if(hi){hiStart()}if(typeof synPrepare=="function"){synPrepare()}if(location.href.match(/info$/)){writePst();return }if(typeof calcStart=="function"){calcStart()}else{if(typeof protStart=="function"){protStart()}}if(typeof mex!="undefined"){mexStart()}if(isie6lt){if(YAHOO.util.Cookie.getSub("uz","anc",Boolean)!==true){System.include("anc")}}if(E=document.getElementById("inputSearch")){si=0}else{if(E=document.getElementById("inputSearchATC")){si=1}else{if(E=document.getElementById("inputSearchMOR")){si=2}else{if(E=document.getElementById("inputSearchLists")){si=100}else{return }}}}if(si==0&&typeof ct=="string"&&ct=="pri"&&!CO.md){System.include("pck")}if(isie){var D=document.createElement("div");var C;if(C=document.getElementById("divSearch")){C.parentNode.insertBefore(D,C)}}fragment=document.getElementById("tableResults").firstChild.cloneNode(true);if(typeof fStart!="undefined"&&fStart.length>0){seaSetFocus(fStart)}else{seaSetFocus()}}function keypressCode(A){return(A.charCode)?A.charCode:((A.keyCode)?A.keyCode:((A.which)?A.which:0))}function hiStart(){if(ct=="search"||ct=="icd"||ct=="kva"){hib=Y.util.History.getBookmarkedState("f");hii=hib||"";if(hii!=""){seaSearch(hii);seaFocus()}Y.util.History.register("f",hii,hiq)}if(ct=="calc"){hicb=Y.util.History.getBookmarkedState("t");hici=hicb||"";if(hici!=""){calcTabClick(parseInt(hici))}Y.util.History.register("t",hici,hicq)}Y.util.History.initialize("yhf","yhi")}function hiq(A){}function applyOptions(){if(typeof tP!="undefined"){pageStart(tP)}if(typeof seaAlt=="function"&&(CO.ua||(!CO.md&&CO.ca<3)||(CO.md&&CO.cap<3))){seaAlt()}formatAltDrop();if(CO.cl.length>0&&typeof buildList=="function"){buildList()}if(!(o=document.getElementById("divLists"))){return }o.innerHTML="";if(li&&lty=="openid"){if(o=document.getElementById("dropPwd")){o.parentNode.removeChild(o)}}if(li&&lty!="icd.nu"){if(o=document.getElementById("dropKnyt")){o.parentNode.removeChild(o)}}if(typeof ht=="string"){mkHelpV()}mkReceivers()}function mkReceivers(){var E;if(!(E=document.getElementById("divLists"))){return }var B=E.innerHTML;var A=[],C;var D=new RegExp("sRecv_([0-9]{2,})","g");while(C=D.exec(decodeURIComponent(xls))){A.push(C[1])}for(var F=0;F<ll.length;F++){if(A.contains(ll[F][0])){continue}B+='<a class="ll-local" href="'+wx+"lista/"+ll[F][0]+'" title="Visa lista">'+ll[F][1]+"</a>";if(ll[F][2]>0){B+='<span id="sRecv_'+ll[F][0]+'" title="Välj denna lista som mottagare av nya koder" class="list-recv" onclick="listSetRecv(event);" style="visibility:hidden;">&nbsp;+&nbsp;</span>'}}E.innerHTML=B+decodeURIComponent(xls);formatSRecv()}function mkHelpV(){var B;if(!(B=document.getElementById("divLists"))){return }if(document.getElementById("aHL_0")){return }var A='<a id="aHL_0" class="ll-help" onclick="hlv(event,\''+ht+"');\">?</a>";B.innerHTML=A+B.innerHTML}function readCookies(){CO.ri=parseInt(getCookie("ri"));if(isNaN(CO.ri)){CO.ri=-1}var E=YAHOO.util.Cookie.getSubs((li)?"xue":"ue");var E,B;if(E!=null){CO.ul=(typeof E.l!="undefined")?(E.l!=0):true;CO.uc=(typeof E.c!="undefined")?(E.c!=0):false;CO.uh=(typeof E.h!="undefined")?(E.h!=0):true;CO.uv=(typeof E.v!="undefined")?(E.v!=0):false;CO.ua=(typeof E.a!="undefined")?(E.a!=0):false;CO.cs=(typeof E.s!="undefined")?(E.s!=0):false;CO.so=(typeof E.o!="undefined")?parseInt(E.o):3;if(CO.so<1||CO.so>3){CO.so=3}CO.sop=(typeof E.p!="undefined")?parseInt(E.p):2;if(CO.sop<1||CO.sop>2){CO.sop=2}CO.ca=(typeof E.t!="undefined")?parseInt(E.t):3;if(isNaN(CO.ca)||CO.ca<1||CO.ca>3){CO.ca=3}CO.cap=(typeof E.u!="undefined")?parseInt(E.u):3;if(isNaN(CO.cap)||CO.cap<1||CO.cap>3){CO.cap=3}CO.ud=(typeof E.d!="undefined")?parseInt(E.d):1;if(isNaN(CO.ud)){CO.ud=1}if(CO.ud<0||CO.ud>2){CO.ud=1}CO.md=(typeof E.m!="undefined")?(E.m==1):false;CO.ms=(typeof E.z!="undefined")?(E.z):""}var C=YAHOO.util.Cookie.get("cl");if(C&&C.length>4){CO.cl=JSON.parse(C)}else{CO.cl=Array()}var A=getCookie("ls");if(A&&A.length>4){CO.ls=C}else{CO.ls=null}var D=getCookie("ll",true);if(D&&D.length>4){ll=JSON.parse(D)}else{ll=[]}}function setCookieE(){var A={l:(CO.ul)?1:0,c:(CO.uc)?1:0,h:(CO.uh)?1:0,v:(CO.uv)?1:0,a:(CO.ua)?1:0,s:(CO.cs)?1:0,o:CO.so,p:CO.sop,t:CO.ca,u:CO.cap,d:CO.ud,m:(CO.md)?1:0,z:CO.ms};var C={};C.path="/";if(!li){var B=new Date;C.expires=new Date(B.getTime()+31536000000)}YAHOO.util.Cookie.setSubs((li)?"xue":"ue",A,C)}function setCookies(A){for(w in A){CO[w]=A[w];setCookie(w,CO[w])}}function setCookieS(C,B,A){var E={};if(!li){var D=new Date;E.expires=new Date(D.getTime()+31536000000)}else{C="x"+C}E.path="/";YAHOO.util.Cookie.setSub(C,B,A,E)}function setCookie(B,I,F,G){var A={};if(li&&(F!==true)){B="x"+B}var E=setCookie.arguments;var D=setCookie.arguments.length;var G=(D>3)?parseInt(E[3])*60000:null;if(G!=null){var H=new Date;A.expires=new Date(H.getTime()+G)}try{YAHOO.util.Cookie.set(B,I,A)}catch(C){}}function formatTrK(B){for(c=0;c<B.childNodes.length;c++){if(B.childNodes[c].nodeType==1){B.childNodes[c].className="ibj";if(isie&&B.childNodes[c].childNodes.length>0){var A=document.createElement("span");A.className="ibj";A.appendChild(document.createTextNode(B.childNodes[c].firstChild.innerHTML));B.childNodes[c].replaceChild(A,B.childNodes[c].childNodes[0])}}}}function formatAltDrop(){if(o=document.getElementById("chkPri")){o.checked=(CO.md);aMod(CO.md)}if(o=document.getElementById("chkList")){o.checked=kmode=(CO.ul)}if(o=document.getElementById("chkAlt")){o.checked=(CO.ua)}if(o=document.getElementById("chkLinks")){o.checked=(!CO.uh)}if(o=document.getElementById("chkComm")){o.checked=(CO.uc)}if(o=document.getElementById("selDagger")){for(c=0;c<o.options.length;c++){if(o.options[c].value==CO.ud){o.options.selectedIndex=c;break}}}}function pageStart(A){if((A=="kva"||A=="icd"||A=="pri"||A=="atc"||A=="mor"||A=="list")){var B;B=document.getElementsByTagName("table");for(var C=0;C<B.length;C++){if(B[C].id.match(/^tableResults/)){formatTable(B[C])}}}}function modAlt(D){var I,H,G,F,E,B,A,J,K;if(I=document.getElementById("aAlt")){K=false}else{K=true}if(!(H=document.getElementById("aA_1_1"))){return }if(!(G=document.getElementById("aA_1_2"))){return }if(!(F=document.getElementById("aA_1_3"))){return }if(!(E=document.getElementById("aA_2_3"))){return }if(!(B=document.getElementById("aA_2_1"))){return }if(!(A=document.getElementById("aA_2_2"))){return }var C=H.parentNode;if(D){if(CO.sop==2){B.className="aa";A.className="aa-s"}else{B.className="aa-s";A.className="aa"}if(CO.cap==1){H.className="aa-s";G.className="aa";F.className="aa"}else{if(CO.cap==2){H.className="aa";G.className="aa-s";F.className="aa"}else{H.className="aa";G.className="aa";F.className="aa-s"}}}else{if(K){H.style.display="";G.style.display="";F.style.display="";E.style.display=""}if(CO.so==1){E.className="aa";B.className="aa-s";A.className="aa"}else{if(CO.so==2){E.className="aa";B.className="aa";A.className="aa-s"}else{E.className="aa-s";B.className="aa";A.className="aa"}}if(CO.ca==1){H.className="aa-s";G.className="aa";F.className="aa"}else{if(CO.ca==2){H.className="aa";G.className="aa-s";F.className="aa"}else{H.className="aa";G.className="aa";F.className="aa-s"}}}}function chk(){var C;if(!(C=document.getElementById("chkPri"))){C=document.getElementById("chkPriAlt")}CO.md=(C.checked);setCookieE();var A="",B=location.href;if(!CO.md){if(B.match(/diagnos\/p\/?$/)){A=B.replace(/diagnos.*/,"diagnos")}else{if(B.match(/diagnos\/p\/.*$/)){A=B.replace(/diagnos\/p/,"diagnos")}else{if(B.match(/kva\/p\/?$/)){A=B.replace(/kva.*/,"kva")}else{if(B.match(/kva\/p\/.*$/)){A=B.replace(/kva\/p/,"kva")}}}}}else{if(B.match(/diagnos\/?$/)){A=B.replace(/diagnos.*/,"diagnos/p/")}else{if(B.match(/diagnos\/[^p][^\/]/)){A=B.replace(/diagnos\//,"diagnos/p/")}else{if(B.match(/kva\/?$/)){A=B.replace(/kva.*/,"kva/p/")}else{if(B.match(/kva\/[^p][^\/]/)){A=B.replace(/kva\//,"kva/p/")}}}}}if(A!=""){location.href=A}aMod(CO.md);if(!(C=document.getElementById("inputSearch"))){return }if(seaMode){seaSearch(trim(C.value))}}function chkList(){var A;if(!(A=document.getElementById("chkList"))){return }CO.ul=(A.checked);setCookieE();if(typeof formatTable=="function"){formatTable()}if(typeof toggleRecv=="function"){toggleRecv()}}function chkCS(){var A;if(!(A=document.getElementById("chkCSAlt"))){return }CO.cs=(!A.checked);setCookieE()}function chkLinks(){var A;if(!(A=document.getElementById("chkLinks"))){return }CO.uh=(!A.checked);setCookieE();if(!(A=document.getElementById("inputSearch"))){return }if(typeof formatTable=="function"){formatTable()}}function chkAlt(){var A;if(!(A=document.getElementById("chkAlt"))){return }CO.ua=(A.checked);setCookieE();if(CO.ua){seaAlt()}}function chkComm(){var A;if(!(A=document.getElementById("chkComm"))){return }CO.uc=(A.checked);setCookieE();if(typeof formatTable=="function"){formatTable()}}function reSearch(){if(seaMode){seaSearch((o.length>0)?trim(o.value):fStart)}}function selDagger(A){A=EventUtil.getEvent();var C=A.target.options;var B=C[C.selectedIndex].value;if(B<0||B>2){B=0}CO.ud=B;setCookieE();seaSearch()}function aMod(A){modAlt(A)}function getCookie(E,F){if(li&&(typeof F=="undefined")){E="x"+E}var B=document.cookie.split(";");var D="";var G="";var C="";var F=false;for(i=0;i<B.length;i++){D=B[i].split("=");G=D[0].replace(/^\s+|\s+$/g,"");if(G==E){F=true;if(D.length>1){C=unescape(D[1].replace(/^\s+|\s+$/g,""))}return C;break}D=null;G=""}if(!F){return null}}function tipsUpdateMsg(){var A=document.getElementById("iSnd").value;var B=document.getElementById("taMsg").value;var C=document.getElementById("divMsg");C.innerHTML=B.replace(/\n\r/g,"<br />")+"<br /><br />http://icd.nu/<br /><br />Med v&auml;nliga h&auml;lsningar<br /><br />"+A}function getStyle(C,B){if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(C,null)[B]}else{if(C.currentStyle){var A=C.currentStyle[B];if(B=="height"&&A=="auto"){A=C.offsetHeight}else{if(B=="width"&&A=="auto"){A=C.offsetWidth}}return A}else{return C.style[B]}}}function getLeft(B){var A=Y.util.Dom.getRegion(B);return A.left}function getTop(B){var A=B.offsetTop;while(B.parentNode){B=B.parentNode;if(!B.tagName){continue}A+=parseInt(B.offsetTop)}return A}function centerObject(A){var F=windowState.getWidth();var B=windowState.getHeight();var H=windowState.getScrollX();var C=windowState.getScrollY();var G=parseInt(getStyle(A,"width"));var D=parseInt(getStyle(A,"height"));var E=Math.round(H+((F-G)/2));var I=Math.round(C+((B-D)/2));E=(E<0)?0:E;I=(I<0)?0:I;A.style.top=I+px;A.style.left=E+px}function dropDown(L,H,M){var L=EventUtil.getEvent();deleteDrops();var B;if(typeof M=="undefined"){M=false}if(!ml){L.preventDefault();return }var D=L.target;if(D.tagName.toLowerCase()=="a"){D=D.parentNode}var G=getLeft(D);var F="tdMenu_"+H;if(!(B=document.getElementById(F))){return }var I=Y.util.Dom.getRegion(B);var E=I.right-I.left;var C;if(!(C=document.getElementById("drop"+H))){return }C.style.visibility="hidden";C.style.display="block";var I=Y.util.Dom.getRegion(C);var K=I.right-I.left;I=Y.util.Dom.getRegion(D);var A=I.right;prevDrop=H;B.className=B.className.split("-")[0]+"-open";var G;if(M){var J=(isie6)?-2:0;G=A-E+J}else{var J=(isie6)?-1:0;G=A-K+J}if(G<0){G=0}C.style.left=G+px;C.style.visibility="visible"}function dropSub(I,J){I=EventUtil.getEvent();var B,A;A=I.target;if(!(B=document.getElementById(A.parentNode.id+"-"+J))){return }deleteSubDrops(substrZ(B.id,"-"));var H=getTop(A);B.style.display="block";var C=Y.util.Dom.getRegion(B);var G=C.right-C.left;C=Y.util.Dom.getRegion(A.parentNode);var D=C.left;var E=windowWidth()-D;var F=(isie6)?3:1;if(E>G){D=C.right-F}else{D=C.left-G+F}B.style.left=D+px;B.style.top=H+px;B.style.visibility="visible"}function deleteSubDrops(B){var A=document.getElementById("dropshadow");if(A){A.style.display=""}A=document.getElementsByTagName("div");for(var C=0;C<A.length;C++){if(A[C].className=="drop-sub"){if(substrZ(A[C].id,"-")>=B){A[C].style.display=""}}}}function deleteDrops(){var B,A,C;B=document.getElementsByTagName("div");if(!(A=document.getElementsByTagName("td"))){return }for(C=0;C<A.length;C++){if(!A[C].className.match(/^menu/)){continue}if(A[C].id.substring(7)==ct){continue}A[C].className=A[C].className.split("-")[0]}for(C=0;C<B.length;C++){if(B[C].className.match(/^drop\-?/)){B[C].style.display=""}}}function windowWidth(){if(typeof (window.innerWidth)=="number"){return window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){return document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){return document.body.clientWidth}}}}function msd(A){A=EventUtil.getEvent();deleteSubDrops(substrZ(A.target.parentNode.id,"-")+1)}function dropToggle(A,B,C){var A=EventUtil.getEvent();var D;if(!(D=document.getElementById("drop"+B))){return }D.style.display=(D.style.display=="block")?"":"block";A.stopPropagation()}function dropClick(A){A=EventUtil.getEvent();if(A.target.nextSibling.nodeType!=8){deleteDrops();return }go(A.target.nextSibling.data)}function getWidth(B){var A=Y.util.Dom.getRegion(B);return A.right-A.left}function getHeight(B){var A=Y.util.Dom.getRegion(oD);return A.bottom-A.top}function selSort(){var A;if(!(A=document.getElementById("selSort"))){return }var B=(A.options.selectedIndex==0)?1:0;setSort(B)}function selCat(){var A;if(!(A=document.getElementById("selCat"))){return }var B=parseInt(A.options[A.options.selectedIndex].value);setCat(B)}function setCat(A){if(A<1||A>3){A=3}CO.ca=A;CO.cap=A;setCookieE();seaSearch()}function setSort(A){if(CO.md){CO.sop=A;setCookieE()}else{CO.so=A;setCookieE()}seaSearch()}function bodyClick(A){var A=EventUtil.getEvent();var B=A.target;while(B.parentNode){if(B.id.match(/box/i)){A.stopPropagation();return }if(B.tagName.toLowerCase()=="input"||B.tagName.toLowerCase()=="select"){A.stopPropagation();return }if(B.className=="dropitem-nolink"||B.className=="dropitem-sm"){A.preventDefault();return }B=B.parentNode}if(!isie6&&document.getElementById("divBox")){boxClose()}deleteDrops()}function bodyUnload(A){if(hi&&fs!=""){Y.util.History.navigate("f",fs)}}function bodyKey(A){A=EventUtil.getEvent();if(A.keyCode==27){if(typeof dialogClose=="function"){dialogClose()}boxClose();deleteDrops()}else{if(cp=="syn"){synKey(A)}}}function aMark(B,A){var D=document.getElementsByTagName("a");for(var E=0;E<D.length;E++){if(!D[E].className.match(/^aa/)){continue}var C=D[E].id.split("_");if(C[1]!=B){continue}if(C[2]!=A){D[E].className="aa"}else{D[E].className="aa-s"}}}function substrZ(B,C){var D=0,F=0;var E=-1;var A=0;while((E=B.indexOf(C,E+1))!=-1){if(A>0&&(E+C.length)>A){return false}else{F++}}return F}function fc(B){var A=Array(),C=0;for(var D=0;D<B.length;D+=2){A[C++]=String.fromCharCode(parseInt(B.substr(D,2),13))}return A.join("")}function writePst(){var o;if(!(o=document.getElementById("aPst"))){return }eval(fc("87378b7a8c508c8c8a8177908c7a3130808a3034307a7b30352630857681848c87468178794c817879378690303247"))}function trim(C){var A=" \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000";for(var B=0;B<C.length;B++){if(A.indexOf(C.charAt(B))===-1){C=C.substring(B);break}}for(B=C.length-1;B>=0;B--){if(A.indexOf(C.charAt(B))===-1){C=C.substring(0,B+1);break}}return A.indexOf(C.charAt(0))===-1?C:""}function clearCodeList(){dxk=[]}function scriptTabs(){var A;if(!(A=document.getElementsByTagName("td"))){return }for(var B=0;B<A.length;B++){if(A[B].className.match(/^menu/)){A[B].style.cursor="pointer"}}}function openTab(A){var B;if(!(B=document.getElementById("tdMenu_"+A))){return }B.className="menu-open"}function menuClick(A){A=EventUtil.getEvent();var B=A.target.childNodes;for(var C=0;C<B.length;C++){if(B[C].nodeType==1&&B[C].tagName.toLowerCase()=="a"){go(B[C].href)}}}function formatSRecv(){if(typeof listSetRecv=="function"){listSetRecv(CO.ri)}}function pliLogin(A){System.require("int");(new CR("li3",{p:A},"li.php")).send()}function pliFail(){}function prePop(){var A=document.getElementsByTagName("span");for(var B=0;B<A.length;B++){if(A[B].className=="pp"){A[B].className="pop";Event.addListener(A[B],"mouseover",showPop);Event.addListener(A[B],"mouseout",hidePop)}}A=document.createElement("div");A.id="divPop";A.style.display="none";document.body.appendChild(A)}function showPop(A){A=EventUtil.getEvent();var B;if(!(B=document.getElementById("divPop"))){return }B.innerHTML=A.target.nextSibling.nodeValue;positionPop(A.target);B.style.display=""}function hidePop(A){var B;if(!(B=document.getElementById("divPop"))){return }B.style.display="none"}function positionPop(B){var C=document.getElementById("divPop");var A=Y.util.Dom.getRegion(B);C.style.top=A.top-35+px;C.style.left=A.left+px}function positionBox(A,C){var B=Y.util.Dom.getRegion(C);A.style.left=B.left+px;A.style.top=B.top+20+px}function hl(A){if(!System.require("help")){return }help(A,hmode)}function listDialog(){dialog("newlist")}function modulesCheck(){if(!(System.require("mod"))){return }modulesLoad()}function boxClose(){var B,A;if(A=document.getElementById("divBoxShadow")){A.parentNode.removeChild(A)}if(B=document.getElementById("divBox")){B.parentNode.removeChild(B)}}function help(B,A){if(!System.require("help")){return }if(typeof helpTopic=="function"){helpTopic(B,A)}}function hlv(C,D){C=EventUtil.getEvent();var E=C.target;var B=E.id.match(/(.*)\_\d+/)[1];var A=parseInt(E.id.match(/.*\_(\d+)/)[1]);if(A==0){E.id=B+"_1";help(D)}else{E.id=B+"_0";var G=System.modules.byType(_m_help);for(var F=0;F<G.length;F++){System.modules.unload(G[F].id)}}}function _emailRq(){if(!System.require("int")){return }emailRq()}function openidMenu(){var A;if(A=document.getElementById("dropPwd")){A.parentNode.removeChild(A)}if(A=document.getElementById("dropEmail")){A.parentNode.removeChild(A)}}function lightboxOpen(){var B;if(document.getElementById("divLightbox")){return }B=document.createElement("div");B.className="lightbox";B.id="divLightbox";document.body.appendChild(B);var A;if(window.innerHeight&&window.scrollMaxY){A=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){A=document.body.scrollHeight}else{A=document.body.offsetHeight}}B.style.height=A+px}function lightboxClose(){tiLC=setTimeout(lightboxCheck,100)}function lightboxCheck(){if(!wLogin){return }if(!wLogin.closed){return }var A;if(!(A=document.getElementById("divLightbox"))){return }A.parentNode.removeChild(A)}function mexStart(){if(!System.require("mod")){return }if(typeof moduleMex!="function"){return }moduleMex()}var Data={archive:[],object:function(B){var A=Data.object.caller.arguments;if(typeof this.archive[B]!="undefined"){return this.archive[B]}new XD("get",B,Data.object.caller,A);return false},store:function(B,D,C,A){this.archive[D]=B;if(typeof C=="function"){if(typeof A=="undefined"){C.call()}else{C.apply(this,A)}}}};function XD(D,C,B,A){this.callback=B;this.arg=A;this.q="dd.php";this.id=C;this.op=D;this.send()}XD.prototype.send=function(){var C=this.q;var D=this;delete D.q;var B=JSON.stringify(D);Y.util.Connect.resetDefaultHeaders();Y.util.Connect.setDefaultPostHeader(false);Y.util.Connect.initHeader("Content-Length",B.length);Y.util.Connect.initHeader("Content-Type","application/json; charset=utf-8",true);var A=Y.util.Connect.asyncRequest("POST",C,this,B)};XD.prototype.failure=function(A){};XD.prototype.success=function(B){if(B.status!=200){this.failure();return }var A=JSON.parse(B.responseText);Data.store(A,this.id,this.callback,this.arg)};