this.imagePreview=function() {xOffset=100;yOffset=15;jQuery("a.preview").hover(function(e){if(window.innerWidth>768) {t=this.tmp=this.title;jQuery(this).attr('title2',t);this.title="";var desc=t.split('
');desc.pop();t=desc.join("
");var c=(t!="")?"
"+t:"";var str=this.href.split('/');var src=this.href;src=src.replace(str[str.length-1],'mini_'+str[str.length-1]);var tmpImg=new Image();tmpImg.src=src;jQuery("body").append("

Image preview"+c+"

");jQuery("#preview").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px").fadeIn("slow");tmpImg.onload=function(){jQuery("#preview").width(tmpImg.width);};}},function(){this.title=this.tmp;jQuery(this).removeAttr('title2');jQuery("#preview").remove();});jQuery("a.preview").mousemove(function(e){jQuery("#preview").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px");});};jQuery(document).ready(function($){imagePreview();});