var magicJS={ version:"1.0.0", var_F:function(){}, defined:function(o) { return(undefined!=o) }, exists:function(o) { return!!(o) }, j1:function(o) { if(!var_J.defined(o)) { return false } if((o instanceof window.Object||o instanceof window.Function)&&o.constructor===var_J.Class) { return"class" } if(o instanceof window.Array) { return"array" } if(o instanceof window.Function) { return"function" } if(o instanceof window.String) { return"string" } if(var_J.v.trident) { if(var_J.defined(o.cancelBubble)) { return"event" } } else { if(o instanceof window.Event||o===window.event) { return"event" } }if(o instanceof window.Date) { return"date" } if(o instanceof window.RegExp) { return"regexp" } if(o===window) { return"window" } if(o===document) { return"document" } if(o.length&&o.item) { return"collection" } if(o.length&&o.callee) { return"arguments" } if(!!o.nodeType) { if(1==o.nodeType) { return"element" } if(3==o.nodeType) { return"textnode" } } return typeof(o) }, extend:function(o,p){if(!magicJS.defined(o)){return o}for(var k in(p||{})){o[k]=p[k]}return o},implement:function(o,p){if(!(o instanceof window.Array)){o=[o]}for(var i=0,l=o.length;i_1d.offsetWidth)?_1d.scrollWidth:(var_J.v.trident&&var_J.v.backCompat)?_1d.scrollWidth:_1d.offsetWidth;_17=(window.innerHeight&&window.scrollMaxY)?window.innerHeight+window.scrollMaxY:(_1d.scrollHeight>_1d.offsetHeight)?_1d.scrollHeight:_1d.offsetHeight;var _1e,_1f;_1e=var_J.v.trident?_1c.scrollWidth:(document.documentElement.clientWidth||self.innerWidth),_1f=var_J.v.trident?_1c.clientHeight:(document.documentElement.clientHeight||self.innerHeight);_1a=(self.pageXOffset)?self.pageXOffset:_1c.scrollLeft;_1b=(self.pageYOffset)?self.pageYOffset:_1c.scrollTop;_18=(_17<_1f)?_1f:_17;_19=(_16<_1e)?_1e:_16;return{"pageWidth":_19,"pageHeight":_18,"width":var_J.v.trident?_1c.clientWidth:(document.documentElement.clientWidth||self.innerWidth),"height":var_J.v.trident?_1c.clientHeight:(var_J.v.opera)?self.innerHeight:(self.innerHeight||document.documentElement.clientHeight),"scrollX":_1a,"scrollY":_1b,"viewWidth":_16,"viewHeight":_17}},var_:function(o){switch(var_J.j1(o)){case"string":var el=document.getElementById(o);if(var_J.defined(el)){return var_J.var_(el)}o=null;break;case"window":case"document":o=var_J.extend(o,var_J.Event.Functions);o=var_J.extend(o,var_J.Doc);break;case"element":o=var_J.extend(o,var_J.Element);o=var_J.extend(o,var_J.Event.Functions);break;case"event":o=var_J.extend(o,var_J.Event.Methods);break;case"function":case"array":case"date":default:break}return o},var_new:function(tag,_23,css){return var_j(document.createElement(tag)).setProps(_23).p(css)}};window.var_J=magicJS;window.var_j=magicJS.var_;magicJS.implement(Array,{indexOf:function(_25,_26){var len=this.length;for(var l=this.length,i=(_26<0)?Math.max(0,l+_26):_26||0;i-1}});magicJS.v={features:{xpath:!!(document.evaluate),air:!!(window.runtime)},engine:(window.opera)?"presto":(window.attachEvent)?"trident":(!navigator.taintEnabled)?"webkit":(null!=document.getBoxObjectFor)?"gecko":"unknown",version:"",platform:(magicJS.defined(window.orientation))?"ipod":(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),backCompat:document.compatMode&&"backcompat"==document.compatMode.toLowerCase(),getDoc:function(){return(document.compatMode&&"backcompat"==document.compatMode.toLowerCase())?document.body:document.documentElement},domLoaded:false};(function(){magicJS.v.version=("presto"==magicJS.v.engine)?((document.getElementsByClassName)?950:925):("trident"==magicJS.v.engine)?!!(window.XMLHttpRequest&&window.postMessage)?6:((window.XMLHttpRequest)?5:4):("webkit"==magicJS.v.engine)?((magicJS.v.features.xpath)?420:419):("gecko"==magicJS.v.engine)?((document.getElementsByClassName)?19:18):"";magicJS.v[magicJS.v.engine]=magicJS.v[magicJS.v.engine+magicJS.v.version]=true})();magicJS.Element={j13:function(_41){return this.className.has(_41," ")},j2:function(_42){if(!this.j13(_42)){this.className+=(this.className?" ":"")+_42}return this},j3:function(_43){this.className=this.className.replace(new RegExp("(^|\\s)"+_43+"(?:\\s|var_)"),"var_1").j19();return this},j4:function(_44){return this.j13(_44)?this.j3(_44):this.j2(_44)},j5:function(_45){_45=_45=="float"?"cssFloat":_45.k();var val=this.style[_45];if(!val&&document.defaultView){var css=document.defaultView.getComputedStyle(this,null);val=css?css[_45]:null}else{if(!val&&this.currentStyle){val=this.currentStyle[_45]}}if("opacity"==_45){return var_J.defined(val)?parseFloat(val):1}if(/^(border(Top|Bottom|Left|Right)Width)|((padding|margin)(Top|Bottom|Left|Right))var_/.test(_45)){val=parseInt(val)?val:"0px"}return("auto"==val?null:val)},p:function(_48){for(var s in _48){try{if("opacity"==s){this.g(_48[s]);continue}if("float"==s){this.style[("undefined"===typeof(this.style.styleFloat))?"cssFloat":"styleFloat"]=_48[s];continue}this.style[s.k()]=_48[s]+(("number"==var_J.j1(_48[s])&&!["zIndex","zoom"].contains(s.k()))?"px":"")}catch(e){}}return this}, g:function(op){op=parseFloat(op);if(op==0) { if("hidden"!=this.style.visibility){this.style.visibility="hidden"}}else{if(op>1){op=parseFloat(op/100)}if("visible"!=this.style.visibility){this.style.visibility="visible"}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1}if(var_J.v.trident){this.style.filter=(1==op)?"":"alpha(opacity="+op*100+")"}this.style.opacity=op;return this},s:function(){return this.p({"display":"none","visibility":"hidden"})},j27:function(){return this.p({"display":"block","visibility":"visible"})},j7:function(){return{"width":this.offsetWidth,"height":this.offsetHeight}},j10:function(){return{"top":this.scrollTop,"left":this.scrollLeft}},j11:function(){var el=this,p={"top":0,"left":0};do{p.left+=el.scrollLeft||0;p.top+=el.scrollTop||0;el=el.parentNode}while(el);return p},j8:function(){if(var_J.defined(document.documentElement.getBoundingClientRect)){var b=this.getBoundingClientRect(),_4e=var_j(document).j10(),doc=var_J.v.getDoc();return{"top":b.top+_4e.y-doc.clientTop,"left":b.left+_4e.x-doc.clientLeft}}var el=this,l=t=0;do{l+=el.offsetLeft||0;t+=el.offsetTop||0;el=el.offsetParent}while(el&&!(/^(?:body|html)var_/i).test(el.tagName));return{"top":t,"left":l}},j9:function(){var p=this.j8();var s=this.j7();return{"top":p.top,"bottom":p.top+s.height,"left":p.left,"right":p.left+s.width}},update:function(c){try{this.innerHTML=c}catch(e){this.innerText=c}return this},remove:function(){return(this.parentNode)?this.parentNode.removeChild(this):this}};magicJS.Element.j30=magicJS.Element.j5;magicJS.Element.j31=magicJS.Element.p;magicJS.Doc={j7:function(){if(var_J.v.presto||var_J.v.webkit){return{"width":self.innerWidth,"height":self.innerHeight}}return{"width":var_J.v.getDoc().clientWidth,"height":var_J.v.getDoc().clientHeight}},j10:function(){return{"x":self.pageXOffset||var_J.v.getDoc().scrollLeft,"y":self.pageYOffset||var_J.v.getDoc().scrollTop}},j12:function(){var s=this.j7();return{"width":Math.max(var_J.v.getDoc().scrollWidth,s.width),"height":Math.max(var_J.v.getDoc().scrollHeight,s.height)}}};magicJS.Event={Methods:{stop:function(){if(this.stopPropagation){this.stopPropagation()}else{this.cancelBubble=true}if(this.preventDefault){this.preventDefault()}else{this.returnValue=false}return this},j15:function(){return{"x":this.pageX||this.clientX+var_J.v.getDoc().scrollLeft,"y":this.pageY||this.clientY+var_J.v.getDoc().scrollTop}},getTarget:function(){var t=this.target||this.srcElement;while(t&&t.nodeType==3){t=t.parentNode}return t},getRelated:function(){var r=null;switch(this.type){case"mouseover":r=this.relatedTarget||this.fromElement;break;case"mouseout":r=this.relatedTarget||this.toElement;break;default:return r}while(r&&r.nodeType==3){r=r.parentNode}return r}},Functions:{a:function(evt,_59){if(this===document&&"domready"==evt){if(var_J.v.domLoaded){_59.call(this);return}var_J.onDomReadyList.push(_59);if(var_J.onDomReadyList.length<=1){var_J.bindDomReady()}}if(this.addEventListener){this.addEventListener(evt,_59,false)}else{this.attachEvent("on"+evt,_59)}},j26:function(evt,_5b){if(this.removeEventListener){this.removeEventListener(evt,_5b,false)}else{this.detachEvent("on"+evt,_5b)}},fire:function(_5c,_5d){var el=this;if(el===document&&document.createEvent&&!el.dispatchEvent){el=document.documentElement}var evt;if(document.createEvent){evt=document.createEvent(_5c);evt.initEvent(_5d,true,true)}else{evt=document.createEventObject();evt.eventType=_5c}if(document.createEvent){el.dispatchEvent(evt)}else{el.fireEvent("on"+evName,evt)}return evt}}};magicJS.extend(magicJS,{onDomReadyList:[],onDomReadyTimer:null,onDomReady:function(){if(var_J.v.domLoaded){return}var_J.v.domLoaded=true;if(var_J.onDomReadyTimer){clearTimeout(var_J.onDomReadyTimer);var_J.onDomReadyTimer=null}for(var i=0,l=var_J.onDomReadyList.length;i=this.finishTime){if(this.timer){clearInterval(this.timer);this.timer=false}this.render(1);setTimeout(this.z.onComplete,10);return this}var dx=this.z.transition((now-this.startTime)/this.z.duration);this.render(dx)},render:function(dx){var _8a={};for(var s in this.styles){if("opacity"===s){_8a[s]=Math.round(this.calc(this.styles[s][0],this.styles[s][1],dx)*100)/100}else{_8a[s]=Math.round(this.calc(this.styles[s][0],this.styles[s][1],dx))}}this.z.onBeforeRender(_8a);this.el.p(_8a)}});magicJS.FX.Transition={linear:function(x){return x},sin:function(x){return-(Math.cos(Math.PI*x)-1)/2},quadIn:function(p){return Math.pow(p,2)},quadOut:function(p){return 1-MagicTools.Transition.quadIn(1-p)},cubicIn:function(p){return Math.pow(p,3)},cubicOut:function(p){return 1-MagicTools.Transition.cubicIn(1-p)},backIn:function(p,x){x=x||1.618;return Math.pow(p,2)*((x+1)*p-x)},backOut:function(p,x){return 1-MagicTools.Transition.backIn(1-p)},elastic:function(p,x){x=x||[];return Math.pow(2,10*--p)*Math.cos(20*p*Math.PI*(x[0]||1)/3)},none:function(x){return 0}};var_J.var_Ff=function(){return false}; var MagicZoom={ version:"3.0",defaults: { opacity:50, opacityReverse:false, smoothingSpeed:40, fps:25, zoomWidth:300, zoomHeight:300, zoomDistance:15, zoomPosition:"right", dragMode:false, moveOnClick:false, alwaysShowZoom:false, preservePosition:false, x:-1, y:-1, clickToActivate:false, clickToInitialize:false, smoothing:true, showTitle:true, thumbChange:"click", zoomFade:false, zoomFadeInSpeed:400, zoomFadeOutSpeed:200, hotspots:"", preloadSelectorsSmall:true, preloadSelectorsBig:false, showLoading:true, loadingMsg:"Loading zoom..", loadingOpacity:75, loadingPositionX:-1, loadingPositionY:-1, selectorsMouseoverDelay:200, fitZoomWindow:true}, z40:[/^(opacity)(\s+)?:(\s+)?(\d+)$/i,/^(opacity-reverse)(\s+)?:(\s+)?(true|false)$/i,/^(smoothing\-speed)(\s+)?:(\s+)?(\d+)$/i,/^(fps)(\s+)?:(\s+)?(\d+)$/i,/^(zoom\-width)(\s+)?:(\s+)?(\d+)(px)?/i,/^(zoom\-height)(\s+)?:(\s+)?(\d+)(px)?/i,/^(zoom\-distance)(\s+)?:(\s+)?(\d+)(px)?/i,/^(zoom\-position)(\s+)?:(\s+)?(right|left|top|bottom|custom|inner)$/i,/^(drag\-mode)(\s+)?:(\s+)?(true|false)$/i,/^(move\-on\-click)(\s+)?:(\s+)?(true|false)$/i,/^(always\-show\-zoom)(\s+)?:(\s+)?(true|false)$/i,/^(preserve\-position)(\s+)?:(\s+)?(true|false)$/i,/^(x)(\s+)?:(\s+)?([\d.]+)(px)?/i,/^(y)(\s+)?:(\s+)?([\d.]+)(px)?/i,/^(click\-to\-activate)(\s+)?:(\s+)?(true|false)$/i,/^(click\-to\-initialize)(\s+)?:(\s+)?(true|false)$/i,/^(smoothing)(\s+)?:(\s+)?(true|false)$/i,/^(show\-title)(\s+)?:(\s+)?(true|false)$/i,/^(thumb\-change)(\s+)?:(\s+)?(click|mouseover)$/i,/^(zoom\-fade)(\s+)?:(\s+)?(true|false)$/i,/^(zoom\-fade\-in\-speed)(\s+)?:(\s+)?(\d+)$/i,/^(zoom\-fade\-out\-speed)(\s+)?:(\s+)?(\d+)$/i,/^(hotspots)(\s+)?:(\s+)?([a-z0-9_\-:\.]+)$/i,/^(preload\-z53\-small)(\s+)?:(\s+)?(true|false)$/i,/^(preload\-z53\-big)(\s+)?:(\s+)?(true|false)$/i,/^(show\-loading)(\s+)?:(\s+)?(true|false)$/i,/^(loading\-msg)(\s+)?:(\s+)?([^;]*)$/i,/^(loading\-opacity)(\s+)?:(\s+)?(\d+)$/i,/^(loading\-position\-x)(\s+)?:(\s+)?(\d+)(px)?/i,/^(loading\-position\-y)(\s+)?:(\s+)?(\d+)(px)?/i,/^(z53\-mouseover\-delay)(\s+)?:(\s+)?(\d+)$/i,/^(fit\-zoom\-window)(\s+)?:(\s+)?(true|false)$/i], zooms:[], z1:function(e) { for(var i=0;i5px break; case"left": this.e.self.style.left="-"+(this.z.zoomDistance+this.z.zoomWidth)+"px"; this.e.z17="0px"; break; case"top": this.e.self.style.left="0px"; this.e.z17="-"+(this.z.zoomDistance+this.z.zoomHeight)+"px"; break; case"bottom": this.e.self.style.left="0px"; this.e.z17=r["bottom"]-r["top"]+this.z.zoomDistance+"px"; break; case"inner": this.e.self.p({"left":"0px","height":this.q.height+"px","width":this.q.width+"px"}); this.z.zoomWidth=this.q.width;this.z.zoomHeight=this.q.height; this.e.z17="0px"; break } if(this.e.gd56){this.e.gd56.p({"top":(this.z.zoomHeight-20)+"px"})}this.w.self.p({"position":"relative","borderWidth":"0px","padding":"0px","left":"0px","top":"0px"});this.z23();if(this.z.alwaysShowZoom){if(this.z.x==-1){this.z.x=this.q.width/2}if(this.z.y==-1){this.z.y=this.q.height/2}this.j27()}else{if(this.z.zoomFade){this.r=new var_J.FX(this.e.self)}this.e.self.p({"top":"-10000px"})}if(this.z.showLoading&&this.o){this.o.s()}this.c.a("mousemove",this.z46Bind);this.c.a("mouseout",this.z46Bind);if(!this.z.clickToActivate){this.z28=true}if(this.z.clickToInitialize&&this.initMouseEvent){this.z46(this.initMouseEvent)}this.z25=var_J.now()},z26:function(){if(this.w.ready){return}this.o=var_j(document.createElement("DIV")).j2("MagicZoomLoading").g(this.z.loadingOpacity/100).p({"display":"block","overflow":"hidden","position":"absolute","visibility":"hidden","z-index":20,"max-width":(this.q.width-4)});this.o.appendChild(document.createTextNode(this.z.loadingMsg));this.c.appendChild(this.o);var r=this.o.j7();this.o.p({"left":(this.z.loadingPositionX==-1?((this.q.width-r.width)/2):(this.z.loadingPositionX))+"px","top":(this.z.loadingPositionY==-1?((this.q.height-r.height)/2):(this.z.loadingPositionY))+"px"});this.o.j27()},z22:function(){this.z53=[];var_J.var_A(document.getElementsByTagName("A")).each(function(el){var r1=new RegExp("^"+this.c.id+"var_");var r2=new RegExp("zoom\\-id(\\s+)?:(\\s+)?"+this.c.id);if(r1.test(el.rel)||r2.test(el.rel)){var_j(el).z34=function(ev,el){if(ev.type=="mouseout"||this.z35){if(this.z35){clearTimeout(this.z35)}this.z35=false;return}if(el.href==this.c.href&&this.c.firstChild.src.has(el.rev)){return}if(el.title!=""){this.c.title=el.title}if(ev.type=="mouseover"){this.z35=setTimeout(this.update.bind(this,el.href,el.rev,el.rel),this.z.selectorsMouseoverDelay)}else{this.update(el.href,el.rev,el.rel)}}.j18(this,el);el.z36=function(ev){if(!var_J.v.trident){this.blur()}var_j(ev).stop();return false};el.a("click",el.z36);el.p({"outline":"0"}).a(this.z.thumbChange,el.z34); if(this.z.thumbChange=="mouseover") { el.a("mouseout",el.z34) } if(this.z.preloadSelectorsSmall) { var _ba=new Image(); _ba.src=el.rev }if(this.z.preloadSelectorsBig) { var big=new Image(); big.src=el.href } this.z53.push(el) } } ,this) }, stop:function(_bc){try{this.j17();this.c.j26("mousemove",this.z46Bind);this.c.j26("mouseout",this.z46Bind);if(undefined==_bc){this.x.self.s()}if(this.r){this.r.stop()}this.y=null;this.z28=false;this.z53.each(function(el){el.j26(this.z.thumbChange,el.z34);if(this.z.thumbChange=="mouseover"){el.j26("mouseout",el.z34)}el.z34=null;el.j26("click",el.z36);el.z36=null},this);if(this.z.hotspots!=""&&var_j(this.z.hotspots)){var_j(this.z.hotspots).s();var_j(this.z.hotspots).z30.insertBefore(var_j(this.z.hotspots),var_j(this.z.hotspots).z31);if(this.c.z32){this.c.removeChild(this.c.z32)}}this.q.unload();this.w.unload();this.r=null;if(this.o){this.c.removeChild(this.o)}if(undefined==_bc){this.c.removeChild(this.x.self);this.e.self.parentNode.removeChild(this.e.self);this.x=null;this.e=null;this.w=null;this.q=null}if(this.z20){clearTimeout(this.z20);this.z20=null}this.z48=null;this.c.z32=null;this.o=null;if(this.c.title==""){this.c.title=this.c.z51}this.z25=-1}catch(e){}},start:function(_be){if(this.z25!=-1){return}this.construct(false,_be)},update:function(big,_c0,_c1){if(var_J.now()-this.z25<300||this.z25==-1){var tm=300-var_J.now()+this.z25;if(this.z25==-1){tm=300}this.z35=setTimeout(this.update.bind(this,big,_c0,_c1),tm);return}this.stop(true);if(undefined!=big){this.c.href=big}if(undefined!=_c0){this.c.firstChild.src=_c0}if(undefined==_c1){_c1=""}if(this.z.preservePosition){_c1="x: "+this.z.x+"; y: "+this.z.y+"; "+_c1}this.start(_c1)},z37:function(_c3){var i=null;var z=[];var z41=_c3.split(";");z41.each(function(_c7){MagicZoom.z40.each(function(el){i=el.exec(_c7.j19());if(i){switch(var_J.j1(MagicZoom.defaults[i[1].k()])){case"boolean":z[i[1].k()]=i[4]==="true";break;case"number":z[i[1].k()]=parseFloat(i[4]);break;default:z[i[1].k()]=i[4]}}},this)},this);if(z.dragMode&&undefined===z.alwaysShowZoom){z.alwaysShowZoom=true}this.z=var_J.extend(this.z,z)},z23:function(){if(!this.x){this.x={self:var_j(document.createElement("DIV")).j2("MagicZoomPup").p({"zIndex":10,"position":"absolute","overflow":"hidden"}).s(),width:20,height:20};this.c.appendChild(this.x.self)}this.x.z39=false;var r=this.e.z44.j7();this.x.height=(this.z.zoomHeight-r.height)/(this.w.height/this.q.height);this.x.width=this.z.zoomWidth/(this.w.width/this.q.width);if(this.x.width>this.q.width){this.x.width=this.q.width}if(this.x.height>this.q.height){this.x.height=this.q.height}this.x.width=Math.round(this.x.width);this.x.height=Math.round(this.x.height);this.x.borderWidth=this.x.self.j30("borderLeftWidth").j22();this.x.self.p({"width":(this.x.width-2*(var_J.v.backCompat?0:this.x.borderWidth))+"px","height":(this.x.height-2*(var_J.v.backCompat?0:this.x.borderWidth))+"px"});if(!this.z.opacityReverse){this.x.self.g(parseFloat(this.z.opacity/100));if(this.x.z45){this.x.self.removeChild(this.x.z45);this.x.z45=null}}else{this.x.self.g(1);if(this.x.z45){this.x.z45.src=this.q.self.src}else{var img=new Image;img.src=this.q.self.src;img.unselectable="on";this.x.z45=var_j(this.x.self.appendChild(img)).p({"position":"absolute","zIndex":5})}}},z46:function(e,r1){if(!this.z28||e===undefined){return false}var_j(e).stop();if(r1===undefined){var r1=var_j(e).j15()}if(this.y==null){this.y=this.q.getBox()}if(r1.x>this.y.right||r1.xthis.y.bottom||r1.y=this.y.right){r1.x=this.y.right-this.x.width/2}if((r1.x-this.x.width/2)<=this.y.left){r1.x=this.y.left+this.x.width/2}if((r1.y+this.x.height/2)>=this.y.bottom){r1.y=this.y.bottom-this.x.height/2}if((r1.y-this.x.height/2)<=this.y.top){r1.y=this.y.top+this.x.height/2}this.z.x=r1.x-this.y.left;this.z.y=r1.y-this.y.top;if(this.z48==null){if(var_J.v.trident){this.c.style.zIndex=1}this.z48=setTimeout(this.z9,10)}return true},j27:function(){var pw=this.x.width/2;var ph=this.x.height/2;this.x.self.style.left=this.z.x-pw+this.q.border.left+"px";this.x.self.style.top=this.z.y-ph+this.q.border.top+"px";if(this.z.opacityReverse){this.x.z45.style.left="-"+(parseFloat(this.x.self.style.left)+this.x.borderWidth)+"px";this.x.z45.style.top="-"+(parseFloat(this.x.self.style.top)+this.x.borderWidth)+"px"}var _cf=(this.z.x-pw)*(this.w.width/this.q.width);var _d0=(this.z.y-ph)*(this.w.height/this.q.height);if(this.w.width-_cf0){dX=1}else{if(dX>-1&&dX<0){dX=-1}}_d1+=dX;dY*=this.z.smoothingSpeed/100;if(dY<1&&dY>0){dY=1}else{if(dY>-1&&dY<0){dY=-1}}_d2+=dY;this.w.self.style.left=_d1+"px";this.w.self.style.top=_d2+"px"}if(!this.x.z39){if(this.r){this.r.stop();this.r.z.onComplete=var_J.var_F;this.r.z.duration=this.z.zoomFadeInSpeed;this.e.self.g(0);this.r.start({"opacity":[0,1]})}if(this.z.zoomPosition!="inner"){this.x.self.j27()}this.e.self.style.top=this.e.z17;if(this.z.opacityReverse){this.q.self.g(parseFloat((100-this.z.opacity)/100))}this.x.z39=true}if(this.z48){this.z48=setTimeout(this.z9,1000/this.z.fps)}},j17:function(){if(this.z48){clearTimeout(this.z48);this.z48=null}if(!this.z.alwaysShowZoom&&this.x.z39){this.x.z39=false;this.x.self.s();if(this.r){this.r.stop();this.r.z.onComplete=this.e.z18;this.r.z.duration=this.z.zoomFadeOutSpeed;var _d5=this.e.self.j30("opacity");this.r.start({"opacity":[_d5,0]})}else{this.e.s()}if(this.z.opacityReverse){this.q.self.g(1)}}this.y=null;if(this.z.clickToActivate){this.z28=false}if(this.z.dragMode){this.z49=false}if(var_J.v.trident){this.c.style.zIndex=0}},mousedown:function(e){var_j(e).stop();if(this.z.clickToInitialize&&!this.q){this.initMouseEvent=e;this.z11();return}if(this.w&&this.z.clickToActivate&&!this.z28){this.z28=true;this.z46(e)}if(this.z.dragMode){this.z49=true;if(!this.z.moveOnClick){var r1=e.j15();this.ddx=r1.x-this.z.x-this.y.left;this.ddy=r1.y-this.z.y-this.y.top;if(Math.abs(this.ddx)>this.x.width/2||Math.abs(this.ddy)>this.x.height/2){this.z49=false;return}}}if(this.z.moveOnClick){this.z46(e)}},mouseup:function(e){var_j(e).stop();if(this.z.dragMode){this.z49=false}}}; if(var_J.v.trident){ try{ document.execCommand("BackgroundImageCache",false,true) }catch(e) {} } var_j(document).a("domready",MagicZoom.refresh); var_j(document).a("mousemove",MagicZoom.z1); function showPreview(img_path){ jQuery('#bigimg_src').attr('src', img_path); jQuery('#zoom').attr('href', img_path); var_j(document).a('domready', MagicZoom.refresh); var_j(document).a('mousemove', MagicZoom.z1); }