// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// @license: Mad4Media Javascipt License - copyright Mad4Media - Fahrettin Kutyol - All rights reserved    ++
// (re-) publishing or forking for any purpose of commercial or non-commercial use is not allowed.		   ++
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
var MTopInfo={node:null,infoNode:null,nodeStyle:null,edge:null,init:function(){this.node=document.createElement("DIV");this.node.className="topInfo";this.infoNode=document.createElement("DIV");this.infoNode.className="info";var _1=document.createElement("DIV");_1.className="edge";this.node.appendChild(this.infoNode);this.node.appendChild(_1);this.edge=_1;this.nodeStyle=this.node.style;this.nodeStyle.left="-9999em";document.body.appendChild(this.node);},parse:function(_2){_2=_2||document.body;dojo.query("*[data-top-info]",_2).forEach(function(_3){dojo.connect(_3,"mouseover",function(_4){MTopInfo.mouseover(this);});dojo.connect(_3,"mouseout",function(_5){MTopInfo.mouseout(this);});_3.setTopInfo=function(_6){this.setAttribute("data-top-info",_6);};_3.getTopInfo=function(){return this.getAttribute("data-top-info");};_3.stopTopInfo=function(){this.setAttribute("data-top-info-stop",true);};_3.enableTopInfo=function(){this.setAttribute("data-top-info-stop","");};});},mouseover:function(_7){if(_7.getAttribute("data-top-info-stop")){return;}this.nodeStyle.left="-9999em";this.infoNode.innerHTML=_7.getTopInfo();var _8=_Dimensions(this.infoNode);var _9=_ViewportOffset(_7,false);var _a=_9.t-_8.height-16;var _b=_9.l-((_8.width-_9.w)/2);if(_b<0){var _c=_b;_b=0;this.edge.style.marginLeft=_c+"px";}else{this.edge.style.marginLeft="";}this.nodeStyle.top=_a+"px";this.nodeStyle.left=_b+"px";},mouseout:function(_d){this.nodeStyle.left="-9999em";}};dojo.addOnLoad(function(){MTopInfo.init();});