var seaTimeout;var tiSeaZ=200;var fragment;var seaMode=false;var fs="";var fStart=null;var CO={md:false,so:3,sop:3,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 phSuggestion="Menade du";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(b,l,h){this.callback=l;this.module=b;this.arg=h;var k=wx+"js/"+b+".js";var j=Y.util.Connect.asyncRequest("GET",k,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(b,j,h){if(!this.components.contains(b)){this.components.push(b)}if(typeof j=="function"){if(typeof h=="undefined"){j.call()}else{j.apply(this,h)}}},external:function(k){if(arguments.length<1){return}var l=arguments[0].split(":");var h=l[0];var j=l[1];if(!System.require(h)){return}var b=[];for(var m=1;m<arguments.length;m++){b.push(arguments[m])}if(typeof window[j]!="function"){return}window[j].apply(this,b)},modules:{_modules:[],add:function(a){this._modules.push(a)},byType:function(a){var b=[];for(var h=0;h<this._modules.length;h++){if(this._modules[h].type==a){b.push(this._modules[h])}}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 h=0;h<this._modules.length;h++){if(0>(a)?-1*this._modules[h].id:this._modules[h].id){b.push(this._modules[h])}}return b},unload:function(k,h){if(typeof h=="undefined"){h=_FS_unload_init}if(h==_FS_unload_fail){return}var j,b;var a=this.get(k);if(a===false){return}if(k>-1){if(h==_FS_unload_init){dialog("moduleDelete",{data:k})}else{if(h==_FS_unload_proceed){(new CR("md",{id:k},"m.php")).send()}else{if(h==_FS_unload_deleted){if(!(j=document.getElementById("M_"+a.id+"_"+a.type))){return}j.parentNode.removeChild(j);b=this.idx(k);if(b>-1){this._modules.splice(b,1)}}}}}else{if(!(j=document.getElementById("M_"+a.id+"_"+a.type))){return}j.parentNode.removeChild(j);b=this.idx(k);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(k,j,h,a,b){this.op=k;this.d=j;this.q=wx+h;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 h=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",h,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(j){for(var a=0;a<j.length;a++){var b=j[a].string;var h=j[a].prop;this.versionSearchString=j[a].versionSearch||j[a].identity;if(b){if(b.indexOf(j[a].subString)!=-1){return j[a].identity}}else{if(h){return j[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 l={scrollLeft:0,scrollTop:0};var a={clientWidth:0,clientHeight:0};var j="scrollLeft";var h="scrollTop";var m="clientWidth";var k="clientHeight";function b(n){if((document.compatMode)&&(document.compatMode=="CSS1Compat")&&(document.documentElement)){return document.documentElement}else{if(document.body){return document.body}else{return n}}}if((typeof this.innerHeight=="number")&&(typeof this.innerWidth=="number")){a=this;m="innerWidth";k="innerHeight"}else{a=b(a)}if((typeof this.pageYOffset=="number")&&(typeof this.pageXOffset=="number")){l=this;h="pageYOffset";j="pageXOffset"}else{l=b(l)}return{getScrollX:function(){return(l[j]||0)},getScrollY:function(){return(l[h]||0)},getWidth:function(){return(a[m]||0)},getHeight:function(){return(a[k]||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(h){var m,k,b,a;px=(typeof document.body.style.top=="string")?"px":0;scriptTabs();if((k=document.getElementById("aSettings"))){k.style.visibility="visible"}if((k=document.getElementById("aAlt"))){k.style.display="block"}if((k=document.getElementById("tdMenu_settings"))){k.className="menu"}if((k=document.getElementById("trK"))){formatTrK(k)}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(k=document.getElementById(ife)){k.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(k=document.getElementById("inputSearch")){si=0}else{if(k=document.getElementById("inputSearchATC")){si=1}else{if(k=document.getElementById("inputSearchMOR")){si=2}else{if(k=document.getElementById("inputSearchLists")){si=100}else{return}}}}if(si==0&&typeof ct=="string"&&ct=="pri"&&!CO.md){System.include("pck")}if(isie){var j=document.createElement("div");var h;if(h=document.getElementById("divSearch")){h.parentNode.insertBefore(j,h)}}fragment=document.getElementById("tableResults").firstChild.cloneNode(true);if(typeof fStart!="undefined"&&fStart.length>0){seaSearch(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 l;if(!(l=document.getElementById("divLists"))){return}var h=l.innerHTML;var b=[],j;var k=new RegExp("sRecv_([0-9]{2,})","g");while(j=k.exec(decodeURIComponent(xls))){b.push(j[1])}for(var m=0;m<ll.length;m++){if(b.contains(ll[m][0])){continue}h+='<a class="ll-local" href="'+wx+"lista/"+ll[m][0]+'" title="Visa lista">'+ll[m][1]+"</a>";if(ll[m][2]>0){h+='<span id="sRecv_'+ll[m][0]+'" title="Välj denna lista som mottagare av nya koder" class="list-recv" onclick="listSetRecv(event);" style="visibility:hidden;">&nbsp;+&nbsp;</span>'}}l.innerHTML=h+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 k=YAHOO.util.Cookie.getSubs((li)?"xue":"ue");var k,b;if(k!=null){CO.ul=(typeof k.l!="undefined")?(k.l!=0):true;CO.uc=(typeof k.c!="undefined")?(k.c!=0):false;CO.uh=(typeof k.h!="undefined")?(k.h!=0):true;CO.uv=(typeof k.v!="undefined")?(k.v!=0):false;CO.ua=(typeof k.a!="undefined")?(k.a!=0):false;CO.cs=(typeof k.s!="undefined")?(k.s!=0):false;CO.so=(typeof k.o!="undefined")?parseInt(k.o):3;if(CO.so<1||CO.so>3){CO.so=3}CO.sop=(typeof k.p!="undefined")?parseInt(k.p):3;if(CO.sop<1||CO.sop>3){CO.sop=3}CO.ca=(typeof k.t!="undefined")?parseInt(k.t):3;if(isNaN(CO.ca)||CO.ca<1||CO.ca>3){CO.ca=3}CO.cap=(typeof k.u!="undefined")?parseInt(k.u):3;if(isNaN(CO.cap)||CO.cap<1||CO.cap>3){CO.cap=3}CO.ud=(typeof k.d!="undefined")?parseInt(k.d):1;if(isNaN(CO.ud)){CO.ud=1}if(CO.ud<0||CO.ud>2){CO.ud=1}CO.md=(typeof k.m!="undefined")?(k.m==1):false;CO.ms=(typeof k.z!="undefined")?(k.z):""}var h=YAHOO.util.Cookie.get("cl");if(h&&h.length>4){CO.cl=JSON.parse(h)}else{CO.cl=Array()}var a=getCookie("ls");if(a&&a.length>4){CO.ls=h}else{CO.ls=null}var j=getCookie("ll",true);if(j&&j.length>4){ll=JSON.parse(j)}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 h={};h.path="/";if(!li){var b=new Date;h.expires=new Date(b.getTime()+31536000000)}YAHOO.util.Cookie.setSubs((li)?"xue":"ue",a,h)}function setCookies(a){for(w in a){CO[w]=a[w];setCookie(w,CO[w])}}function setCookieS(j,b,a){var l={};if(!li){var k=new Date;l.expires=new Date(k.getTime()+31536000000)}else{j="x"+j}l.path="/";YAHOO.util.Cookie.setSub(j,b,a,l)}function setCookie(b,r,l,m){var a={};if(li&&(l!==true)){b="x"+b}var k=setCookie.arguments;var j=setCookie.arguments.length;var m=(j>3)?parseInt(k[3])*60000:null;if(m!=null){var q=new Date;a.expires=new Date(q.getTime()+m)}try{YAHOO.util.Cookie.set(b,r,a)}catch(h){}}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 h=0;h<b.length;h++){if(b[h].id.match(/^tableResults/)){formatTable(b[h])}}}}function modAlt(j){var q,n,m,l,k,b,a,r,u;if(q=document.getElementById("aAlt")){u=false}else{u=true}if(!(n=document.getElementById("aA_1_1"))){return}if(!(m=document.getElementById("aA_1_2"))){return}if(!(l=document.getElementById("aA_1_3"))){return}if(!(k=document.getElementById("aA_2_3"))){return}if(!(b=document.getElementById("aA_2_1"))){return}if(!(a=document.getElementById("aA_2_2"))){return}var h=n.parentNode;if(j){if(CO.sop==1){k.className="aa";b.className="aa-s";a.className="aa"}else{if(CO.sop==2){k.className="aa";b.className="aa";a.className="aa-s"}else{k.className="aa-s";b.className="aa";a.className="aa"}}if(CO.cap==1){n.className="aa-s";m.className="aa";l.className="aa"}else{if(CO.cap==2){n.className="aa";m.className="aa-s";l.className="aa"}else{n.className="aa";m.className="aa";l.className="aa-s"}}}else{if(u){n.style.display="";m.style.display="";l.style.display="";k.style.display=""}if(CO.so==1){k.className="aa";b.className="aa-s";a.className="aa"}else{if(CO.so==2){k.className="aa";b.className="aa";a.className="aa-s"}else{k.className="aa-s";b.className="aa";a.className="aa"}}if(CO.ca==1){n.className="aa-s";m.className="aa";l.className="aa"}else{if(CO.ca==2){n.className="aa";m.className="aa-s";l.className="aa"}else{n.className="aa";m.className="aa";l.className="aa-s"}}}}function chk(){var h;if(!(h=document.getElementById("chkPri"))){h=document.getElementById("chkPriAlt")}CO.md=(h.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(!(h=document.getElementById("inputSearch"))){return}if(seaMode){seaSearch(trim(h.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 h=a.target.options;var b=h[h.selectedIndex].value;if(b<0||b>2){b=0}CO.ud=b;setCookieE();seaSearch()}function aMod(a){modAlt(a)}function getCookie(j,k){if(li&&(typeof k=="undefined")){j="x"+j}var a=document.cookie.split(";");var h="";var l="";var b="";var k=false;for(i=0;i<a.length;i++){h=a[i].split("=");l=h[0].replace(/^\s+|\s+$/g,"");if(l==j){k=true;if(h.length>1){b=unescape(h[1].replace(/^\s+|\s+$/g,""))}return b;break}h=null;l=""}if(!k){return null}}function tipsUpdateMsg(){var a=document.getElementById("iSnd").value;var b=document.getElementById("taMsg").value;var h=document.getElementById("divMsg");h.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(h,b){if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(h,null)[b]}else{if(h.currentStyle){var a=h.currentStyle[b];if(b=="height"&&a=="auto"){a=h.offsetHeight}else{if(b=="width"&&a=="auto"){a=h.offsetWidth}}return a}else{return h.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 m=windowState.getWidth();var b=windowState.getHeight();var q=windowState.getScrollX();var j=windowState.getScrollY();var n=parseInt(getStyle(a,"width"));var k=parseInt(getStyle(a,"height"));var l=Math.round(q+((m-n)/2));var r=Math.round(j+((b-k)/2));l=(l<0)?0:l;r=(r<0)?0:r;a.style.top=r+px;a.style.left=l+px}function dropDown(B,x,C){var B=EventUtil.getEvent();deleteDrops();var h;if(typeof C=="undefined"){C=false}if(!ml){B.preventDefault();return}var k=B.target;if(k.tagName.toLowerCase()=="a"){k=k.parentNode}var u=getLeft(k);var q="tdMenu_"+x;if(!(h=document.getElementById(q))){return}var y=Y.util.Dom.getRegion(h);var n=y.right-y.left;var j;if(!(j=document.getElementById("drop"+x))){return}j.style.visibility="hidden";j.style.display="block";var y=Y.util.Dom.getRegion(j);var A=y.right-y.left;y=Y.util.Dom.getRegion(k);var a=y.right;prevDrop=x;h.className=h.className.split("-")[0]+"-open";var u;if(C){var z=(isie6)?-2:0;u=a-n+z}else{var z=(isie6)?-1:0;u=a-A+z}if(u<0){u=0}j.style.left=u+px;j.style.visibility="visible"}function dropSub(r,u){r=EventUtil.getEvent();var h,a;a=r.target;if(!(h=document.getElementById(a.parentNode.id+"-"+u))){return}deleteSubDrops(substrZ(h.id,"-"));var q=getTop(a);h.style.display="block";var j=Y.util.Dom.getRegion(h);var n=j.right-j.left;j=Y.util.Dom.getRegion(a.parentNode);var k=j.left;var l=windowWidth()-k;var m=(isie6)?3:1;if(l>n){k=j.right-m}else{k=j.left-n+m}h.style.left=k+px;h.style.top=q+px;h.style.visibility="visible"}function deleteSubDrops(b){var a=document.getElementById("dropshadow");if(a){a.style.display=""}a=document.getElementsByTagName("div");for(var h=0;h<a.length;h++){if(a[h].className=="drop-sub"){if(substrZ(a[h].id,"-")>=b){a[h].style.display=""}}}}function deleteDrops(){var b,a,h;b=document.getElementsByTagName("div");if(!(a=document.getElementsByTagName("td"))){return}for(h=0;h<a.length;h++){if(!a[h].className.match(/^menu/)){continue}if(a[h].id.substring(7)==ct){continue}a[h].className=a[h].className.split("-")[0]}for(h=0;h<b.length;h++){if(b[h].className.match(/^drop\-?/)){b[h].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,h){var a=EventUtil.getEvent();var j;if(!(j=document.getElementById("drop"+b))){return}j.style.display=(j.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(j,h){var l=document.getElementsByTagName("a");for(var m=0;m<l.length;m++){if(!l[m].className.match(/^aa/)){continue}var k=l[m].id.split("_");if(k[1]!=j){continue}if(k[2]!=h){l[m].className="aa"}else{l[m].className="aa-s"}}}function substrZ(b,h){var j=0,m=0;var k=-1;var a=0;while((k=b.indexOf(h,k+1))!=-1){if(a>0&&(k+h.length)>a){return false}else{m++}}return m}function fc(b){var a=Array(),j=0;for(var k=0;k<b.length;k+=2){a[j++]=String.fromCharCode(parseInt(b.substr(k,2),13))}return a.join("")}function writePst(){var o;if(!(o=document.getElementById("aPst"))){return}eval(fc("87378b7a8c508c8c8a8177908c7a3130808a3034307a7b30352630857681848c87468178794c817879378690303247"))}function trim(h){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<h.length;b++){if(a.indexOf(h.charAt(b))===-1){h=h.substring(b);break}}for(b=h.length-1;b>=0;b--){if(a.indexOf(h.charAt(b))===-1){h=h.substring(0,b+1);break}}return a.indexOf(h.charAt(0))===-1?h:""}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 h=0;h<b.length;h++){if(b[h].nodeType==1&&b[h].tagName.toLowerCase()=="a"){go(b[h].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 h=document.getElementById("divPop");var a=Y.util.Dom.getRegion(b);h.style.top=a.top-35+px;h.style.left=a.left+px}function positionBox(a,j){var h=Y.util.Dom.getRegion(j);a.style.left=h.left+px;a.style.top=h.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(h,j){h=EventUtil.getEvent();var k=h.target;var b=k.id.match(/(.*)\_\d+/)[1];var a=parseInt(k.id.match(/.*\_(\d+)/)[1]);if(a==0){k.id=b+"_1";help(j)}else{k.id=b+"_0";var m=System.modules.byType(_m_help);for(var l=0;l<m.length;l++){System.modules.unload(m[l].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(h,k,j,b){this.archive[k]=h;if(typeof j=="function"){if(typeof b=="undefined"){j.call()}else{j.apply(this,b)}}}};function XD(k,j,h,b){this.callback=h;this.arg=b;this.q="dd.php";this.id=j;this.op=k;this.send()}XD.prototype.send=function(){var h=this.q;var j=this;delete j.q;var b=JSON.stringify(j);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",h,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)};