(function(a){a.fn.jqueryzoom=function(b){var d={xzoom:200,yzoom:200,offset:10,position:"right"};if(b){a.extend(d,b)}var c="";a(this).hover(function(){var f=a(this).get(0).offsetLeft;var i=a(this).get(0).offsetTop;var h=a(this).get(0).offsetWidth;var e=a(this).get(0).offsetHeight;c=a(this).attr("alt");var g=c;a(this).attr("alt","");if(a("div.zoomdiv").get().length==0){a(this).after("<div class='zoomdiv'><img class='bigimg' src='"+g+"'/></div>")}if(d.position=="right"){leftpos=f+h+d.offset}else{leftpos=f-d.xzoom-d.offset}a("div.zoomdiv").css({top:i,left:leftpos});a("div.zoomdiv").width(d.xzoom);a("div.zoomdiv").height(d.yzoom);a("div.zoomdiv").show();a(document.body).mousemove(function(m){var n=a(".bigimg").get(0).offsetWidth;var l=a(".bigimg").get(0).offsetHeight;var j="x";var k="y";if(isNaN(k)|isNaN(j)){var k=Math.round(n/h);var j=Math.round(l/e)}mouse=new MouseEvent(m);scrolly=mouse.y-i-(a("div.zoomdiv").height()*1/j)/2;a("div.zoomdiv").get(0).scrollTop=scrolly*j;scrollx=mouse.x-f-(a("div.zoomdiv").width()*1/k)/2;a("div.zoomdiv").get(0).scrollLeft=(scrollx)*k})},function(){a(this).attr("alt",c);a("div.zoomdiv").hide();a(document.body).unbind("mousemove");a(".lenszoom").remove();a("div.zoomdiv").remove()})}})(jQuery);function MouseEvent(a){this.x=a.pageX;this.y=a.pageY};
