var tiAlt=null;var tiAcc=null;function nl2br(A){A=A.replace(/[\n\r]/g,"\n");A=A.replace(/\n{2,}/g,"\n");A=A.replace(/\n/g,"<br />");return A}function br2nl(A){A=A.replace(/\<br\s?\/?\>/g,"\n");A=A.replace(/\n{2,}/g,"\n");if(iswin){A.replace(/\n/g,"\r\n")}return A}function Sea(C,B,A){this.op=(typeof C==null)?0:C;this.f=(typeof B==null)?"":B;fStart=B;this.s=(CO.md)?((CO.sop>0&&CO.sop<3)?CO.sop:2):((CO.so>0&&CO.so<4)?CO.so:3);this.i=A;this.u=(CO.md)?CO.cap:CO.ca;this.d=(CO.ud!=2);this.a=(CO.uh!==false)}Sea.prototype.failure=function(A){};Sea.prototype.success=function(C){if(C.status!=200){this.failure();return }var B=C.responseText;clearTable();if(B==""){showInstructions();return }C=JSON.parse(B);srZ++;var A=parseInt(C.shift());if(srZ<1&&A<=lai){return }lai=A;if(C.length<1){showNoMatches();return }seaMode=true;if(this.op==100){addMatchesList(C);return }fs=this.f;addMatchesI(C,this.f)};Sea.prototype.mkJson=function(){return JSON.stringify(this)};Sea.prototype.send=function(){var C=wx;switch(this.op){case 0:C+=((CO.md===false)?"sr.php":"sp.php");break;case 1:C+="sa.php";break;case 2:C+="sm.php";break;case 100:C+="sl.php";break;default:return }var B=this.mkJson();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)};function addMatchesI(B,E){var F,C=[];var D=0;var H=document.getElementById("divR");var A='<table id="tableResults"><tbody>';for(var G=0;G<B.length;G++){C[G]=ieRow(B[G],E)}A+=C.join("");A+="</tbody></table>";H.innerHTML=A}function hrf(C,B){var A=wx;if(C==3){A+="atc/"+B}else{if(C==4){A+="diagnos/p/"+unformat(B)}else{if(C==1){A+="kva/"+B}else{A+="diagnos/"+unformat(B)}}}return A}function ieRow(K,B){var H,J,F;var I,G,E,C;var D="<tr";if(K[3]>1&&(CO.ud==0)){D+=' style="display:none;"';G='<td class="b-'+K[3]+'"></td>'}else{if(K[3]==1&&(CO.ud==0)){G='<td class="b-4"><a href="#" class="a-d" title="'+phSuggestDaggers+'" onclick="dClick(event);return false;"></a>'}else{G='<td class="b-'+K[3]+'"></td>'}}E='<td class="code">';H=K[0];if(K[2]==5){E+="<span>&nbsp;&nbsp;&nbsp;</span>";H+=cDagger}J=(K[2]==1)?"kva":"ksh";F=wx;if(K[2]==3){F+="atc/"+K[0]}else{if(K[2]==4){F+="diagnos/p/"+unformat(K[0])}else{if(K[2]==1){F+="kva/"+K[0]}else{F+="diagnos/"+unformat(K[0])}}}var A='onclick="cd('+K[2]+",'"+K[0]+"','"+B+"','ric');\"";E+='<a class="'+J+'" title="'+phGoToCat+'" '+A+">"+H+"</a></td>";C='<td class="desc"><a class="'+J+'" title="'+phGoToCat+'" '+A+">"+decodeURI(K[1])+"</a>";if(typeof K[5]=="string"&&K[5]!=""){C+='<span class="ese"><br />'+K[5]+"</span>"}if(typeof K[4]=="string"&&CO.uh){C+='<span class="acc"><br />'+K[4]+"</span>"}C+="</td>";D+=">";I="";if(CO.ul){I+='<td class="dxk"><a href="#" class="exp" title="'+phAddToBasket+'" onclick="kiClick(event,'+K[2]+",'"+K[0]+"','"+B+"');return false;\" /></td>"}if(CO.uc){I+='<td class="dxk"><a href="#" class="comm" title="'+phComment+'" onclick="commClick(event,'+K[2]+",'"+K[0]+"');return false;\" /></td>"}D+=I;D+=G+E+C;D+="</tr>";if(K[3]==3){D+='<tr><td class="b-s"></td><td class="b-s"></td><td class="b-s"></td></tr>'}return D}function Lst(A,D,C,B){this.d=D;this.c=C;this.op=101;this.i=B;this.l=A}Lst.prototype.success=function(B){if(B.status!=200){this.failure();return }var A=B.responseText;B=JSON.parse(A);blinkRecv(CO.ri,(B)?"accepted":"rejected")};Lst.prototype.failure=function(A){};Lst.prototype.send=function(){var C=wx+"ul.php";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)};function seaSearch(B,C){if(typeof B=="undefined"){if(lastSearch!=""){B=lastSearch}else{return }}lastSearch=B;if(!CO.cs){var A;if(o=document.getElementById("inputSearch")){A=""}else{if(o=document.getElementById("inputSearchATC")){A="atc/"}else{if(o=document.getElementById("inputSearchMOR")){A="morfologi/"}else{if(o=document.getElementById("inputSearchLists")){A="lista/hitta"}else{return }}}}slowSearch(A,B);return }if(B.length<1){clearTable();showInstructions();return }var D=new Sea(si,B,lri++);D.send()}function formatTable(A){if(!(seaMode||(typeof clv=="number"&&clv))){return }if(cp=="list_edit"){return }var E,F;if(typeof A=="undefined"){if(!(A=document.getElementById("tableResults"))){A=document.getElementsByTagName("table");for(var E=0;E<A.length;E++){if(A[E].id.match(/^tableResults/)){formatTable(A[E])}}return }}var G=A.firstChild.childNodes;var C,B;var I;var H=0;if(CO.ul){H++}if(CO.uc){H++}for(E=0;E<G.length;E++){if(!G[E].firstChild){continue}F=G[E].childNodes.length;I=G[E].childNodes[F-2].className;if(I=="b-s"||I=="codeH"){while(G[E].childNodes.length>3){G[E].removeChild(G[E].firstChild)}for(var D=0;D<H;D++){C=document.createElement("td");C.className="dxk";G[E].insertBefore(C,G[E].firstChild)}}else{while(G[E].childNodes.length>3){G[E].removeChild(G[E].firstChild)}if(CO.uc){C=mkKC();G[E].insertBefore(C,G[E].firstChild)}if(CO.ul){C=mkKI();G[E].insertBefore(C,G[E].firstChild)}}}A=document.getElementsByTagName("span");for(E=0;E<A.length;E++){if(A[E].className!="acc"){continue}A[E].style.display=(CO.uh)?"":"none"}}function seaAlt(A){var B;if(!(B=document.getElementById("aAlt"))){return }oP=B.parentNode;oP.removeChild(B);for(var C=oP.childNodes.length-1;C>-1;C--){if(oP.childNodes[C].style){oP.childNodes[C].style.display=""}}modAlt(CO.md)}function mkKI(){var B;var A=document.createElement("td");A.className="dxk";B=document.createElement("a");B.className="exp";if(isie6){B.href="#"}Event.addListener(B,"click",kiClick);A.appendChild(B);return(A)}function mkKC(){var B;var A=document.createElement("td");A.className="dxk";B=document.createElement("a");B.className="comm";if(isie6){B.href="#"}Event.addListener(B,"click",commClick);A.appendChild(B);return(A)}function dClick(B){B=EventUtil.getEvent();var G=B.target;G.className="a-u";var F=G.parentNode.parentNode;G.parentNode.className="b-1";G.parentNode.removeChild(G);var C,E,A;var H=0;var D=true;while(D){F=F.nextSibling;if(F.childNodes[F.childNodes.length-3].className=="b-s"){break}A=F.childNodes[F.childNodes.length-2].childNodes[1].innerHTML;if(A.substring(A.length-1)==cDagger){F.style.display=""}else{D=false}}}function kiClick(M,I,J,B){M=EventUtil.getEvent();var D=M.target;var L=D.parentNode.parentNode;var C,H;var N=parseInt(L.childNodes[1].className.split("-")[1]);if(isNaN(N)){N=0}D=L;if(typeof I=="number"){cd(I,J,B,"kic",true)}var G=(N>1&&N<4);if(G){while(!D.childNodes[1].className.match(/1$/)){D=D.previousSibling}C=D.childNodes[2].firstChild.innerHTML;H=D.childNodes[3].firstChild.innerHTML;if(CO.ri==-1){addToBasket(C,H)}else{var A=divA.pos(D.childNodes[D.childNodes.length-2].firstChild.className);if(A==-1){return false}addToList(A,unformat(C))}}var F=L.childNodes[L.childNodes.length-2].childNodes[(G)?1:0];C=(F.nodeType==3)?F.nodeValue:F.innerHTML;var E=L.childNodes[L.childNodes.length-1].firstChild;H=(E.nodeType==3)?E.nodeValue:E.innerHTML;if(CO.ri==-1){addToBasket(C,H)}else{D=D.childNodes[D.childNodes.length-2];var K=(D.firstChild.tagName)?D.firstChild.className:D.className;var A=divA.pos(K);if(A==-1){return false}addToList(A,unformat(C))}return false}function kdClick(B){B=EventUtil.getEvent();var C=B.target.parentNode.parentNode;var D=unformat(C.childNodes[2].firstChild.innerHTML);var A=C.parentNode.parentNode.id.split("_");listDeleteItem(parseInt(A[1]),parseInt(A[2]),D)}function kiClickList(B){B=EventUtil.getEvent();var E=B.target;var D=E.parentNode.parentNode.id.split("_");var F=parseInt(D[1]);var A=parseInt(D[2]);E=E.parentNode.parentNode;var C=E.childNodes[E.childNodes.length-2].firstChild.innerHTML;if(li){adoptList(F)}else{addListToClient(F,C,A)}}function addToBasket(B,F){for(var G=0;G<CO.cl.length;G++){if(CO.cl[G][0]==B){return }}CO.cl.push(Array(B,F));setCookie("cl",JSON.stringify(CO.cl),false,10);var E;if(!(E=document.getElementById("tdMenu_codes"))){return }E.innerHTML=phAList+" ("+CO.cl.length+")";E.style.visibility="";if(!(E=document.getElementById("tbodyCodes"))){return }var A=document.createElement("tr");var D=document.createElement("td");var C=document.createElement("td");D.innerHTML=B;C.innerHTML=F;A.appendChild(D);A.appendChild(C);E.appendChild(A)}function addToList(C,A){var B;if(!(B=document.getElementById("sRecv_"+CO.ri))){return }(new Lst(CO.ri,C,A,lri++)).send()}function blinkRecv(C,B){var A;if(!(A=document.getElementById("sRecv_"+C))){return }A.className="list-recv_"+B;setTimeout(function(){stopBlinkRecv(C)},200)}function stopBlinkRecv(B){var A;if(!(A=document.getElementById("sRecv_"+B))){return }A.className="list-recv_selected"}function buildList(){if(!kmode){return }var D,A,C,B;if(!(D=document.getElementById("tdMenu_codes"))){return }D.innerHTML=phAList+" ("+CO.cl.length+")";D.style.visibility="";if(!(D=document.getElementById("tbodyCodes"))){return }for(var E=0;E<CO.cl.length;E++){C=document.createElement("td");B=document.createElement("td");A=document.createElement("tr");C.innerHTML=CO.cl[E][0];B.innerHTML=CO.cl[E][1];A.appendChild(C);A.appendChild(B);D.appendChild(A)}}function clearList(){CO.cl=Array();setCookie("cl","");deleteDrops();var B;if(!(B=document.getElementById("tbodyCodes"))){return }var A=(isie)?0:1;for(var C=B.childNodes.length-1;C>A;C--){B.removeChild(B.lastChild)}if(!(B=document.getElementById("tdMenu_codes"))){return }B.innerHTML=phAList+" ("+CO.cl.length+")";B.style.visibility="hidden"}function clearTable(){var A=document.getElementById("tableResults");while(A.childNodes.length>0){A.removeChild(A.firstChild)}A.appendChild(document.createElement("tbody"))}function showNoMatches(){var A=document.createElement("tr");var B=document.createElement("td");B.id="tdNoMatches";B.innerHTML=phNoMatches;A.appendChild(B);var C=document.getElementById("tableResults").firstChild;C.appendChild(A)}function showInstructions(){var A=document.getElementById("tableResults");A.replaceChild(fragment,A.firstChild)}function seaKeydown(A){deleteDrops()}function seaClick(A){deleteDrops()}function slowSearch(A,C){if(A!=""){go(wx+A+"?f="+C);return }var B=wx+A+"?f="+C;if(CO.md){B+="&p=1";B+="&s="+CO.sop;B+="&c="+CO.cap}else{B+="&s="+CO.so;B+="&c="+CO.ca}go(B)}function seaKeyup(C){C=EventUtil.getEvent();clearTimeout(seaTimeout);clearTimeout(tiAcc);var D,A;boxClose();if(D=document.getElementById("inputSearch")){A=""}else{if(D=document.getElementById("inputSearchATC")){A="atc/"}else{if(D=document.getElementById("inputSearchMOR")){A="morfologi/"}else{if(D=document.getElementById("inputSearchLists")){A="lista/hitta"}else{return }}}}var B=trim(D.value);if(B.length>99){B=B.substr(0,99)}if(!CO.cs){if(C.keyCode==13){slowSearch(A,B)}return }if(B.length<3){if(document.getElementById("tableResults").firstChild.childNodes){clearTable();showInstructions()}seaMode=false;return }seaTimeout=setTimeout(function(){seaSearch(B)},tiSeaZ)}function seaFocus(){deleteDrops();if(!cof){cof=true;return }var A;if(!(A=document.getElementById("inputSearch"))){return }if(fStart.length<1){A.value=""}}function seaSetFocus(B){var C;if(C=document.getElementById("inputSearch")){}else{if(C=document.getElementById("inputSearchATC")){}else{if(C=document.getElementById("inputSearchMOR")){}else{if(C=document.getElementById("inputSearchLists")){}else{return }}}}if(typeof B=="undefined"||B==null){B=""}cof=false;C.value=B;C.focus();if(document.selection){var A=document.selection.createRange();A.moveStart("character",C.value.length);A.select()}}function aa(B){B=EventUtil.getEvent();var A=B.target.id.split("_");aMark(A[1],A[2]);if(A[1]==1){setCat(A[2])}else{if(A[1]==2){setSort(A[2])}}seaSetFocus()}function addMatchesList(M){var A=document.getElementById("tableResults").firstChild;var L,H,C,J,G,D,B,F;var E,K;for(var I=0;I<M.length;I++){E=wx+"lista/"+M[I][0];K="Visa listan "+M[I][1];L=document.createElement("tr");L.id="trResult_"+M[I][0]+"_"+M[I][3];H=document.createElement("td");H.className="code";C=document.createElement("td");C.className="dxk";G=document.createElement("td");G.className="desc";B=document.createElement("a");B.innerHTML=M[I][2];B.className="list";B.href=E;B.title=K;G.appendChild(B);F=document.createElement("a");F.className="exp";F.title=(li)?phListToAccount:phListToClient;Event.addListener(F,"click",kiClickList);D=document.createElement("a");D.href=wx+"lista/"+M[I][0];D.title=K;D.className="list";D.innerHTML=M[I][1].replace(/\s/g,"&nbsp;");H.appendChild(D);C.appendChild(F);L.appendChild(C);L.appendChild(H);L.appendChild(G);A.appendChild(L)}}function listSetRecv(A){var C=(typeof A=="number");var G;if(C&&A>-1){if(!(o=document.getElementById("sRecv_"+A))){G=-1}else{G=A}}else{if(C){G=A}else{A=EventUtil.getEvent();o=A.target;G=parseInt(o.id.split("_")[1])}}var D=document.getElementsByTagName("span");var B;var E=false;for(var F=0;F<D.length;F++){if(D[F].id.match(/^sRecv/)){B=parseInt(D[F].id.split("_")[1]);if(B!=G){D[F].className="list-recv"}else{if(B==G){if(C){D[F].className="list-recv_selected";CO.ri=B;E=true}else{if(CO.ri==B){CO.ri=-1;D[F].className="list-recv";break}else{CO.ri=B;E=true;D[F].className="list-recv_selected"}}}else{D[F].className="list-recv"}}}D[F].style.visibility="visible"}if(!E){CO.ri=-1}setRecv(CO.ri)}function setRecv(A){setCookie("ri",A)}function updateListDisplay(){var A;A=document.getElementsByTagName("table");for(var B=0;B<A.length;B++){if(A[B].id.match(/^tableResults/)){formatTable(A[B])}}}function listDelete(B){if(!System.require("int")){return }var A=new Dialog();A.display("Radera lista","Vill du verkligen radera listan?",[],[["Nej","dialogClose","no"],["Ja","_listDelete","delete"]],"_listDelete",B)}function listProperties(B){if(!System.require("int")){return }var A=new Dialog();A.display("Egenskaper","",[["select","R&auml;ttigheter","prop",["Privat lista","Alla kan se, jag redigerar","Alla kan se, alla kan redigera"],lprop]],[["Avbryt","dialogClose","cancel"],["Spara","_listProperties","save"]],"_listProperties",B)}function listRename(B){if(!System.require("int")){return }var A=new Dialog();A.display("Nytt namn","",[["text","Namn","title"]],[["Avbryt","dialogClose","cancel"],["&Auml;ndra","_listRename","change"]],"_listRename",B)}function listDeleteItem(C,A,B){(new CR("di",{id:C,div:A,code:B},"di.php")).send()}function listItemDeleted(F,A,C){var D,B;if(!(D=document.getElementById("tableResults_"+F+"_"+A))){return }D=D.firstChild;if(!D.childNodes){return }for(var E=0;E<D.childNodes.length;E++){if(unformat(D.childNodes[E].childNodes[2].lastChild.innerHTML)==C){D.removeChild(D.childNodes[E])}}if(D.childNodes.length<1){D.parentNode.parentNode.parentNode.removeChild(D.parentNode.parentNode)}}function listDescription(D,A){if(!System.require("int")){return }var B=document.getElementById("sDesc");if(!B){return }var A=B.innerHTML;if(A=="[Ingen beskrivning]"){A=""}var C=new Dialog();C.display("Beskrivning","",[["textarea",A,"desc"]],[["Avbryt","dialogClose","cancel"],["Spara","_listDescription","change"]],"_listDescription",D)}function adoptList(B){var A=new CR("la",{id:B},"la.php");A.send()}function listAdopted(A){var C,B;if((C=document.getElementById("sDropList"))&&(B=document.getElementById("sAdoptList"))){C.style.display="";B.style.display="none"}xls=A;mkReceivers()}function dropList(B){if(!System.require("int")){return }var A=new CR("ld",{id:B},"la.php");A.send()}function setupListView(){var C,A;if(!(C=document.getElementById("sAddToClient"))){return }if(!(A=document.getElementById("sRemoveFromClient"))){return }if(typeof lli!="number"){return }var B=listOnClient(lli);C.style.display=(B)?"none":"";A.style.display=(B)?"":"none"}function addListToClient(D,B,A){if(listOnClient(D)){return }if(typeof B!="string"){var C=document.getElementsByTagName("h1");if(!C||C.length!=1){return }B=C[0].innerHTML}ll.push([D,B,A]);setCookie("ll",JSON.stringify(ll),true,525600);setupListView();mkReceivers()}function removeListFromClient(D){if(!listOnClient(D)){return }var B=[];for(var C=0;C<ll.length;C++){if(ll[C][0]!=D){B.push(ll[C])}}ll=B;setupListView();setCookie("ll",JSON.stringify(ll),true,525600);mkReceivers()}function listOnClient(B){for(var A=0;A<ll.length;A++){if(ll[A][0]==B){return true}}return false}function kommBlur(B){B=EventUtil.getEvent();var C=B.target;if(C.className!="comm-edit"){return }var F=document.createElement("span");F.className="comm-edit";Event.addListener(F,"click",kommClick);var A=C.value.replace(/\n{2,}/g,"\n");A=trim(A);var D=nl2br(A);F.innerHTML=(A.length<1)?"[Ingen kommentar]":D;var G=unformat(C.parentNode.parentNode.childNodes[2].firstChild.innerHTML);var E=parseInt(C.parentNode.parentNode.parentNode.parentNode.id.split("_")[2]);C.parentNode.replaceChild(F,C);(new CR("uc",{n:lid,d:E,c:G,s:A},"ul.php")).send()}function kommClick(A){A=EventUtil.getEvent();var D=A.target;if(D.className!="comm-edit"){return }var B=document.createElement("textarea");B.className="comm-edit";var C=br2nl(D.innerHTML);B.value=C;if(B.value=="[Ingen kommentar]"){B.value=""}Event.addListener(B,"blur",kommBlur);D.parentNode.replaceChild(B,D);B.focus()}function cd(D,E,A,C,B){if(typeof B!="boolean"){B=false}(new CR(C,{f:A,d:D,c:unformat(E)},"cd.php")).send();if(!B){hih=hrf(D,E);go(hih)}}function cl(C,D,A,B){}function commClick(B,G,C){if(!(System.require("int"))){return }if(!(System.require("comm"))){return }B=EventUtil.getEvent();var E=B.target.parentNode.parentNode;var F=E.childNodes[E.childNodes.length-1].firstChild;var D=(F.nodeType==3)?F.nodeValue:F.innerHTML;var A=E.childNodes[E.childNodes.length-2].firstChild;var C=(A.nodeType==3)?A.nodeValue:A.innerHTML;commComment(G,C,D)}function cfr(B){while(B.tagName.toLowerCase()!="tr"){B=B.parentNode}var A=B.childNodes[B.childNodes.length-2].firstChild;return unformat((A.nodeType==3)?A.nodeValue:A.innerHTML)}function pmC(J){J=EventUtil.getEvent();var C;if(C=document.getElementById("divBox")){boxClose();return }var E=J.target;var B=cfr(E);var F=trim(E.nextSibling.nodeValue);var I=F.split("|");var H;var D=[];for(var G=0;G<I.length;G++){H=I[G].split("=");D.push('<div class="box-row" onclick="zg(\''+B+"','http://praktiskmedicin.com/sjukdom.asp?sjukdid="+H[0]+"');\">"+H[1]+"</div>")}var A=D.join("");C=document.createElement("div");C.id="divBox";C.className="box";C.innerHTML='<div class="box-title">Avsnitt i Praktisk Medicin</td><td style="text-align:right;"></div>'+A+'<div style="text-align:right;padding:2px;"><a onclick="boxClose();">st&auml;ng</a></div>';box(J,C,E)}function ssC(J){J=EventUtil.getEvent();var C;if(C=document.getElementById("divBox")){boxClose();return }var E=J.target;var B=cfr(E);var F=trim(E.nextSibling.nodeValue);var I=F.split("|");var H;var D=[];for(var G=0;G<I.length;G++){H=I[G].split("=");D.push('<div class="box-row" onclick="zg(\''+B+"','"+decodeURIComponent(H[0])+"');\">"+H[1]+"</div>")}var A=D.join("");C=document.createElement("div");C.id="divBox";C.className="box";C.innerHTML='<div class="box-title">F&ouml;rs&auml;kringsmedicinska beslutsst&ouml;d</td><td style="text-align:right;"></div>'+A+'<div style="text-align:right;padding:2px;"><a onclick="boxClose();">st&auml;ng</a></div>';box(J,C,E)}function imC(J){J=EventUtil.getEvent();var C;if(C=document.getElementById("divBox")){boxClose();return }var E=J.target;var B=cfr(E);var F=trim(E.nextSibling.nodeValue);var I=F.split("|");var H;var D=[];for(var G=0;G<I.length;G++){H=I[G].split("=");D.push('<div class="box-row" onclick="zg(\''+B+"','http://www.internetmedicin.se/dyn_main.asp?page="+H[0]+"');\">"+H[1]+"</div>")}var A=D.join("");C=document.createElement("div");C.id="divBox";C.className="box";C.innerHTML='<div class="box-title">Texter hos internetmedicin.se</td><td style="text-align:right;"></div>'+A+'<div style="text-align:right;padding:2px;"><a onclick="boxClose();">st&auml;ng</a></div>';box(J,C,E)}function box(B,D,A){document.body.appendChild(D);positionBox(D,A);oE=document.createElement("div");oE.id="divBoxShadow";oE.className="box-shadow";var C=Y.util.Dom.getRegion(D);oE.style.width=C.right-C.left+px;oE.style.height=C.bottom-C.top+px;oE.style.left=C.left+4+px;oE.style.top=C.top+4+px;document.body.appendChild(oE);B.stopPropagation()}function zz(A){A=EventUtil.getEvent();var B=A.target;var C=cfr(B);cd(-1,C,B.href,"lci",true)}function zg(B,A){cd(-1,B,A,"lci",true);go(A)};