function displayAd(){var a=$(this).attr("objectId");return $("#"+a).html()}function toggleLib(a,b){$.post(GOVOTE.toggleAdLib+"/"+b,function(c){a.innerHTML=c})}$(function(){$(document).mousemove(function(c){window.mouseXPos=c.pageX;window.mouseYPos=c.pageY});var a;var b={over:function(){window.clearInterval(a);$("img[rel*=popover]").each(function(){$(this).popover("hide")});$(this).popover("show")},out:function(){var c=$(this);a=window.setInterval(function(){var e=c.position();var j=c.width();var k=c.height();var i=window.mouseXPos;var f=window.mouseYPos;var d=true;var h=false;if((i<e.left||i>e.left+j)||(f<e.top||f>e.top+k)){d=false}if(!d){var g=$(".popover");if(g&&g.length>0){e=g.position();j=g.width();k=g.height();if((i<e.left||i>e.left+j)||(f<e.top||f>e.top+k)){window.clearInterval(a);$("img[rel*=popover]").each(function(){$(this).popover("hide")})}}}},500)},delay:3000};$("img[rel=popover-left]").popover({offset:0,placement:"left",html:true,trigger:"manual",content:displayAd}).click(function(c){}).hoverIntent(b);$("img[rel=popover-right]").popover({offset:0,placement:"right",html:true,trigger:"manual",content:displayAd}).click(function(c){}).hoverIntent(b)});
