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