function fhNoConflict(){window.jQuery&&document.body?jQuery.noConflict():setTimeout(fhNoConflict,3)}window.jQuery||(document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"><\/script>'),fhNoConflict());
function loadFhTooltip(){window.jQuery&&document.body?function(h){fhTooltip=new function(){function q(a,b){if("A"!=a.nodeName||0==a.href.length&&0==a.rel.length||-1!=a.href.indexOf("#")&&-1!=a.href.indexOf(location.href.replace(/#.*/,""))||-1!=a.rel.indexOf("nott"))return!1;var c=h(a);if(c.parents("nav").length||c.parents("#subheader").length)return!1;var d;if(0==a.rel.indexOf("ttcustom"))"none"!=b&&(i=b),c.parent(".th-icon").length?(e=a.parentNode,g=1):g=e=0;else if(0==a.rel.indexOf("tt:")){var f=
a.rel.replace(/^tt:/,"");"none"!=b&&(j=f,i=b);c.parent(".th-icon").length?(e=a.parentNode,g=1):g=e=0;l("http://"+window.location.hostname,f)}else if(d=a.href.match(/^(http:\/\/[^\/]+)(\/(item|npc|ability|schematic|class)\/([^\/]+))/))f=d[2].replace("/detail/","").replace(/#.*/,""),"none"!=b&&(j=f,i=b),c.parent(".th-icon").length?(e=a.parentNode,g=1):g=e=0,l(d[1],f);else if(c.attr("data-tooltip"))"none"!=b&&(i=b),c.parent(".th-icon").length?(e=a.parentNode,g=1):g=e=0,fhTooltip.showTooltip('<div class="fhtt swtor float"><table><tbody><tr><td colspan="2"><div class="thtt-cont">'+
c.attr("data-tooltip")+'<div class="thtt-cont-cap"></div></div></td></tr><tr><th>&nbsp;</th><th class="r">&nbsp;</th></tr></tbody></table></div>');else return!1;if(!a.fhEvents)a.fhEvents=1,c.mousemove(m).mouseout(function(){j=0;h("#headtt").remove();e=0});return!0}function l(a,b){if(k[b])n(b);else{var c=document.createElement("script");c.type="text/javascript";c.src=a+b+"/tooltip";document.head?document.head.appendChild(c):document.body.appendChild(c)}}function n(a){j==a&&"Unavailable"!=k[a].substring(0,
11)&&fhTooltip.showTooltip(k[a])}function m(a){"undefined"==typeof a&&(a=i);var b=h("#headtt");if(b.length){if(e){var c=h(e).offset(),d=c.left+e.offsetWidth+"px",f=c.top-b.height()+"px";b.css({left:d,top:f,right:"auto"});d=o(a,b);if(d.x||d.y)d.y&&b.css({top:c.top+e.offsetHeight+"px"}),d.x&&b.css({left:"auto",right:p().r-c.left+"px"})}else if(d=a.pageX+6+"px",f=a.pageY-b.height()-6+"px",b.css({left:d,top:f,right:"auto"}),d=o(a,b),d.x||d.y)d.y&&b.css({top:a.pageY+20+"px"}),d.x&&b.css({left:"auto",right:d.x+
6+"px"});b.css("display","block")}}function o(a,b){var c,d=0,f=p();if(e){var g=h(e).offset();g.top-b.height()<f.t&&(d=1);g.left+e.offsetWidth+b.width()+1>f.r&&(c=1);return{x:c,y:d}}a.pageY-b.height()-6<f.t&&(d=1);a.pageX+b.width()+7>f.r&&(c=f.r-a.pageX);return{x:c,y:d}}function p(){var a=h(window),b=a.scrollLeft(),c=a.scrollTop();return{l:b,t:c,r:b+a.width(),b:c+a.height()}}var i="",k=[],j=0,e=0,g=0;this.init=function(){if("undefined"==typeof FH){var a=document.createElement("link");a.rel="stylesheet";
a.type="text/css";a.href="http://tor.zamimg.com/tooltips.css";document.head?document.head.appendChild(a):document.body.appendChild(a)}0==h("#headjs").length&&h("body").prepend('<div id="headjs" style="left:0;position:absolute;right:0;top:0;z-index:999999999">');h(document).mouseover(fhTooltip.mouseOver).mousemove(fhTooltip.mouseOut)};this.mouseOver=function(a){for(var b=a.target?a.target:a.srcElement,c=0;null!=b&&5>c&&!q(b,a);)b=b.parentNode,++c};this.mouseOut=function(a){i=a};this.store=function(a,
b){k[a]=b;n(a)};this.showTooltip=function(a){var b=g?' class="hide-icon"':"";h("#headjs").html('<div id="headtt"'+b+' style="display:none;position:absolute;z-index:99999999999">'+a+"</div>");m()}};fhTooltip.init()}(jQuery):setTimeout(loadFhTooltip,20)}loadFhTooltip();

