window.T=function(a,c){if(window==this||!this.init)return new T(a,c);return this.init(a,c);};T.p=T.prototype;T.p.T=1;T.fn=function(fn){if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+"}");return fn;};T.grep=function(l,fn,n){fn=T.fn(fn);var r=[];for(var i=0,il=l.length;i<il;i++){var t=fn.call(l[i],i);if(t&&!n||!t&&n)r.push(l[i]);}return r;};T.p.grep=function(f,n){return T(T.grep(this.a,f,n));};T.p.id=function(id){return this.grep("this.id='"+id+"'");};T.p.init=function(a,c){if(!a){this.a=[];return this;}if(typeof a=="string"){var o=a.substring(0,1);if(o=='#'){a=a.substring(1);if(c){return T('*',c).id(a);}else{var tmp=document.getElementById(a);if(tmp){if(tmp.id!=a){return T('*').id(a);}else{a=[tmp];}}else{a=[];}this.a=a;}}else if(o=='.'){return T('*',c).grepclass(a.substring(1));}else{c=c||document;this.a=c.getElementsByTagName(a);}}else{this.a=a.a?a.a:a.length?a:[a];}return this;};T.Loading="<img src='http://i.thottbot.com/im/loading.gif' alt='Loading...' width=16 height=16>";T.p.Event=function(e,fn){fn=T.fn(fn);for(var a=this.a,d=document,i=a.length-1;i>=0;i--){if(d.addEventListener){a[i].addEventListener(e,fn,false);}else if(d.attachEvent){a[i].attachEvent('on'+e,fn);}}return this;};T.p.UnEvent=function(e,fn){fn=T.fn(fn);for(var a=this.a,d=document,i=a.length-1;i>=0;i--){if(d.removeEventListener){a[i].removeEventListener(e,fn,false);}else if(d.detachEvent){a[i].detachEvent('on'+e,fn);}}return this;};T.Merge=function(a,b,f){for(x in b){if(typeof b[x]=='object'&&!f){if(!a[x])a[x]={};T.Merge(a[x],b[x]);}else{a[x]=b[x];}}return a;};T.Create=function(s,b,c){var d=document,e=d.createElement(s);if(b)T.Merge(e,b);if(c)d.body.appendChild(e);return e;};T.each=function(l,fn){fn=T.fn(fn);var il;if(il=l.length)for(var i=0;i<il;i++)fn.call(l[i],i); else for(var i in l)fn.call(i);return l;};T.p.each=function(fn){T.each(this.a,fn);return this;};T.p.AppendTo=function(e){var a=this.a;for(var i=0,il=a.length;i<il;i++)e.appendChild(a[i]);return this;};T.ttdiv=function(e){return T.ttdiv.d=(e||T.ttdiv.d||T.Create("div",{style:{position:'absolute',zIndex:1000,display:'none'}},true));};T.ttframe=function(e){return T.ttframe.d=(e||T.ttframe.d||T.Create("iframe",{style:{position:'absolute',zIndex:1000,display:'none'}},true));};T.mousexy=function(e){var w=window;e=e||w.event;if(w.innerHeight)return{x:e.pageX,y:e.pageY};var d=document,de=d.documentElement,b=d.body;return{x:e.clientX+b.scrollLeft+de.scrollLeft,y:e.clientY+b.scrollTop+de.scrollTop};};T.viewport=function(){var d=document,de=d.documentElement,W=window,b=d.body;if(W.innerHeight){var w=W.innerWidth,h=W.innerHeight,xo=W.pageXOffset,yo=W.pageYOffset;return{minx:xo,miny:yo,maxx:xo+w,maxy:yo+h};}var l=b.scrollLeft,t=b.scrollTop,w=b.clientWidth,h=b.clientHeight;if(typeof(de.scrollTop)=='number'){l+=de.scrollLeft;t+=de.scrollTop;}return{minx:l,miny:t,maxx:w+l,maxy:h+t};};T.tto=function(x,y){T.ttoo=[x,y];};T.ttoo=[30,false];T.tt=function(el,e,p,x,y){var d,m,v,s,w,h;if(p.substr(0,5)=="http:"){d=T.ttframe();d.innerHTML=T.Loading;d.src=p;}else{var o=p.substring(0,1);d=T.ttdiv();if(o=="."){p=T.tt[p.substring(1)];}else if(o=='+'){var u=p.substring(1);if(T.tt[u]){p=T.tt[u];}else{p=T.Loading;if(!T.ttload.l[u]){T.ttload.u=u;T.ttload.l[u]=true;T.Create("script",{src:u},true);if(T.tt[u]){p=T.tt[u];}d.e=T.Merge({},e,1);}}}else if(o=='['&&(m=p.match(/\[([-\d]*),([-\d]*)\](.*)/))){return T.tt(el,e,m[3],parseInt(m[1]),parseInt(m[2]));}else if(o=='#'){p=T(p).a[0].innerHTML;}else if(o!='<'){p=T.tt.pre+p+T.tt.post;}d.innerHTML=p;}m=T.mousexy(e);v=T.viewport();s=d.style;if(!x&&!y){x=T.ttoo[0];y=T.ttoo[1];}s.top=(m.y+(y?y:0))+'px';s.left=(m.x+(x?x:0))+'px';s.display="";w=d.clientWidth;h=d.clientHeight;if(!x){x=-parseInt(w/2);}else if(!y){y=-parseInt(h*1/4);}x+=m.x;y+=m.y;function O(){return(x<=m.x&&x+w>=m.x&&y<=m.y&&y+h>=m.y);}if(x+w>v.maxx){x=v.maxx-w;if(O())x=m.x-w-15;}else if(x<v.minx){x=v.minx;if(O())x=m.x+15;}if(y+h>v.maxy){y=v.maxy-h;if(O())y=m.y-h-5;}else if(y<v.miny){y=v.miny;if(O())y=m.y+5;}s.top=y+'px';s.left=x+'px';if(el)el.onmouseout=function(){s.display='none';T.ttload.u=null};};T.ttload=function(u,t){T.tt[u]=t;var d=T.ttdiv();if(d&&T.ttload.u&&T.ttload.u==u){T.tt(null,d.e,t);}};T.ttload.l={};T.tt.pre="<div class=\"tt\">";T.tt.post="</div>";T.ttg=function(e){if(T.ttg.prefunc)T.ttg.prefunc(e);e=e||window.event;var el=e.target||e.srcElement;var tt=el.getAttribute('tt');if(tt){if(tt.substring(0,1)=="!")T.tt(el,e,tt.substring(1)); else if(!T.ttg.to){var ee=T.Merge({},e,1);T.ttg.to=setTimeout(function(){T.tt(el,ee,tt,10,10);T.ttg.to=false;},T.ttg.delay);}}else{if(T.ttg.to){clearTimeout(T.ttg.to);T.ttg.to=false;}}};T.ttg.delay=500;T(document).Event('',T.ttg);T.fixlinks=true;T.strict=false;T.ttg.prefunc=function(e){e=e||window.event;var el=e.target||e.srcElement;var tt=el.getAttribute('tt'),h,m,n,u;if(tt)return;if(el.href){h=el.href.replace(/(?:www\.|)thot(?:t|)bot(?:t|)\.(?:com|org|net)/i,"thottbot.com");m=h.match(/thottbot.com\/([a-z_\/]*\/|)(\?it=|i|s)(\d+)/);n=T.strict?null:h.match(/(\?item=|\?witem=|items\/.*-id)(\d+)/);if(m&&m[3])u=m[1]+m[2]+m[3]; else if(n&&n[2])if(typeof $WowheadPower=="undefined"||n[1]!='item=')u='i'+n[2];if(u){u='http://thottbot.com/'+u;el.setAttribute('tt','!+'+u+(u.indexOf('?i=')<0?'/T':';T=1'));if(el.href.indexOf('thottbot')<0&&T.fixlinks)el.href=u;T.cssload();}}};T.cssload=function(){if(!T.cssloaded){T.cssloaded=true;T.Create("link",{rel:'stylesheet',href:"http://i.thottbot.com/css/power.css",type:"text/css"},1);}};T.sbox=function(i){document.write("<form method='GET' action='http://thottbot.com/'><a href='http://thottbot.com/'><img src='http://i.thottbot.com/"+i+"small.jpg' border=0></a><br><input type='text' name='s' style='width:124px;color:#888' onfocus='T.sba(this)' value='Search Thottbot'><input type='submit' value='>' style='width:16px'></form>");};T.searchbox=function(){return T.sbox('Thottbot');};T.twinbox=function(){return T.sbox('im/evil');};T.sba=function(el){el.onfocus=null;el.value='';el.style.color='';};