var tbase="http://talent.mmo-champion.com/";var textra="";var base64="f-qR3eOHQ9dSIMwk8pabYt6yrJUFNXLTh4n2KWEoz0uC5j7xmAgDlZiPcs_BGV1v";var vdefault=10835;var ptrversion=10835;var liveversion=10505;var versions=["10835  0.3.0","10805  0.3.0","10772  0.3.0","10747  0.3.0","10712  0.3.0","10676  0.3.0","10623  0.3.0","10596  0.3.0","10571  0.3.0","10554  0.3.0","10522  0.3.0","10505  3.2.2","10482  3.2.2","10468  0.2.2","10433  0.2.2","10392  0.2.2","10371  0.2.2","10357  0.2.2","10314  3.2.0","10257  0.2.2","10192  3.2.0","10179  0.2.0","10170  0.2.0","10147  0.2.0","10128  0.2.0","10116  0.2.0","10083  0.2.0","10072  0.2.0","10048  0.2.0","10026  0.2.0"," 9947  3.1.3"," 9901  3.1.2"," 9889  0.1.2"," 9868  0.1.2"," 9855  0.1.2"," 9835  3.1.1"," 9806  3.1.1"," 9767  3.1.0"," 9757  0.1.0"," 9742  0.1.0"," 9733  0.1.0"," 9722  0.1.0"," 9704  0.1.0"," 9684  0.1.0"," 9658  0.1.0"," 9637  0.1.0"," 9626  0.1.0"," 9614  0.1.0"," 9551  3.0.9"];var MAX_TALENT_POINTS=71;var RANGE_BITS=24;var RANGE_HIGH=((1<<RANGE_BITS)-1);var RANGE_HIGH_MASK=(63<<(RANGE_BITS-6));var RANGE_LOW_MASK=((1<<(RANGE_BITS-6))-1);var ZY=-1;var ccur=-1;var gcur=-1;var gmm=0;var ZU=[];var ZR=[];var ZL=[];var ZJ=[];var ZM=[];var ZN=[];var ZO=[];var ZI=[];var ZP=[];var ZQ=[];var ZT=[];var ZK=[];var YC=vdefault;var lastversion=0;var ZS1=[];var ZS2=[];var ZS3=[];var ZS4=[];var ZS5=[];var ZS6=[];var ZV=[];var ZW=[];var Zu=[];var Zv=[];var Zw=[];var Zs=[];var Zt=[];var Zx=[];var Zy=0;var sg0i=[];var sg0l=[];var sg0sx=[];var sg0sy=[];var sg0tn=[];var sg0ts=[];var sg0num=0;var sg1i=[];var sg1l=[];var sg1sx=[];var sg1sy=[];var sg1tn=[];var sg1ts=[];var sg1num=0;var g0=[];var g1=[];var Kz="";var ZA="";var ZB="";var ZC=-2;var Zz=[];var Zzcaps=[];var Zzcolor=[];var Zzcolorf=[];var cio=[];var ZD=0;var ZE=0;var ZF=-1;var gZF=-1;var gZFmm=-1;var ZX=0;var dataready=false;var Zi=false;var ZG=0;var ZH=0;var Zm=0;var ep=0;var makebold=false;var browser=navigator.appName;var b_version=navigator.appVersion;var version=parseFloat(b_version);var talentpaneZD=0;var appwidth=980;var deferparse=false;var olddecode=false;var needtrans=false;if(b_version.indexOf("MSIE 6.0")!=-1){needtrans=true}if(b_version.indexOf("MSIE 5.5")!=-1){needtrans=true}if(b_version.indexOf("MSIE 5.0")!=-1){needtrans=true}var wowheadcls="LscfbjhoI0";var wowheaYp="0zMcmVokRsaqbdrfwihuGINALpTjnyxtgevElBCDFHJKOPQSUWXYZ123456789";function utp(){if(ZY>=0||gcur>=0){var C=document.getElementById("tooltip");var B=C.offsetWidth;var A=document.body.clientWidth;var E=document.body.scrollLeft;var D=talentpaneZD;if(ZE+C.offsetHeight>document.body.clientHeight-20+document.body.scrollTop){C.style.top=document.body.clientHeight-document.getElementById("tooltip").offsetHeight-40+document.body.scrollTop}else{C.style.top=ZE-20}if(A>768){A=768+D}if(ZD+B>A-(70-30)+E){C.style.left=ZD-B-40}else{C.style.left=ZD+50}C.style.visibility="visible"}}var ow1=1;function ttp(){var A;if(document.body.clientWidth!=ow1){ow1=document.body.clientWidth;var B=(ow1-appwidth)/2;if(B<0){B=0}if(document.getElementById("classselect")){document.getElementById("classselect").style.left=B}else{ow1=1}if(document.getElementById("papertalent")){document.getElementById("papertalent").style.left=talentpaneZD=B}else{ow1=1}if(document.getElementById("ZUcore")){document.getElementById("ZUcore").style.left=B}else{ow1=1}}}function Zc(A){var C=A;if(!C){C=window.event}if(C.pageX||C.pageY){ZD=C.pageX;ZE=C.pageY}else{if(C.clientX||C.clientY){ZD=C.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;ZE=C.clientY+document.body.scrollTop+document.documentElement.scrollTop}}if(ZY>=0||gcur>=0){utp()}if(ZF>-1){var B=document.getElementById("ti"+ZF);B.style.visibility="hidden";B=document.getElementById("tooltip");B.style.visibility="hidden";document.getElementById("spellnext").style.visibility="hidden";document.getElementById("ranknext").style.visibility="hidden";ZY=-1;ZF=-1}if(gZF>-1){var B=document.getElementById("g"+gZFmm+"i"+gZF);if(B){B.style.visibility="hidden"}B=document.getElementById("tooltip");B.style.visibility="hidden";document.getElementById("spellnext").style.visibility="hidden";document.getElementById("ranknext").style.visibility="hidden";gcur=-1;gZF=-1}}function Zd(A){if(ZU[A]==ZO[A]){document.getElementById("t"+A).style.backgroundPosition="-"+(ZM[A]*39)+" -"+(ZN[A]*39*2);document.getElementById("ts"+A).style.backgroundPosition="-64 0";document.getElementById("tr"+A).style.visibility="hidden";document.getElementById("r"+A).style.visibility="hidden"}else{document.getElementById("t"+A).style.backgroundPosition="-"+(ZM[A]*39)+" -"+(ZN[A]*39*2+39);document.getElementById("ts"+A).style.backgroundPosition="-0 0";document.getElementById("tr"+A).style.visibility="hidden";document.getElementById("r"+A).style.visibility="hidden"}for(j in Zv){if(Zv[j]==A){document.getElementById("ar"+j).style.backgroundPosition="-"+(Zw[j]*33)+" -32"}}ZT[A]=false}function Ze(A){if(ZU[A]==ZO[A]){document.getElementById("t"+A).style.backgroundPosition="-"+(ZM[A]*39)+" -"+(ZN[A]*39*2);document.getElementById("ts"+A).style.backgroundPosition="-64 0";document.getElementById("tr"+A).style.visibility="visible";document.getElementById("r"+A).style.visibility="visible"}else{document.getElementById("t"+A).style.backgroundPosition="-"+(ZM[A]*39)+" -"+(ZN[A]*39*2);document.getElementById("ts"+A).style.backgroundPosition="-128 0";document.getElementById("tr"+A).style.visibility="visible";document.getElementById("r"+A).style.visibility="visible"}for(j in Zv){if(Zv[j]==A){document.getElementById("ar"+j).style.backgroundPosition="-"+(Zw[j]*33)+" -0"}}ZT[A]=true}function Yb(A){ZF=A}function nb(B){var A=B;while(A.indexOf(" ")>=0){A=A.replace(/ /,"&nbsp;")}return A}function Zo(E){var C=ZU[E];if(C<1){C=1}var B="";var D;for(D in Zu){if(Zx[D]==1&&Zv[D]==E&&ZU[Zu[D]]<ZO[Zu[D]]){B+="<br>Requires "+ZO[Zu[D]]+" point";if(ZO[Zu[D]]>1){B+="s"}B+=" in "+ZI[Zu[D]]}}var F=ZV[ZJ[E]]/5;if(F<ZR[E]){B=B+"<br>Requires "+(ZR[E]*5)+" points in "+ZW[ZJ[E]]+" talents"}if(B.length>0){if(makebold){B='<span class="myRed"><b>'+B+"</b></span>"}else{B='<span class="myRed">'+B+"</span>"}}document.getElementById("spellname").innerHTML=nb(ZI[E]);document.getElementById("talentrank").innerHTML="Rank "+ZU[E]+"/"+ZO[E]+B;document.getElementById("spelltext").innerHTML=ZQ[E][C];document.getElementById("rt1").innerHTML=nb(ZS1[E]);var A;A="";if(ZS2[E].length>0){A=A+nb(ZS2[E])}if(ZS3[E].length>0){if(A.length>0){A=A+'<span style="position:absolute; right:10px">'+nb(ZS3[E])+"</span>"}else{A=A+nb(ZS3[E])}}if(A.length>0){A=A+"<br>"}document.getElementById("rt23").innerHTML=A;A="";if(ZS4[E].length>0){A=A+nb(ZS4[E])}if(ZS5[E].length>0){if(A.length>0){A=A+'<span style="position:absolute; right:10px">'+nb(ZS5[E])+"</span>"}else{A=A+nb(ZS5[E])}}if(A.length>0){A=A+"<br>"}if(ZS6[E].length>0){A=A+nb(ZS6[E])}document.getElementById("rt45").innerHTML=A;if(B.length==0){if(ZU[E]==0){document.getElementById("ranknext").style.visibility="hidden";document.getElementById("ranknext").innerHTML="";if(ZV[0]+ZV[1]+ZV[2]>=MAX_TALENT_POINTS){document.getElementById("spellnext").style.visibility="hidden";document.getElementById("spellnext").innerHTML=""}else{document.getElementById("spellnext").style.visibility="visible";document.getElementById("spellnext").innerHTML="<font color=#00FF00>Click to learn<br></font>"}}else{if(ZU[E]<ZO[E]){document.getElementById("ranknext").style.visibility="visible";document.getElementById("ranknext").innerHTML="<br>Next rank:<br>";document.getElementById("spellnext").style.visibility="visible";document.getElementById("spellnext").innerHTML=ZQ[E][C+1]}else{document.getElementById("ranknext").style.visibility="hidden";document.getElementById("ranknext").innerHTML="";document.getElementById("spellnext").style.visibility="visible";document.getElementById("spellnext").innerHTML="<font color=#FF0000>Right-click to unlearn<br></font>"}}}else{document.getElementById("ranknext").style.visibility="hidden";document.getElementById("ranknext").innerHTML="";document.getElementById("spellnext").style.visibility="hidden";document.getElementById("spellnext").innerHTML=""}document.title="talent.mmo-champion.com - "+ZB+" - "+ZV[0]+"/"+ZV[1]+"/"+ZV[2];utp()}function csh(A){document.getElementById("tc"+A).innerHTML="<center>"+Zzcolor[A]+"</center>";document.getElementById("bc"+A).style.visibility="visible";document.getElementById("c"+A).style.backgroundPosition="-"+(A*64)+" 0";ccur=A}function chh(A){ccur=-1;if(A!=ZC){document.getElementById("tc"+A).innerHTML="<center>"+Zzcolorf[A]+"</center>";document.getElementById("c"+A).style.backgroundPosition="-"+(A*64)+" -64"}document.getElementById("bc"+A).style.visibility="hidden"}function gsh(A,C){if(navigator.appName!="Microsoft Internet Explorer"&&(gZF>-1)){var B=document.getElementById("g"+gZFmm+"i"+gZF);if(B){B.style.visibility="hidden"}B=document.getElementById("tooltip");B.style.visibility="hidden";document.getElementById("spellnext").style.visibility="hidden";document.getElementById("ranknext").style.visibility="hidden";gcur=-1;gZF=-1}gcur=A;gmm=C;var B=document.getElementById("g"+gmm+"i"+gcur);B.style.visibility="visible";if(C==0){setgtt(C,g0[A])}else{setgtt(C,g1[A])}}function setgtt(G,D){var A="";var E="";var C="";var F=0;if(G==0){A=sg0tn[D];E=sg0ts[D];F=sg0l[D];C="Major"}else{A=sg1tn[D];E=sg1ts[D];F=sg1l[D];C="Minor"}var B=Zzcaps[ZC];document.getElementById("spellname").innerHTML=A;document.getElementById("talentrank").innerHTML="<font color=#71d5ff>"+C+" Glyph</font>";document.getElementById("rt23").innerHTML="Classes: "+B+"<br>";document.getElementById("rt45").innerHTML="Requires Level "+F+"<br>";document.getElementById("spelltext").innerHTML="<font color=#1eff00>Use: "+E+"</font>";document.getElementById("spellnext").innerHTML="<font color=#7f7f7f>Click to change<br></font>";document.getElementById("spellnext").style.visibility="visible";if(F==0){document.getElementById("rt23").visibility="hidden";document.getElementById("rt23").innerHTML="";document.getElementById("rt45").visibility="hidden";document.getElementById("rt45").innerHTML="";document.getElementById("spelltext").innerHTML="There is currently no glyph in this slot.";document.getElementById("spelltext").visibility="visible"}document.getElementById("ranknext").style.visibility="hidden";document.getElementById("ranknext").innerHTML="";document.getElementById("rt1").style.visibility="hidden";document.getElementById("rt1").innerHTML="";Yg=document.getElementById("tooltip");Yg.style.visibility="visible"}function ghh(A,B){gZF=A;gZFmm=B}function gshm(B,A){gcur=B;if(navigator.appName!="Microsoft Internet Explorer"&&(gZF>-1)){Yg=document.getElementById("tooltip");Yg.style.visibility="hidden";document.getElementById("spellnext").style.visibility="hidden";document.getElementById("ranknext").style.visibility="hidden";gcur=-1;gZF=-1}gmm=A;setgtt(A,B)}function ghhm(A){gZF=A}function sttt(D,G,C,E,B,A){var F=[];F.tab=D;F.row=G;F.col=C;F.req=E;F.num=B;F.max=A;return F}function optimizestring(A,D){var F="";var E;var C;while(D.length>0){F=""+D;F=F.substr(0,F.length-1);var B=decodeZU(F);for(C=1;A[C].max;C++){if(A[C].num!=B[C].num){return D}}D=""+F}return D}function encodeZU(){var G,F,A;var C=[];var Q=[];var I=MAX_TALENT_POINTS;var H;var E=0;var P=RANGE_HIGH;var K;var D;var B;var J;var O;var M=1;var A=0;var L=[];var N="";A=0;C[A]=0;L[A++]=sttt(0,0,0,0,0,0);for(F in ZU){if(!ZK[F]){ZK[F]=0}C[A]=0;L[A++]=sttt(ZJ[F],ZR[F],ZL[F],ZK[F],ZU[F],ZO[F])}C[A]=0;L[A]=sttt(0,0,0,0,0,0);for(G=0;G<3;G++){Q[G]=0}C[0]=2;while(M){M=0;for(G=1;L[G].max;G++){if(C[G]==0&&Q[L[G].tab]>=5*L[G].row&&C[L[G].req]==2&&L[L[G].req].num==L[L[G].req].max){C[G]=1}}for(G=1;L[G].max;G++){if(!I){break}if(C[G]==1){M=1;C[G]=2;if(L[G].num>L[G].max){L[G].num=L[G].max}H=I;if(L[G].max<H){H=L[G].max}K=H+1;D=L[G].num;B=1;J=P-E;P=E+Math.floor(J*(D+B)/K);E+=Math.floor(J*D/K);while((E&RANGE_HIGH_MASK)==(P&RANGE_HIGH_MASK)){O=(E>>(RANGE_BITS-6))&63;J=P-E;E=((E&RANGE_LOW_MASK)<<6);P=E+J*64-1;N+=base64.substr(O,1)}Q[L[G].tab]+=L[G].num;I-=L[G].num}}}O=(P>>(RANGE_BITS-6))&63;N+=base64.substr(O,1);N=optimizestring(L,N);return N}function decodeZU(H){var O,N,J;var C=[];var Q=[];var M=MAX_TALENT_POINTS;var S;var E=0;var A=RANGE_HIGH;var D=0;var B;var L;var I;var P;var R;var K=1;var J=0;var G=[];var F=""+H;J=0;C[J]=0;G[J++]=sttt(0,0,0,0,0,0);for(N in ZU){if(!ZK[N]){ZK[N]=0}C[J]=0;G[J++]=sttt(ZJ[N],ZR[N],ZL[N],ZK[N],ZU[N],ZO[N])}C[J]=0;G[J]=sttt(0,0,0,0,0,0);for(O=0;O<3;O++){Q[O]=0}for(O=0;O<RANGE_BITS/6;O++){D=(D&(RANGE_HIGH>>6))<<6;if(F.length>0&&base64.indexOf(F.substr(0,1)>=0)){D=D|base64.indexOf(F.substr(0,1));F=F.substr(1)}}C[0]=2;while(K){K=0;for(O=1;G[O].max;O++){if(C[O]==0&&Q[G[O].tab]>=5*G[O].row&&C[G[O].req]==2&&G[G[O].req].num==G[G[O].req].max){C[O]=1}}for(O=1;G[O].max;O++){if(!M){break}if(C[O]==1){K=1;C[O]=2;if(G[O].num>G[O].max){G[O].num=G[O].max}S=M;if(G[O].max<S){S=G[O].max}B=S+1;I=1;P=A-E;for(L=0;L<S+1;L++){if(D>=E+Math.floor(P*L/B)&&D<E+Math.floor(P*(L+I)/B)){break}}G[O].num=L;if(G[O].num>G[O].max){return G}A=E+Math.floor(P*(L+I)/B);E+=Math.floor(P*L/B);while((E&RANGE_HIGH_MASK)==(A&RANGE_HIGH_MASK)){R=(E>>(RANGE_BITS-6))&63;P=A-E;E=((E&RANGE_LOW_MASK)<<6);A=E+P*64-1;D=(D&(RANGE_HIGH>>6))<<6;if(F.length>0&&base64.indexOf(F.substr(0,1)>=0)){D=D|base64.indexOf(F.substr(0,1));F=F.substr(1)}}Q[G[O].tab]+=G[O].num;M-=G[O].num}}}return G}function decodewowhead(G){var F="";var C,B,E;var A=1;var D=""+G;while(D.length>0){E=D.substr(0,1);D=D.substr(1);if(E=="Z"){F+="0";A++;while(ZJ[A]==ZJ[A-1]){F+="0";A++}}else{E=wowheaYp.indexOf(E);if(E==-1){break}C=Math.floor(E/6);B=E%6;F+=C;A++;if((ZJ[A]==ZJ[A-1])){F+=B;A++}}}return F}function tryimporturl(D){var E;if((E=D.indexOf("wowhead.com/?talent"))!=-1){var C=D.substr(E+7+1+3+2+6+1);var F=wowheadcls.indexOf(C.substr(0,1));if(F==-1){alert("unrecognized URL format");return false}if(F!=ZC){alert("please go to the "+Zz[F]+" page first and then try to import again");return false}C=decodewowhead(C.substr(1));var B=Kz+"?"+Zz[F]+"="+C+"&glyph=000000000000&version="+YC;location.replace(B)}else{if((E=D.indexOf("wowarmory.com/talent-calc.xml"))!=-1){E=D.indexOf("?cid=");if(E==-1){alert("unrecognized URL format");return false}var F=parseInt(D.substr(E+5));F--;if(F==10){F--}E=D.indexOf("&tal=");if(E==-1){alert("unrecognized URL format");return false}var C=D.substr(E+5);var B=Kz+"?"+Zz[F]+"="+C+"&glyph=000000000000&version="+YC;location.replace(B)}else{var A='<font color=#efefef style="line-height: 1.1;">';A+="<br><font size=-1 color=#3f3f3f>( supports <font color=#68ccef>wowarmory</font> and <font color=#68ccef>wowhead</font> URLs )<br>( e.g., http://www.wowhead.com/?talent#IZcu0h0hZVbGVdcuVsAfct )</font>";A+="</font>";document.getElementById("importmenutext").innerHTML=A}}return false}function openexportmenu(){document.getElementById("exportmenu").style.visibility="visible";document.getElementById("importmenu").style.visibility="hidden";document.getElementById("glyphmenu").style.visibility="hidden";var A='<font color=#efefef style="line-height: 1.1;">';var E=buildwowarmoryurl();var D=buildwowheadurl();var C=buildoldurl();var B=buildurl();A+='WoW Armory: <a href="'+E+'">'+E.substr(0,E.indexOf("&tal=")+15)+"...</a><br>";A+='Wowhead: <a href="'+D+'">'+D+"</a><br>";A+='MMO-Champion #1: <a href="'+C+'">'+C.substr(0,C.indexOf("=")+11)+"...</a><br>";A+='MMO-Champion #2: <a href="'+B+'">'+B+"</a><br>";A+="<br><font size=-1 color=#3f3f3f>( right click &rarr; copy shortcut / copy link location )<br>( or just click or shift-click to go there! )</font>";A+="</font>";document.getElementById("exportmenutext").innerHTML=A}function openimportmenu(){document.getElementById("importmenu").style.visibility="visible";document.getElementById("exportmenu").style.visibility="hidden";document.getElementById("glyphmenu").style.visibility="hidden";var A='<font color=#efefef style="line-height: 1.1;">';A+="<br><font size=-1 color=#3f3f3f>( supports WoWArmory and Wowhead URLs )<br>( e.g., http://www.wowhead.com/?talent#IZcu0h0hZVbGVdcuVsAfct )</font>";A+="</font>";document.getElementById("importmenutext").innerHTML=A;document.getElementById("importurl").focus()}function buildurl(){var A=Kz+"?"+ZB+"#";if(YC>0){}else{YC=vdefault}A=A+encodeZU();A=A+",";var B=base64.substr(g0[0],1)+base64.substr(g0[1],1)+base64.substr(g0[2],1)+base64.substr(g1[0],1)+base64.substr(g1[1],1)+base64.substr(g1[2],1);while(B.length>0&&B.substr(B.length-1,1)==base64.substr(0,1)){B=B.substr(0,B.length-1)}A=A+B;A=A+","+YC;return A}function buildwowheadurl(){var C;var F="";var D,B,E;var A="";for(C=1;ZO[C];){if(C>1&&ZJ[C]!=ZJ[C-1]){while(A.length>0&&(A.substr(A.length-1)==wowheaYp.substr(0,1))){A=A.substr(0,A.length-1)}if(!ZU[C-1]){A+="Z"}}D=ZU[C++];B=0;if(ZO[C]){if(ZJ[C]!=ZJ[C-1]){B=0}else{B=ZU[C++]}}E=D*6+B;A+=wowheaYp.substr(E,1)}while(A.length>0&&(A.substr(A.length-1)==wowheaYp.substr(0,1)||A.substr(A.length-1)=="Z")){A=A.substr(0,A.length-1)}return"http://www.wowhead.com/?talent#"+wowheadcls.substr(ZC,1)+A}function buildwowarmoryurl(){var B=parseInt(""+ZC)+1;if(B==10){B=11}var A="http://www.wowarmory.com/talent-calc.xml?cid="+B+"&tal=";for(i in ZU){A=A+ZU[i]}return A}function buildoldurl(){var A=Kz+"?"+ZB+"=";for(i in ZU){A=A+ZU[i]}A=A+"&glyph=";A=A+s2(g0[0]);A=A+s2(g0[1]);A=A+s2(g0[2]);A=A+s2(g1[0]);A=A+s2(g1[1]);A=A+s2(g1[2]);if(YC>0){A=A+"&version="+YC}return A}function gsmc(D,B,C){document.getElementById("glyphmenu").style.visibility="hidden";document.getElementById("tooltip").style.visibility="hidden";ghhm(B);if(C==0){g0[D]=B}else{g1[D]=B}var A=buildurl();yO(A);tssc4()}function gsm(C,F){var A='<hr><font size=-1 style="line-height: 1.1;">';var E;var D;if(F==0){for(E=0;E<=sg0num;E++){D=1;if(E==g0[0]||E==g0[1]||E==g0[2]){D=0}if(E==g0[C]){D=2}if(E==0){D=1}if(D==0){A=A+"<font color=#3f3f3f>"+sg0tn[E]+"</font><br>"}else{var B="<font color=#efefef>";if(D==2){B="<font color=#00ff00>"}A=A+'<a href="#" onclick="return false;" onmouseover="gshm(\''+E+"',0)\" onmouseout=\"ghhm('"+E+'\')" onmouseup="gsmc('+C+","+E+',0)">'+B+sg0tn[E]+"</font></a><br>"}}}else{for(E=0;E<=sg1num;E++){D=1;if(E==g1[0]||E==g1[1]||E==g1[2]){D=0}if(E==g1[C]){D=2}if(E==0){D=1}if(D==0){A=A+"<font color=#3f3f3f>"+sg1tn[E]+"</font><br>"}else{var B="<font color=#efefef>";if(D==2){B="<font color=#00ff00>"}A=A+'<a href="#" onclick="return false;" onmouseover="gshm(\''+E+"',1)\" onmouseout=\"ghhm('"+E+'\')" onmouseup="gsmc('+C+","+E+',1)">'+B+sg1tn[E]+"</font></a><br>"}}}A=A+"</font>";document.getElementById("glyphmenutext").innerHTML=A;document.getElementById("glyphmenu").style.visibility="visible";document.getElementById("importmenu").style.visibility="hidden";document.getElementById("exportmenu").style.visibility="hidden"}function Yc(A){if(navigator.appName!="Microsoft Internet Explorer"&&(ZF>-1)){var B=document.getElementById("ti"+ZF);B.style.visibility="hidden";B=document.getElementById("tooltip");B.style.visibility="hidden";document.getElementById("spellnext").style.visibility="hidden";document.getElementById("ranknext").style.visibility="hidden";ZY=-1;ZF=-1}ZY=A;var B=document.getElementById("ti"+A);B.style.visibility="visible";Zo(A);var B=document.getElementById("ti"+A);B.style.visibility="visible"}function Za(A,B,C){var D=ZV[ZJ[A]];if(!D){D=0}D+=C-B;ZV[ZJ[A]]=D;tssc3(ZJ[A]);for(j in ZR){if(!ZT[j]&&Zb(j)){Ze(j)}else{if(ZT[j]&&!Zb(j)){Zd(j)}}}Ze(A);if(document.getElementById("exportmenu").style.visibility=="visible"){openexportmenu()}}function Zb(C){var B,A;if(ZV[0]+ZV[1]+ZV[2]>=MAX_TALENT_POINTS){if(ZU[C]==0){return false}}var D=ZV[ZJ[C]]/5;if(D<ZR[C]){return false}for(B in Zu){if(Zv[B]==C&&ZU[Zu[B]]<ZO[Zu[B]]){return false}}return true}function Zf(A){if(ZV[0]+ZV[1]+ZV[2]>=MAX_TALENT_POINTS){return false}return true}function Zg(C){var B,A;var D=[];for(A=0;A<20;A++){D[A]=0;for(B in ZR){if(ZJ[C]==ZJ[B]&&ZR[B]<=A){D[A]+=ZU[B]}}}for(A=ZR[C];A<20;A++){if(D[A]>0){D[A]--}}var E=0;for(A=1;A<20;A++){if(D[A]>0&&D[A]!=D[A-1]){E=A}}for(A=0;A<E;A++){if(D[A]<5*(A+1)){return false}}for(B in Zu){if(Zu[B]==C&&ZU[Zv[B]]>0){return false}}return true}function resettree(B){var C;var D;ZV[B]=0;for(C in ZJ){if(ZJ[C]==B){ZU[C]=0;Zd(C);D=document.getElementById("r"+C);D.innerHTML="<font color=#00FF00>0</font>"}}for(C in ZJ){if(ZJ[C]==B&&ZR[C]==0){Za(C,0,0);break}}var A=buildurl();yO(A)}function sccc(A,C){var B;var D="";if(YC>0){D="#,,"+YC}document.location=tbase+textra+"?"+Zz[A]+D;ttp();return }function g2(A){if(A=="08"){return 8}if(A=="09"){return 9}return parseInt(A)}function s2(A){var B=""+A;if(B.length==1){B="0"+B}return B}function tc(D,F){if(!ZT[D]){if(!F){makebold=true}Zo(D);makebold=false;return }var A=ZU[D];if(!A){A=0}var E=A;if(F){if(A<=0||!Zg(D)){return }A--}else{if(A>=ZO[D]||!Zf(D)){return }A++}ZU[D]=A;var B="#00FF00";if(A<0){A=0}if(A>=ZO[D]){A=ZO[D];B="#FFFF00"}Yg=document.getElementById("r"+D);Yg.innerHTML="<font color="+B+">"+A+"</font>";var C=buildurl();yO(C);if(E!=A){Za(D,E,A)}Zo(D)}function getYC(A){var B;B=A.indexOf("&version=");if(B!=-1){B=B+9;YC=parseInt(A.substr(B))}else{B=A.indexOf(",");if(B!=-1){B=A.indexOf(",",B+1)}if(B!=-1){YC=parseInt(A.substr(B+1))}}}function Zj(B){var F=0;var D;var E=true;ZV[0]=ZV[1]=ZV[2]=0;for(D in ZU){ZU[D]=0}if(olddecode){for(D in ZU){if(B.substr(F,1)&&!(parseInt(B.substr(F,1))>=0&&parseInt(B.substr(F,1))<=9)){E=false}if(B.substr(F,1)&&E){ZU[D]=parseInt(B.substr(F,1))}else{ZU[D]=0}var G=document.getElementById("r"+D);var C="#00FF00";if(ZU&&ZO&&ZU[D]>=ZO[D]){C="#FFFF00"}if(ZU[D]>0){Ze(D);ZV[ZJ[D]]+=ZU[D]}G.innerHTML="<font color="+C+">"+ZU[D]+"</font>";F++}}else{var A=""+B;F=A.indexOf(",");if(F!=-1){A=A.substr(0,F)}var H=decodeZU(A);ZV[0]=ZV[1]=ZV[2]=0;for(D in ZU){ZU[D]=H[D].num;var G=document.getElementById("r"+D);var C="#00FF00";if(ZU&&ZO&&ZU[D]>=ZO[D]){C="#FFFF00"}if(ZU[D]>0){Ze(D);ZV[ZJ[D]]+=ZU[D]}G.innerHTML="<font color="+C+">"+ZU[D]+"</font>";F++}}g0[0]=g0[1]=g0[2]=g1[0]=g1[1]=g1[2]=0;F=B.indexOf("&glyph=");if(F!=-1){F=F+7;g0[0]=g2(B.substr(F,2));F=F+2;g0[1]=g2(B.substr(F,2));F=F+2;g0[2]=g2(B.substr(F,2));F=F+2;g1[0]=g2(B.substr(F,2));F=F+2;g1[1]=g2(B.substr(F,2));F=F+2;g1[2]=g2(B.substr(F,2));F=F+2}else{F=B.indexOf(",");var J="";if(F!=-1){J=B.substr(F+1)}F=J.indexOf(",");if(F!=-1){J=J.substr(0,F)}J=J+base64.substr(0,1)+base64.substr(0,1)+base64.substr(0,1)+base64.substr(0,1)+base64.substr(0,1)+base64.substr(0,1);g0[0]=base64.indexOf(J.substr(0,1));g0[1]=base64.indexOf(J.substr(1,1));g0[2]=base64.indexOf(J.substr(2,1));g1[0]=base64.indexOf(J.substr(3,1));g1[1]=base64.indexOf(J.substr(4,1));g1[2]=base64.indexOf(J.substr(5,1))}getYC(window.location.href);var I="";if(YC>0){I=""+YC+"/"}for(F=1;F<=200;F++){document.getElementById("t"+F).style.backgroundImage="url(img/"+I+"spell"+ZC+".jpg)"}for(D in ZU){if(ZU[D]>ZO[D]||(ZV[0]+ZV[1]+ZV[2]>MAX_TALENT_POINTS)){document.title="talent.mmo-champion.com - "+ZB;document.getElementById("url").innerHTML='<a href="'+Kz+"?"+ZB+'=">'+Kz+"?"+ZB+"#</a>";if(window.location.href.indexOf("&version=")==-1){window.location.href=window.location.href+"&version=9551";return }Zj("")}}for(D in ZR){if(Zb(D)){Ze(D)}else{if(!Zb(D)){Zd(D)}}}if(dataready){tssc2(ZC)}var K=buildurl();document.title="talent.mmo-champion.com - "+ZB+" - "+ZV[0]+"/"+ZV[1]+"/"+ZV[2];document.getElementById("url").innerHTML='<a href="'+K+'">'+K+"</a>";window.location.href=K;setInterval("checkurlanchor();",100)}var lasturl=window.location.href;function checkurlanchor(){if(window.location.href!=lasturl){lastversion=YC;lasturl=""+window.location.href;var A=lasturl.indexOf("#");if(A!=-1){Zj(lasturl.substr(A+1));yO(lasturl)}}}function yO(B){var D=document.getElementById("url");lasturl=B;getYC(window.location.href);if(lastversion>0&&lastversion!=YC){location.replace(B);location.reload(true)}var A=B.indexOf("?");if(A>=0){Kz=B.substr(0,A);ZB=B.substr(A+1);if(ZB.indexOf("=")>=0){B=ZB.substr(ZB.indexOf("=")+1);ZB=ZB.substr(0,ZB.indexOf("="))}else{if(ZB.indexOf("#")>=0){B=ZB.substr(ZB.indexOf("#")+1);ZB=ZB.substr(0,ZB.indexOf("#"))}else{B=""}}}else{Kz=B;B=""}ZA=B;D.innerHTML='<a href="'+Kz+"?"+ZB+"#"+B+'">'+Kz+"?"+ZB+"#"+ZA+"</a>";if(window.location.href.indexOf("=")==-1){window.location.href=""+Kz+"?"+ZB+"#"+B}document.title="talent.mmo-champion.com - "+ZB+" - "+ZV[0]+"/"+ZV[1]+"/"+ZV[2];if(!Zi){ZC=-2;var C;for(C in Zz){if(Zz[C]==ZB){ZC=C}}if(window.location.href.indexOf("=")!=-1){deferparse=true;olddecode=true}else{deferparse=true}sc(ZC);Zi=true}}function Zk(B){var A=false;if(!B){var B=window.event}if(B.which){A=(B.which==3)}else{if(B.button){A=(B.button==2)}}if(B.shiftKey){A=true}if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){if(B.modifiers-0>3){A=true}}}if(ccur>=0){sccc(ccur,A);return false}if(ZY>=0){tc(ZY,A);return false}return true}function Zl(A){if(ZY<0){return true}return false}function st(C,B,A){ZU[C]=0;ZO[C]=B;ZI[C]=A}function sgm(B,D,C,I,A,G,F,H,E){sg0i[0]=sg1i[0]=0;sg0l[0]=sg1l[0]=0;sg0sx[0]=sg1sx[0]=0;sg0sy[0]=sg1sy[0]=0;sg0tn[0]=sg1tn[0]="<font color=#7f7f7f>Empty Slot</font>";sg0ts[0]=sg1ts[0]="";if(B==0){sg0num++;sg0i[sg0num]=D;sg0l[sg0num]=A;sg0sx[sg0num]=G;sg0sy[sg0num]=F;sg0tn[sg0num]=H;sg0ts[sg0num]=E}else{sg1num++;sg1i[sg1num]=D;sg1l[sg1num]=A;sg1sx[sg1num]=G;sg1sy[sg1num]=F;sg1tn[sg1num]=H;sg1ts[sg1num]=E}}function Yf(Z,I,F,K,T,S,H,R,J,G,D,C,B,A,a,Y,X,W,V,U,Q,P,O,N,M,L){var E=document.getElementById("t"+Z);E.style.left=H;E.style.top=R;E.backgroundPosition="-"+(T*39)+"px -"+(S*39*2+39)+"px";E.style.visibility="visible";E=document.getElementById("tr"+Z);E.style.left=H+17;E.style.top=R+17;E.style.visibility="visible";E=document.getElementById("mt"+Z);E.style.left=H-12+3;E.style.top=R-12;E.style.visibility="visible";E=document.getElementById("ts"+Z);E.style.left=H-12;E.style.top=R-12;E.style.visibility="visible";st(Z,K,G);ZS1[Z]=Q;ZS2[Z]=P;ZS3[Z]=O;ZS4[Z]=N;ZS5[Z]=M;ZS6[Z]=L;ZT[Z]=false;ZR[Z]=I;ZL[Z]=(H-22-F*256)/58;ZJ[Z]=F;ZM[Z]=T;ZN[Z]=S;ZP[Z]=[];ZQ[Z]=[];ZP[Z][1]=D;ZQ[Z][1]=Y;ZP[Z][2]=C;ZQ[Z][2]=X;ZP[Z][3]=B;ZQ[Z][3]=W;ZP[Z][4]=A;ZQ[Z][4]=V;ZP[Z][5]=a;ZQ[Z][5]=U;if(I==0){Ze(Z)}else{Zd(Z)}}function Ye(C,I,F,A,H,E,D){Zy++;Zu[Zy]=A;Zv[Zy]=H;Zw[Zy]=F;Zs[Zy]=E;Zt[Zy]=D;Zx[Zy]=0;I-=32;C+=17;var B=32;var K=32;var J=0;if(Zm==0){if(Zs[Zy]==1){I+=4;K-=4}else{if(Zs[Zy]==2){C+=3+6;B-=3+3}else{if(Zs[Zy]==4){C+=0-3;B-=4}}}}if(Zs[Zy]==1){C+=0}else{if(Zs[Zy]==2){C+=0-6;B-=3}else{if(Zs[Zy]==4){C+=0+6;B-=3}}}if(Zt[Zy]==1){K-=4}else{if(Zt[Zy]==2){C+=0;B-=4+3}else{if(Zt[Zy]==4){C+=4;B-=4+3}}}var G=document.getElementById("ar"+Zy);G.style.left=C;G.style.top=I;G.style.width=B;G.style.height=K;G.style.backgroundPosition="-"+(F*33+J)+"px -"+(32)+"px";G.style.visibility="visible";Zm++}function Yd(F,E,C,G,H,B,A){Zy++;C+=9;Zu[Zy]=G;Zv[Zy]=H;ZK[H]=G;Zw[Zy]=C;Zs[Zy]=B;Zt[Zy]=A;Zx[Zy]=1;E-=32;F+=17;if(Zs[Zy]==1){F+=0}else{if(Zs[Zy]==2){F+=0}else{if(Zs[Zy]==4){F+=0}}}if(Zt[Zy]==1){F+=0}else{if(Zt[Zy]==2){F+=-6}else{if(Zt[Zy]==4){F+=6}}}var D=document.getElementById("ar"+Zy);D.style.left=F;D.style.top=E;D.style.zIndex=5;D.style.backgroundPosition="-"+(C*33)+"px -"+(32)+"px";D.style.visibility="visible";Zm=0}var Yo=0;var dl=0;var Yp="";var f7="";function cc(B){var A=B.charCodeAt(0);if(A>=48&&A<58){A-=48}else{if(A>=65&&A<91){A-=55}else{if(A>=97&&A<123){A-=61}else{if(A==60){A+=2}else{if(A==62){A+=1}}}}}if(ep>=Kz.length+7){ep=0}if(ep>=Kz.length){A=(A+256-f7.charCodeAt((ep++)-Kz.length))%64}else{A=(A+256-Kz.charCodeAt(ep++))%64}return A}function ch(A){return String.fromCharCode(A)}function Yq(K){var J=cc(K.substr(0,1))+cc(K.substr(1,1))*64;var B=0;var A=0;Yp="";while(A<J){var I=cc(K.substr(B+2,1));var H=cc(K.substr(B+3,1));var G=cc(K.substr(B+4,1));var F=cc(K.substr(B+5,1));var E=I+(H%4)*64;var D=Math.floor(H/4)+(G%16)*16;var C=Math.floor(G/16)+(F%64)*4;if(A+0<J){Yp+=ch(E)}if(A+1<J){Yp+=ch(D)}if(A+2<J){Yp+=ch(C)}B+=4;A+=3}dl=B+2}function Ys(C){var B,A,H,G,F,E,D;B=cc(C.substr(0,1))+cc(C.substr(1,1))*64;A=cc(C.substr(2,1))+cc(C.substr(3,1))*64;H=cc(C.substr(4,1));G=cc(C.substr(5,1))+cc(C.substr(6,1))*64;F=cc(C.substr(7,1))+cc(C.substr(8,1))*64;E=cc(C.substr(9,1));D=cc(C.substr(10,1));Ye(B,A,H,G,F,E,D);dl=11}function Yt(C){var B,A,H,G,F,E,D;B=cc(C.substr(0,1))+cc(C.substr(1,1))*64;A=cc(C.substr(2,1))+cc(C.substr(3,1))*64;H=cc(C.substr(4,1));G=cc(C.substr(5,1))+cc(C.substr(6,1))*64;F=cc(C.substr(7,1))+cc(C.substr(8,1))*64;E=cc(C.substr(9,1));D=cc(C.substr(10,1));Yd(B,A,H,G,F,E,D);dl=11}function Yu(H){var Q=0;ZX++;var Z=cc(H.substr(0,1));var Y=cc(H.substr(1,1));var W=cc(H.substr(2,1));var U=cc(H.substr(3,1));var T=cc(H.substr(4,1));var S=cc(H.substr(5,1))+cc(H.substr(6,1))*64;var R=cc(H.substr(7,1))+cc(H.substr(8,1))*64;Q=9;Yq(H.substr(Q));var A=Yp;Q+=dl;var P=cc(H.substr(Q+0,1))+cc(H.substr(Q+1,1))*64+cc(H.substr(Q+2,1))*64*64;var O=cc(H.substr(Q+3,1))+cc(H.substr(Q+4,1))*64+cc(H.substr(Q+5,1))*64*64;var M=cc(H.substr(Q+6,1))+cc(H.substr(Q+7,1))*64+cc(H.substr(Q+8,1))*64*64;var K=cc(H.substr(Q+9,1))+cc(H.substr(Q+10,1))*64+cc(H.substr(Q+11,1))*64*64;var I=cc(H.substr(Q+12,1))+cc(H.substr(Q+13,1))*64+cc(H.substr(Q+14,1))*64*64;Q+=15;Yq(H.substr(Q));var N=Yp;Q+=dl;Yq(H.substr(Q));var L=Yp;Q+=dl;Yq(H.substr(Q));var J=Yp;Q+=dl;Yq(H.substr(Q));var X=Yp;Q+=dl;Yq(H.substr(Q));var V=Yp;Q+=dl;Yq(H.substr(Q));var G=Yp;Q+=dl;Yq(H.substr(Q));var F=Yp;Q+=dl;Yq(H.substr(Q));var E=Yp;Q+=dl;Yq(H.substr(Q));var D=Yp;Q+=dl;Yq(H.substr(Q));var C=Yp;Q+=dl;Yq(H.substr(Q));var B=Yp;Q+=dl;Yf(ZX,Z,Y,W,U,T,S,R,"",A,P,O,M,K,I,N,L,J,X,V,G,F,E,D,C,B);dl=Q}function db5(K){var A=0;var I=cc(K.substr(0,1));var H=cc(K.substr(1,1));var G=cc(K.substr(2,1));var F=cc(K.substr(3,1))+cc(K.substr(4,1))*64+cc(K.substr(5,1))*64*64;var D=cc(K.substr(6,1))+cc(K.substr(7,1))*64;var C=cc(K.substr(8,1));var B=cc(K.substr(9,1));A=10;Yq(K.substr(A));var J=Yp;A+=dl;Yq(K.substr(A));var E=Yp;A+=dl;sgm(I,H,G,F,D,C,B,J,E);dl=A}function Yv(B){var A;A=cc(B.substr(0,1));Yq(B.substr(1));ZW[A]=""+Yp;dl++}function Yr(D){var C,B,A;while(D.length>0){A=cc(D);D=D.substr(1);if(A==1){Ys(D)}else{if(A==2){Yt(D)}else{if(A==4){Yv(D)}else{if(A==5){db5(D)}else{Yu(D)}}}}D=D.substr(dl)}dataready=true;Zj(ZA)}function scc(A){var B;ttp();ow1=document.body.clientWidth;var C=(ow1-appwidth)/2;if(C<0){C=0}document.getElementById("classselect").style.left=C;Zz[0]="warrior";Zz[1]="paladin";Zz[2]="hunter";Zz[3]="rogue";Zz[4]="priest";Zz[5]="deathknight";Zz[6]="shaman";Zz[7]="mage";Zz[8]="warlock";Zz[9]="druid";Zzcaps[0]="Warrior";Zzcaps[1]="Paladin";Zzcaps[2]="hunter";Zzcaps[3]="Rogue";Zzcaps[4]="Priest";Zzcaps[5]="Death Knight";Zzcaps[6]="Shaman";Zzcaps[7]="Mage";Zzcaps[8]="Warlock";Zzcaps[9]="Druid";Zzcolor[0]="<font color=#c69b6d><b>Warrior</b></font>";Zzcolor[1]="<font color=#f48cba><b>Paladin</b></font>";Zzcolor[2]="<font color=#aad372><b>Hunter</b></font>";Zzcolor[3]="<font color=#fff468><b>Rogue</b></font>";Zzcolor[4]="<font color=#ffffff><b>Priest</b></font>";Zzcolor[5]="<font color=#c41e3a><b>Death Knight</b></font>";Zzcolor[6]="<font color=#2359ff><b>Shaman</b></font>";Zzcolor[7]="<font color=#68ccef><b>Mage</b></font>";Zzcolor[8]="<font color=#9382c9><b>Warlock</b></font>";Zzcolor[9]="<font color=#ff7c0a><b>Druid</b></font>";Zzcolorf[0]="<font color=#634d36><b>Warrior</b></font>";Zzcolorf[1]="<font color=#7a465d><b>Paladin</b></font>";Zzcolorf[2]="<font color=#556939><b>Hunter</b></font>";Zzcolorf[3]="<font color=#7f7a34><b>Rogue</b></font>";Zzcolorf[4]="<font color=#7f7f7f><b>Priest</b></font>";Zzcolorf[5]="<font color=#620f1d><b>Death Knight</b></font>";Zzcolorf[6]="<font color=#112c7f><b>Shaman</b></font>";Zzcolorf[7]="<font color=#346677><b>Mage</b></font>";Zzcolorf[8]="<font color=#494164><b>Warlock</b></font>";Zzcolorf[9]="<font color=#7f3e05><b>Druid</b></font>";cio[5]=0;cio[9]=1;cio[2]=2;cio[7]=3;cio[1]=4;cio[4]=5;cio[3]=6;cio[6]=7;cio[8]=8;cio[0]=9;for(B=0;B<10;B++){if(!needtrans){document.writeln('<div id="bc'+B+'" style="position: absolute; left: '+(20+cio[B]*94+47-64/2)+'; top: 0; z-index: 9; visibility: hidden; width: 64; height: 64"><img src="img/Interface/gray64.png" width=64 height=64></div>\n');document.writeln('<div class="cls" id="c'+B+'" style="visibility: visible; left: '+(20+cio[B]*94+47-64/2)+"; top: 0; z-index: 5; background-position: -"+(64*B)+' -64"></div>\n');document.writeln('<div id="tc'+B+'" style="position: absolute; left: '+(20+cio[B]*94+47-140/2)+'; top: 64; width: 140; visibility: visible"><center>'+Zzcolorf[B]+"</center></div>\n");document.writeln('<div id="mc'+B+'" style="position: absolute; left: '+(20+cio[B]*94)+'; top: 0; z-index: 10; visibility: visible; width: 94; height: 90"><img src="img/Interface/clear64.png" width=94 height=90 onmouseover="csh(\''+B+"')\" onmouseout=\"chh('"+B+"')\"></div>\n")}else{document.writeln('<div id="bc'+B+'" style="position: absolute; left: '+(20+cio[B]*94+47-64/2)+'; top: 0; z-index: 9; visibility: hidden; width: 64; height: 64"><img src="img/spacer.gif" style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'img/Interface/gray64.png\', sizingMethod=\'scale\');" width=64 height=64></div>\n');document.writeln('<div class="cls" id="c'+B+'" style="visibility: visible; left: '+(20+cio[B]*94+47-64/2)+"; top: 0; z-index: 5; background-position: -"+(64*B)+' -64"></div>\n');document.writeln('<div id="tc'+B+'" style="position: absolute; left: '+(20+cio[B]*94-47)+'; top: 64; width: 180; visibility: visible"><center>'+Zzcolorf[B]+"</center></div>\n");document.writeln('<div id="mc'+B+'" style="position: absolute; left: '+(20+cio[B]*94)+'; top: 0; z-index: 10; visibility: visible; width: 94; height: 90"><img src="img/spacer.gif" style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'img/Interface/clear64.png\', sizingMethod=\'scale\');" width=94 height=90 onmouseover="csh(\''+B+"')\" onmouseout=\"chh('"+B+"')\"></div>\n")}}}var tsscZi=false;function tssc(C){var D;if(!tsscZi){for(D=0;D<3;D++){document.writeln('<div id="tf'+D+'" class="talent" style="position: absolute; left: '+(D*256+16)+'; top: 0px; visibility: visible"></div>\n');document.writeln('<div id="tft'+D+'" style="position: absolute; left: '+(D*256+48+16)+'; top: 8px; visibility: visible"></div>\n')}document.writeln('<div id="tfsummary" style="position: absolute; margin: 0 0; border: solid 2px #272727; left: '+(768+2)+'px; top: -710px; width: 186px; height: 252px; _width: 210px; _height: 276px; background-color:#090909; layer-background-color:#090909; padding: 10px; visibility: hidden">\n');document.writeln('<font color=#efefef style="line-height: 1.1;">\n');document.writeln('<span id="sum1">Points left: <font color=#1fff1f><b>71</b></font></span><br>');document.writeln('<span id="sum2">Points spent: <font color=#1fff1f><b>0</b></font></span><br>');document.writeln('<span id="sum3">Required level: <font color=#1fff1f><b>-</b></font></span><br>');document.writeln('<span id="sum4">Level cap: <font color=#1fff1f><b>80</b></font></span><br>');document.writeln("<hr>\n");document.writeln("</font>\n");for(D=0;D<3;D++){document.writeln('<div id="tf2'+D+'" class="talent" style="position: absolute; left: '+(8)+"; top: "+(100+48*D)+'px; visibility: visible"></div>\n');document.writeln('<div id="tft2'+D+'" style="position: absolute; left: '+(48+8)+"; top: "+(100+48*D)+'px; visibility: visible"></div>\n')}document.writeln('<div id="tft3'+D+'" style="position: absolute; left: '+(8)+"; top: "+(100+48*3)+'px;"><a href="javascript:;" onmouseup="resettree(0);resettree(1);resettree(2);"><img border=0 align=bottom src="img/Interface/calc_resetall.png"></a></div>\n');document.writeln("</div>\n");document.writeln('<div style="position: absolute; left: 0px; top: 100px; width: 350px; height: 50px; visibility: visible"></div>\n');document.writeln('<div id="glyphs" style="position: absolute; margin: 0 0; border: solid 2px #272727; left: '+(768+2)+'px; top: -432px; width: 186px; height: 296px; _width: 210px; _height: 320px; background-color:#090909; layer-background-color:#090909; padding: 10px; visibility: hidden">\n');document.writeln('<div id="majorglyphs" style="position: absolute; height: 140px; width: 186;">\n');document.writeln('<font color=#efefef style="line-height: 1.1;">\n');document.writeln("<center><font size=+2><b>Major Glyphs</b></font><font size=1><br><br></font></center>\n");for(D=0;D<3;D++){document.writeln('<a href="#" onclick="return false;" onmouseover="gsh(\''+D+"',0)\" onmouseout=\"ghh('"+D+'\',0)" onmouseup="gsm('+D+","+0+')"><span class="myWhite" id="majorglypht'+D+'"></span></a><br>')}for(D=0;D<3;D++){document.writeln('<div id="majorglyphi'+D+'" class="talent" style="position: absolute; top: 94; left: '+(8+64*D)+';"><div class="talenti" id="g0i'+D+'"></div><div class="talentback" id="mg0s'+D+'" style="left: -12; top: -12;"></div></div>\n');document.writeln('<div id="mg0c'+D+'" style="position: absolute; z-index: 10; top: 80; left: '+(8+64*D-12)+'; width: 64; height: 64"><img src="img/Interface/clear64.png" onmouseover="gsh(\''+D+"',0)\" onmouseout=\"ghh('"+D+'\',0)" onmouseup="gsm('+D+","+0+')"></div>\n')}document.writeln("</font>\n");document.writeln("</div>\n");document.writeln('<div id="glyphsep" style="position: absolute; top: 150; height: 20px; width: 186;">\n');document.writeln("<hr>\n");document.writeln("</div>\n");document.writeln('<div id="minorglyphs" style="position: absolute; top: 170; height: 140px; width: 186;">\n');document.writeln('<font color=#efefef style="line-height: 1.1;">\n');document.writeln("<center><font size=+2><b>Minor Glyphs</b></font><font size=1><br><br></font></center>\n");for(D=0;D<3;D++){document.writeln('<a href="#" onclick="return false;" onmouseover="gsh(\''+D+"',1)\" onmouseout=\"ghh('"+D+'\',1)" onmouseup="gsm('+D+","+1+')"><span class="myWhite" id="minorglypht'+D+'"></span></a><br>')}for(D=0;D<3;D++){document.writeln('<div id="minorglyphi'+D+'" class="talent" style="position: absolute; top: 94; left: '+(8+64*D)+';"><div class="talenti" id="g1i'+D+'"></div><div class="talentback" id="mg1s'+D+'" style="left: -12; top: -12;"></div></div>\n');document.writeln('<div id="mg1c'+D+'" style="position: absolute; z-index: 10; top: 80; left: '+(8+64*D-12)+';width: 64; height: 64"><img src="img/Interface/clear64.png" onmouseover="gsh(\''+D+"',1)\" onmouseout=\"ghh('"+D+'\',1)" onmouseup="gsm('+D+","+1+')"></div>\n')}document.writeln("</font>\n");document.writeln("</div>\n");document.writeln("</div>\n");getYC(window.location.href);document.writeln('<div id="util" style="position: absolute; margin: 0 0; border: solid 2px #272727; left: '+(768+2)+'px; top: -110px; width: 186px; height: 80px; _width: 210px; _height: 104px; background-color:#090909; layer-background-color:#090909; padding: 10px; visibility: hidden">\n');document.writeln('<font color=#efefef style="line-height: 1.1;">Build: </font><select onchange="YC=this.options[this.selectedIndex].value;location.replace(buildurl());location.reload(true);">\n');for(D in versions){var E=versions[D];var A=versions[D];while(E.substr(0,1)==" "){E=E.substr(1)}var B=E.substr(0,E.indexOf(" "));if(ptrversion==B){A+=" &larr; PTR"}else{if(liveversion==B){A+=" &larr; Live"}else{if(E.substr(E.indexOf(" ")+2,1)!="0"){A+=" &larr;"}}}if(YC==B){document.writeln('<option selected value="'+B+'">'+A+"</option>\n")}else{document.writeln('<option value="'+B+'">'+A+"</option>\n")}}document.writeln("</select><br><br>\n");document.writeln('<a href="#" onclick="return false;" onmouseup="openimportmenu();"><font color=#efefef style="line-height: 1.1;">Import</font></a><br>');document.writeln('<a href="#" onclick="return false;" onmouseup="openexportmenu();"><font color=#efefef style="line-height: 1.1;">Export</font></a>');document.writeln("</div>\n");document.writeln("</div>\n");document.writeln('<div id="glyphmenu" style="position: absolute; z-index: 11; margin: 0 0; border: solid 2px #272727; left: '+(400+2)+'px; top: 200px; width: 286px; min-height: 120px; max-height: 1004px; _width: 310px; _height: 96px; background-color:#090909; layer-background-color:#090909; padding: 10px; visibility: hidden">\n');document.writeln('<font style="line-height: 1.1;"><font size=+1 color=#71d5ff><b>Select a glyph</b></font> <a href="#" onclick="return false;" onmouseup="document.getElementById(\'glyphmenu\').style.visibility = \'hidden\';"><font color=#cfcfcf style="line-height: 1.1;">[x]</font></a><div id="glyphmenutext"><hr>');document.writeln("</div></font>\n");document.writeln("</div>\n");document.writeln('<div id="exportmenu" style="position: absolute; z-index: 11; margin: 0 0; border: solid 2px #272727; left: '+(150+2)+'px; top: 200px; width: 686px; height: 158px; _width: 710px; _height: 182px; background-color:#090909; layer-background-color:#090909; padding: 10px; visibility: hidden">\n');document.writeln('<font style="line-height: 1.1;"><font size=+1 color=#71d5ff style="line-height: 1.1;"><b>Export</b></font> <a href="#" onclick="return false;" onmouseup="document.getElementById(\'exportmenu\').style.visibility = \'hidden\';"><font color=#cfcfcf style="line-height: 1.1;">[x]</font></a><hr><div id="exportmenutext">');document.writeln("</div></font>\n");document.writeln("</div>\n");document.writeln('<div id="importmenu" style="position: absolute; z-index: 11; margin: 0 0; border: solid 2px #272727; left: '+(200+2)+'px; top: 200px; width: 586px; height: 146px; _width: 610px; _height: 170px; background-color:#090909; layer-background-color:#090909; padding: 10px; visibility: hidden">\n');document.writeln('<font style="line-height: 1.1;"><font size=+1 color=#71d5ff style="line-height: 1.1;"><b>Import</b></font> <a href="#" onclick="return false;" onmouseup="document.getElementById(\'importmenu\').style.visibility = \'hidden\';"><font color=#cfcfcf style="line-height: 1.1;">[x]</font></a><hr>');document.writeln('<font color=#efefef>Input a URL and click Import:</font><br><br><form name="importform" onsubmit="return tryimporturl(document.getElementById(\'importurl\').value);"><input type="text" id="importurl" size=82 maxlength=500 /> <input type=submit value="Import" /><br></form>');document.writeln('<div id="importmenutext">');document.writeln("</div></font>\n");document.writeln("</div>\n");document.writeln("<div>\n");tsscZi=true}}function tssc2(A){var B;var C="";if(YC>0){C=""+YC+"/"}for(B=0;B<3;B++){document.getElementById("tf"+B).style.backgroundImage="url(img/"+C+"spell"+A+".jpg)";document.getElementById("tf"+B).style.backgroundPosition="-"+(B*39)+" 0";document.getElementById("tf2"+B).style.backgroundImage="url(img/"+C+"spell"+A+".jpg)";document.getElementById("tf2"+B).style.backgroundPosition="-"+(B*39)+" 0";tssc3(B)}}function tssc3(B){document.getElementById("tft"+B).innerHTML="<font size=-1 color=#ffffff><b>"+ZW[B]+":</b></font> <font size=-1 color=#1fff1f><b>"+ZV[B]+'</b></font>&nbsp;<a href="javascript:;" onmouseup="resettree('+B+');"><img border=0 align=top src="img/Interface/calc_reset.png"></a>';document.getElementById("tft2"+B).innerHTML="<font size=-1 color=#ffffff><b>"+ZW[B]+":</b></font> <font size=-1 color=#1fff1f><b>"+ZV[B]+'</b></font><br><div style="position: absolute; left: -2; width: 73; height: 10;"><a href="javascript:;" onmouseup="resettree('+B+');"><img border=0 align=bottom src="img/Interface/calc_reset.png"></a></div>';document.getElementById("sum1").innerHTML="Points left: <font color=#1fff1f><b>"+(MAX_TALENT_POINTS-(ZV[0]+ZV[1]+ZV[2]))+"</b></font>";document.getElementById("sum2").innerHTML="Points spent: <font color=#1fff1f><b>"+((ZV[0]+ZV[1]+ZV[2]))+"</b></font>";var A="-";if(ZV[0]+ZV[1]+ZV[2]>0){A=(ZV[0]+ZV[1]+ZV[2]+9)}document.getElementById("sum3").innerHTML="Required level: <font color=#1fff1f><b>"+A+"</b></font>";tssc4()}function tssc4(){var A;var B="";if(YC>0){B=""+YC+"/"}for(A=0;A<3;A++){if(g0[A]==0){document.getElementById("majorglyphi"+A).style.visibility="hidden";document.getElementById("mg0s"+A).style.visibility="visible";document.getElementById("mg0s"+A).style.backgroundPosition="0 0"}else{document.getElementById("majorglyphi"+A).style.backgroundImage="url(img/"+B+"spell"+ZC+".jpg)";document.getElementById("majorglyphi"+A).style.backgroundPosition="-"+(sg0sx[g0[A]]*39)+" -"+(sg0sy[g0[A]]*39*2);document.getElementById("majorglyphi"+A).style.visibility="visible";document.getElementById("mg0s"+A).style.backgroundPosition="-128 0"}if(g1[A]==0){document.getElementById("minorglyphi"+A).style.visibility="hidden";document.getElementById("mg1s"+A).style.visibility="visible";document.getElementById("mg1s"+A).style.backgroundPosition="0 0"}else{document.getElementById("minorglyphi"+A).style.backgroundImage="url(img/"+B+"spell"+ZC+".jpg)";document.getElementById("minorglyphi"+A).style.backgroundPosition="-"+(sg1sx[g1[A]]*39)+" -"+(sg1sy[g1[A]]*39*2);document.getElementById("minorglyphi"+A).style.visibility="visible";document.getElementById("mg1s"+A).style.backgroundPosition="-128 0"}document.getElementById("majorglypht"+A).innerHTML="<font size=-1>"+sg0tn[g0[A]]+"</font>";document.getElementById("minorglypht"+A).innerHTML="<font size=-1>"+sg1tn[g1[A]]+"</font>"}}function sc(B){ep=B*5;var C;ttp();ow1=document.body.clientWidth;var D=(ow1-appwidth)/2;if(D<0){D=0}document.getElementById("papertalent").style.left=talentpaneZD=D;if(B==-1){document.getElementById("talentbg").src="img/pleasewait.gif";ZZ(200);Ya(200);g0[0]=g0[1]=g0[2]=g1[0]=g1[1]=g1[2]=0}else{}if(B<0){return }ZC=B;getYC(window.location.href);var F="";if(YC>0){F=""+YC+"/"}document.getElementById("talentbg").src="img/talent"+B+".jpg";for(C=1;C<=200;C++){document.getElementById("t"+C).style.backgroundImage="url(img/"+F+"spell"+B+".jpg)"}document.getElementById("tfsummary").style.visibility="visible";document.getElementById("glyphs").style.visibility="visible";document.getElementById("util").style.visibility="visible";document.getElementById("c"+B).style.backgroundPosition="-"+(B*64)+" 0";document.getElementById("tc"+B).innerHTML="<center>"+Zzcolor[B]+"</center>";var A;try{A=new XMLHttpRequest()}catch(E){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(E){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){alert("Your browser does not support AJAX!");return false}}}A.onreadystatechange=function(){if(A.readyState==4){var G=A.responseText;f7=G.substr(0,7);G=G.substr(7);Yr(G)}};A.open("GET",tbase+"talents/"+F+B,true);A.send(null)}function ZZ(B){var A;for(A=1;A<=B;A++){document.writeln('<div class="arrow" id="ar'+A+'" style="visibility: hidden"></div>\n')}ZG=B}function Ya(B){var A;for(A=1;A<=B;A++){document.writeln('<div class="talent" id="t'+A+'" style="visibility: hidden"><div class="talenti" id="ti'+A+'"></div></div>\n');document.writeln('<div class="rank" id="tr'+A+'" style="visibility: hidden"><div id="r'+A+'">0</div></div>\n');if(!needtrans){document.writeln('<div id="mt'+A+'" style="position: absolute; z-index: 10; visibility: hidden; width: 58; height: 64"><img src="img/Interface/clear58.png" onmouseover="Yc(\''+A+"')\" onmouseout=\"Yb('"+A+"')\"></div>\n")}else{document.writeln('<div id="mt'+A+'" style="position: absolute; z-index: 10; visibility: hidden; width: 58; height: 64"><img src="img/spacer.gif" style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'img/Interface/clear58.png\', sizingMethod=\'scale\');" onmouseover="Yc(\''+A+"')\" onmouseout=\"Yb('"+A+"')\"></div>\n")}document.writeln('<div class="talentback" id="ts'+A+'" style="visibility: hidden"></div>\n')}ZH=B}document.onmousemove=Zc;document.onmouseup=Zk;document.oncontextmenu=Zl;window.onresize=ttp;
