var screenshotinterval;function createScreenShot(a,c,b){$("body").append(a);$("#screenshot").css("top",b+"px").css("left",c+"px").fadeIn("fast")}
this.screenshotPreview=function(){xOffset=30;yOffset=120;$("a.screenshot").live("mouseover mouseout mousemove",function(a){if("mouseover"===a.type){var c="",b="",b="";""!==$(this).attr("title")&&(c="<br/>"+$(this).attr("title"));void 0!==$(this).attr("data-href")&&""!==$(this).attr("data-href")&&(b="http:"===$(this).attr("data-href").substr(0,5).toLowerCase()?$(this).attr("data-href"):cStaticPathSite+$(this).attr("data-href"),leftCorr=0,-1===$(this).attr("data-href").indexOf("/image/dj")&&(c=""),
-1<$(this).attr("data-href").indexOf("/image/dj")&&a.pageX+380>$(window).width()?leftCorr=-480:a.pageX+140>$(window).width()&&(leftCorr=-240),""===$(this).attr("data-href")||"nofollow"===$(this).attr("rel")||(b='<p id="screenshot" style="display:none;"><img id="myscreenshot" src="'+b+'" alt="url preview" />'+c+"</p>",c=a.pageY-yOffset,a=a.pageX+leftCorr+xOffset,clearInterval(screenshotinterval),screenshotinterval=setTimeout("createScreenShot('"+b+"', "+a+","+c+")",200)))}else"mouseout"===a.type?(clearInterval(screenshotinterval),
$("#screenshot").remove()):"mousemove"===a.type&&(b=$(window).scrollTop(),top_pos=b+yOffset>=a.pageY?b:a.pageY-yOffset,leftCorr=xOffset,void 0!==$(this).attr("data-href")&&(-1<$(this).attr("data-href").indexOf("/image/dj")&&a.pageX+380>$(window).width()?leftCorr=-480:a.pageX+140>$(window).width()&&(leftCorr=-240),$("#screenshot").css("top",top_pos+"px").css("left",a.pageX+leftCorr+"px")))})};$(document).ready(function(){screenshotPreview()});
