!function(_){_.fn.easyzoom=function(u){var g,f,d,e,o,i,n,w,v,r=!1,h=!0,z=!1;u=_.extend({id:"easy_zoom",zoomid:"",parent:"body",append:!0,preload:"loading...",error:"there has been a problem with loading the image."},u);function a(t){z=!0,_(f).css({position:"absolute",top:"0",left:"0"}),_("#"+u.id).html("").append(f),e=_("img",g).width(),i=_("img",g).height(),o=_("#"+u.id).width(),n=_("#"+u.id).height(),w3=_(f).width(),h3=_(f).height(),w4=_(f).width()-o,h4=_(f).height()-n,w4/e,h4/i,s(t)}function p(t){z=!1,_("#"+u.id).remove(),_(t.target).parent().find(".p_zoom").addclass("item_hide")}function s(t){if(z){var e=_(_(g).closest(".picture")),o=_("img",g),i=_(t.target).find(".p_zoom");i.length<=0&&(i=_(t.target).parent().find(".p_zoom"));var n,d=math.min(e.width(),o.width()),r=math.max(e.position().left,o.position().left),h=math.max(e.offset().left,o.offset().left);n=t.clientxd+h-i.outerwidth()/2?d+r-i.outerwidth():t.clientx-e.offset().left-i.outerwidth()/2,i.css({left:n});var a,s=math.min(e.outerheight(),o.outerheight()),f=math.max(e.position().top,o.position().top),p=math.max(e.offset().top,o.offset().top);a=t.clienty+_(document).scrolltop()s+p-i.outerheight()/2?s+f-i.outerheight():t.clienty-e.offset().top-i.outerheight()/2+_(document).scrolltop(),i.css({top:a});var c=o.offset(),l=(i.offset().left-c.left)/o.outerwidth()*w,m=(i.offset().top-c.top)/o.outerheight()*v;_("#"+u.id+" img").css({left:-l,top:-m})}}this.each(function(){if("a"==(g=this).tagname.tolowercase()){f=new image;var t=_(this).attr("imghref");"/"==t.substr(0,1)||/^http/.test(t)?f.src=t:f.src=getimgrepositoryhost()+"/"+t,_(f).error(function(){h=!1}),f.onload=function(){r=!0,f.onload=function(){}},0!=_(g).find("img").length&&_(this).css("cursor","move").mouseover(function(t){!function n(t){p(t),_(t.target).parent().find(".p_zoom").removeclass("item_hide");var e=_('
'+u.preload+"
");u.append?e.appendto(u.parent):e.prependto(u.parent);!function s(t){var e,o=_(t.target),i=function a(t){var e,o,t=t||window.event,i=document.documentelement.scrollleft||document.body.scrollleft,n=document.documentelement.scrolltop||document.body.scrolltop,d=t.pagex||t.clientx+i,r=t.pagey||t.clienty+n,h=_(t.target);o=0=o&&(r=o);return{x:d,y:r}}(t),n=_('
');n.css({top:i.x-90,left:i.y-90}),e=0