var oLinkerParentNode=null,bLinkerBlocked=false;Linkers.initLoading();var DofusLinker=function(){};DofusLinker.Item=function(d,f){var b=Linkers.fCoordX,a=Linkers.fCoordY;d.removeAttribute("href");var c=800;if(!bLinkerBlocked&&oLinkerParentNode==d.parentNode){c=150}var e=setTimeout(function(){DofusLinker.ShowItem(d,f,b,a)},c);d.onmouseout=function(){clearTimeout(e)};d.onclick=function(){bLinkerBlocked=true}};DofusLinker.ShowItem=function(c,f,b,a){var e=0;var d=0;if(typeof window.innerWidth!="undefined"){e=(window.innerWidth/2)-320;d=a+20}else{if(document.documentElement.clientWidth>0){e=(document.documentElement.clientWidth/2)-320;d=a+document.body.scrollTop+13}else{e=b+document.body.scrollLeft;d=a+document.body.scrollTop}}var g=new Linkers.Linker();g.Request("dofus/item?item_id="+encodeURIComponent(f),function(){g.Show("dofusitem",e,d,function(){bLinkerBlocked=false;oLinkerParentNode=c.parentNode;if(navigator.appName!="Microsoft Internet Explorer"&&a>=(window.innerHeight*3/4)&&(a-document.documentElement.scrollTop-document.body.scrollTop)>=(window.innerHeight*1/4)){YAHOO.util.Dom.setStyle("dofusitem","top",(a-YAHOO.util.Dom.get("dofusitem").offsetHeight-15)+"px")}})},null,null)};DofusLinker.Monster=function(e,f){var c=Linkers.fCoordX,b=Linkers.fCoordY;e.removeAttribute("href");var d=800;if(!bLinkerBlocked&&oLinkerParentNode==e.parentNode){d=150}var a=setTimeout(function(){DofusLinker.ShowMonster(e,f,c,b)},d);e.onmouseout=function(){clearTimeout(a)};e.onclick=function(){bLinkerBlocked=true}};DofusLinker.ShowMonster=function(c,f,b,a){var e=0;var d=0;if(typeof window.innerWidth!="undefined"){e=(window.innerWidth/2)-320;d=a+20}else{if(document.documentElement.clientWidth>0){e=(document.documentElement.clientWidth/2)-320;d=a+document.body.scrollTop+13}else{e=b+document.body.scrollLeft;d=a+document.body.scrollTop}}var g=new Linkers.Linker();g.Request("dofus/monster?monster_id="+encodeURIComponent(f)+"&l="+sLinkerLanguage,function(){g.Show("dofusitem",e,d,function(){bLinkerBlocked=false;oLinkerParentNode=c.parentNode;if(navigator.appName!="Microsoft Internet Explorer"&&a>=(window.innerHeight*3/4)&&(a-document.documentElement.scrollTop-document.body.scrollTop)>=(window.innerHeight*1/4)){YAHOO.util.Dom.setStyle("dofusitem","top",(a-YAHOO.util.Dom.get("dofusitem").offsetHeight-15)+"px")}})},null,null)};
