(function(){if(window.magicJS){return}var a={version:"2.3.11",UUID:0,storage:{},$$uuid:function(a){return a.$$J_UUID||(a.$$J_UUID=++$$J.UUID)},getStorage:function(a){return $$J.storage[a]||($$J.storage[a]={})},$$F:function(){},$$false:function(){return false},defined:function(a){return undefined!=a},exists:function(a){return!!a},j1:function(a){if(!$$J.defined(a)){return false}if(a.$$J_TYPE){return a.$$J_TYPE}if(!!a.nodeType){if(1==a.nodeType){return"element"}if(3==a.nodeType){return"textnode"}}if(a.length&&a.item){return"collection"}if(a.length&&a.callee){return"arguments"}if((a instanceof window.Object||a instanceof window.Function)&&a.constructor===$$J.Class){return"class"}if(a instanceof window.Array){return"array"}if(a instanceof window.Function){return"function"}if(a instanceof window.String){return"string"}if($$J.v.trident){if($$J.defined(a.cancelBubble)){return"event"}}else{if(a instanceof window.Event||a===window.event||a.constructor==window.MouseEvent){return"event"}}if(a instanceof window.Date){return"date"}if(a instanceof window.RegExp){return"regexp"}if(a===window){return"window"}if(a===document){return"document"}return typeof a},extend:function(a,b){if(!(a instanceof window.Array)){a=[a]}for(var c=0,d=a.length;c<d;c++){if(!$$J.defined(a)){continue}for(var e in b||{}){try{a[c][e]=b[e]}catch(f){}}}return a[0]},implement:function(a,b){if(!(a instanceof window.Array)){a=[a]}for(var c=0,d=a.length;c<d;c++){if(!$$J.defined(a[c])){continue}if(!a[c].prototype){continue}for(var e in b||{}){if(!a[c].prototype[e]){a[c].prototype[e]=b[e]}}}return a[0]},nativize:function(a,b){if(!$$J.defined(a)){return a}for(var c in b||{}){if(!a[c]){a[c]=b[c]}}return a},$$try:function(){for(var a=0,b=arguments.length;a<b;a++){try{return arguments[a]()}catch(c){}}return null},$$A:function(a){if(!$$J.defined(a)){return $$j([])}if(a.toArray){return $$j(a.toArray())}if(a.item){var b=a.length||0,c=new Array(b);while(b--){c[b]=a[b]}return $$j(c)}return $$j(Array.prototype.slice.call(a))},now:function(){return(new Date).getTime()},detach:function(a){var b;switch($$J.j1(a)){case"object":b={};for(var c in a){b[c]=$$J.detach(a[c])}break;case"array":b=[];for(var d=0,e=a.length;d<e;d++){b[d]=$$J.detach(a[d])}break;default:return a}return b},$$:function(a){if(!$$J.defined(a)){return null}if(a.$$J_EXTENDED){return a}switch($$J.j1(a)){case"array":a=$$J.nativize(a,$$J.extend($$J.Array,{$$J_EXTENDED:true}));a.j14=a.forEach;return a;break;case"string":var b=document.getElementById(a);if($$J.defined(b)){return $$J.$$(b)}return null;break;case"window":case"document":$$J.$$uuid(a);a=$$J.extend(a,$$J.Doc);break;case"element":$$J.$$uuid(a);a=$$J.extend(a,$$J.Element);break;case"event":a=$$J.extend(a,$$J.Event);break;case"textnode":return a;break;case"function":case"array":case"date":default:break}return $$J.extend(a,{$$J_EXTENDED:true})},$$new:function(a,b,c){return $$j($$J.doc.createElement(a)).setProps(b).j6(c)}};window.magicJS=window.$$J=a;window.$$j=a.$$;$$J.Array={$$J_TYPE:"array",indexOf:function(a,b){var c=this.length;for(var d=this.length,e=b<0?Math.max(0,d+b):b||0;e<d;e++){if(this[e]===a){return e}}return-1},contains:function(a,b){return this.indexOf(a,b)!=-1},forEach:function(a,b){for(var c=0,d=this.length;c<d;c++){if(c in this){a.call(b,this[c],c,this)}}},filter:function(a,b){var c=[];for(var d=0,e=this.length;d<e;d++){if(d in this){var f=this[d];if(a.call(b,this[d],d,this)){c.push(f)}}}return c},map:function(a,b){var c=[];for(var d=0,e=this.length;d<e;d++){if(d in this){c[d]=a.call(b,this[d],d,this)}}return c}};$$J.implement(String,{$$J_TYPE:"string",j21:function(){return this.replace(/^\s+|\s+$$/g,"")},trimLeft:function(){return this.replace(/^\s+/g,"")},trimRight:function(){return this.replace(/\s+$$/g,"")},j20:function(a){return this.toString()===a.toString()},icompare:function(a){return this.toLowerCase().toString()===a.toLowerCase().toString()},k:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase()})},dashize:function(){return this.replace(/[A-Z]/g,function(a){return"-"+a.charAt(0).toLowerCase()})},j22:function(a){return parseInt(this,a||10)},toFloat:function(){return parseFloat(this)},j23:function(){return!this.replace(/true/i,"").j21()},has:function(a,b){b=b||"";return(b+this+b).indexOf(b+a+b)>-1}});a.implement(Function,{$$J_TYPE:"function",j19:function(){var a=$$J.$$A(arguments),b=this,c=a.shift();return function(){return b.apply(c||null,a.concat($$J.$$A(arguments)))}},j18:function(){var a=$$J.$$A(arguments),b=this,c=a.shift();return function(e){return b.apply(c||null,$$j([e||window.event]).concat(a))}},j32:function(){var a=$$J.$$A(arguments),b=this,c=a.shift();return window.setTimeout(function(){return b.apply(b,a)},c||0)},j33:function(){var a=$$J.$$A(arguments),b=this;return function(){return b.j32.apply(b,a)}},interval:function(){var a=$$J.$$A(arguments),b=this,c=a.shift();return window.setInterval(function(){return b.apply(b,a)},c||0)}});$$J.v={features:{xpath:!!document.evaluate,air:!!window.runtime,query:!!document.querySelector},engine:window.opera?"presto":!!window.ActiveXObject?"trident":!navigator.taintEnabled?"webkit":undefined!=document.getBoxObjectFor||null!=window.mozInnerScreenY?"gecko":"unknown",version:"",platform:$$J.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},ready:false,onready:function(){if($$J.v.ready){return}$$J.v.ready=true;$$J.body=$$j(document.body);$$j(document).raiseEvent("domready")}};(function(){function a(){return!!arguments.callee.caller}$$J.v.version="presto"==$$J.v.engine?!!window.applicationCache?260:!!window.localStorage?250:$$J.v.features.query?220:a()?211:document.getElementsByClassName?210:200:"trident"==$$J.v.engine?!!(window.XMLHttpRequest&&window.postMessage)?6:window.XMLHttpRequest?5:4:"webkit"==$$J.v.engine?$$J.v.features.xpath?$$J.v.features.query?525:420:419:"gecko"==$$J.v.engine?!!document.readyState?192:!!window.localStorage?191:document.getElementsByClassName?190:181:"";$$J.v[$$J.v.engine]=$$J.v[$$J.v.engine+$$J.v.version]=true;if(window.chrome){$$J.v.chrome=true}})();$$J.Element={j13:function(a){return this.className.has(a," ")},j2:function(a){if(a&&!this.j13(a)){this.className+=(this.className?" ":"")+a}return this},j3:function(a){a=a||".*";this.className=this.className.replace(new RegExp("(^|\\s)"+a+"(?:\\s|$$)"),"$$1").j21();return this},j4:function(a){return this.j13(a)?this.j3(a):this.j2(a)},j5:function(a){a=a=="float"&&this.currentStyle?"styleFloat":a.k();var b=null;if(this.currentStyle){b=this.currentStyle[a]}else{if(document.defaultView&&document.defaultView.getComputedStyle){css=document.defaultView.getComputedStyle(this,null);b=css?css.getPropertyValue([a.dashize()]):null}}if(!b){b=this.style[a]}if("opacity"==a){return $$J.defined(b)?parseFloat(b):1}if(/^(border(Top|Bottom|Left|Right)Width)|((padding|margin)(Top|Bottom|Left|Right))$$/.test(a)){b=parseInt(b)?b:"0px"}return"auto"==b?null:b},j6Prop:function(a,b){try{if("opacity"==a){this.g(b);return this}if("float"==a){this.style["undefined"===typeof this.style.styleFloat?"cssFloat":"styleFloat"]=b;return this}this.style[a.k()]=b+("number"==$$J.j1(b)&&!$$j(["zIndex","zoom"]).contains(a.k())?"px":"")}catch(c){}return this},j6:function(a){for(var b in a){this.j6Prop(b,a[b])}return this},j30s:function(){var a={};$$J.$$A(arguments).j14(function(c){a[c]=this.j5(c)},this);return a},g:function(a,b){b=b||false;a=parseFloat(a);if(b){if(a==0){if("hidden"!=this.style.visibility){this.style.visibility="hidden"}}else{if("visible"!=this.style.visibility){this.style.visibility="visible"}}}if($$J.v.trident){if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1}try{var c=this.filters.item("DXImageTransform.Microsoft.Alpha");c.enabled=1!=a;c.opacity=a*100}catch(d){this.style.filter+=1==a?"":"progid:DXImageTransform.Microsoft.Alpha(enabled=true,opacity="+a*100+")"}}this.style.opacity=a;return this},setProps:function(a){for(var b in a){this.setAttribute(b,""+a[b])}return this},hide:function(){return this.j6({display:"none",visibility:"hidden"})},show:function(){return this.j6({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 a=this,b={top:0,left:0};do{b.left+=a.scrollLeft||0;b.top+=a.scrollTop||0;a=a.parentNode}while(a);return b},j8:function(){if($$J.defined(document.documentElement.getBoundingClientRect)){var a=this.getBoundingClientRect(),b=$$j(document).j10(),c=$$J.v.getDoc();return{top:a.top+b.y-c.clientTop,left:a.left+b.x-c.clientLeft}}var d=this,e=t=0;do{e+=d.offsetLeft||0;t+=d.offsetTop||0;d=d.offsetParent}while(d&&!/^(?:body|html)$$/i.test(d.tagName));return{top:t,left:e}},j9:function(){var a=this.j8();var b=this.j7();return{top:a.top,bottom:a.top+b.height,left:a.left,right:a.left+b.width}},update:function(a){try{this.innerHTML=a}catch(b){this.innerText=a}return this},remove:function(){return this.parentNode?this.parentNode.removeChild(this):this},kill:function(){$$J.$$A(this.childNodes).j14(function(a){if(3==a.nodeType){return}$$j(a).kill()});this.remove();this.clearEvents();if(this.$$J_UUID){$$J.storage[this.$$J_UUID]=null;delete $$J.storage[this.$$J_UUID]}return null},append:function(a,b){b=b||"bottom";var c=this.firstChild;"top"==b&&c?this.insertBefore(a,c):this.appendChild(a);return this},j43:function(a,b){var c=$$j(a).append(this,b);return this},enclose:function(a){this.append(a.parentNode.replaceChild(this,a));return this},hasChild:function(a){if(!(a=$$j(a))){return false}return this==a?false:this.contains&&!$$J.v.webkit419?this.contains(a):this.compareDocumentPosition?!!(this.compareDocumentPosition(a)&16):$$J.$$A(this.byTag(a.tagName)).contains(a)}};$$J.Element.j30=$$J.Element.j5;$$J.Element.j31=$$J.Element.j6;if(!window.Element){window.Element=$$J.$$F;if($$J.v.engine.webkit){window.document.createElement("iframe")}window.Element.prototype=$$J.v.engine.webkit?window["[[DOMElement.prototype]]"]:{}}$$J.implement(window.Element,{$$J_TYPE:"element"});$$J.Doc={j7:function(){if($$J.v.presto925||$$J.v.webkit419){return{width:self.innerWidth,height:self.innerHeight}}return{width:$$J.v.getDoc().clientWidth,height:$$J.v.getDoc().clientHeight}},j10:function(){return{x:self.pageXOffset||$$J.v.getDoc().scrollLeft,y:self.pageYOffset||$$J.v.getDoc().scrollTop}},j12:function(){var a=this.j7();return{width:Math.max($$J.v.getDoc().scrollWidth,a.width),height:Math.max($$J.v.getDoc().scrollHeight,a.height)}}};$$J.extend(document,{$$J_TYPE:"document"});$$J.extend(window,{$$J_TYPE:"window"});$$J.extend([$$J.Element,$$J.Doc],{j40:function(a,b){var c=$$J.getStorage(this.$$J_UUID),d=c[a];if(undefined!=b&&undefined==d){d=c[a]=b}return $$J.defined(d)?d:null},j41:function(a,b){var c=$$J.getStorage(this.$$J_UUID);c[a]=b;return this},j42:function(a){var b=$$J.getStorage(this.$$J_UUID);delete b[a];return this}});if(!(window.HTMLElement&&window.HTMLElement.prototype&&window.HTMLElement.prototype.getElementsByClassName)){$$J.extend([$$J.Element,$$J.Doc],{getElementsByClassName:function(a){return $$J.$$A(this.getElementsByTagName("*")).filter(function(c){try{return 1==c.nodeType&&c.className.has(a," ")}catch(d){}})}})}$$J.extend([$$J.Element,$$J.Doc],{byClass:function(){return this.getElementsByClassName(arguments[0])},byTag:function(){return this.getElementsByTagName(arguments[0])}});$$J.Event={$$J_TYPE:"event",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+$$J.v.getDoc().scrollLeft,y:this.pageY||this.clientY+$$J.v.getDoc().scrollTop}},getTarget:function(){var a=this.target||this.srcElement;while(a&&3==a.nodeType){a=a.parentNode}return a},getRelated:function(){var a=null;switch(this.type){case"mouseover":a=this.relatedTarget||this.fromElement;break;case"mouseout":a=this.relatedTarget||this.toElement;break;default:return a}try{while(a&&3==a.nodeType){a=a.parentNode}}catch(b){a=null}return a},getButton:function(){if(!this.which&&this.button!==undefined){return this.button&1?1:this.button&2?3:this.button&4?2:0}return this.which}};$$J._event_add_="addEventListener";$$J._event_del_="removeEventListener";$$J._event_prefix_="";if(!document.addEventListener){$$J._event_add_="attachEvent";$$J._event_del_="detachEvent";$$J._event_prefix_="on"}$$J.extend([$$J.Element,$$J.Doc],{a:function(a,b){var c="domready"==a?false:true,d=this.j40("events",{});d[a]=d[a]||[];if(d[a].hasOwnProperty(b.$$J_EUID)){return this}if(!b.$$J_EUID){b.$$J_EUID=Math.floor(Math.random()*$$J.now())}var e=this,f=function(a){return b.call(e)};if("domready"==a){if($$J.v.ready){b.call(this);return this}}if(c){f=function(a){a=$$J.extend(a||window.e,{$$J_TYPE:"event"});return b.call(e,$$j(a))};this[$$J._event_add_]($$J._event_prefix_+a,f,false)}d[a][b.$$J_EUID]=f;return this},j26:function(a){var b="domready"==a?false:true,c=this.j40("events");if(!c||!c[a]){return this}var d=c[a],e=arguments[1]||null;if(a&&!e){for(var f in d){if(!d.hasOwnProperty(f)){continue}this.j26(a,f)}return this}e="function"==$$J.j1(e)?e.$$J_EUID:e;if(!d.hasOwnProperty(e)){return this}if("domready"==a){b=false}if(b){this[$$J._event_del_]($$J._event_prefix_+a,d[e],false)}delete d[e];return this},raiseEvent:function(a,b){var c="domready"==a?false:true,d=this,e;if(!c){var f=this.j40("events");if(!f||!f[a]){return this}var g=f[a];for(var h in g){if(!g.hasOwnProperty(h)){continue}g[h].call(this)}return this}if(d===document&&document.createEvent&&!el.dispatchEvent){d=document.documentElement}if(document.createEvent){e=document.createEvent(a);e.initEvent(b,true,true)}else{e=document.createEventObject();e.eventType=a}if(document.createEvent){d.dispatchEvent(e)}else{d.fireEvent("on"+b,e)}return e},clearEvents:function(){var a=this.j40("events");if(!a){return this}for(var b in a){this.j26(b)}this.j42("events");return this}});(function(){if($$J.v.webkit&&$$J.v.version<420){(function(){$$j(["loaded","complete"]).contains(document.readyState)?$$J.v.onready():arguments.callee.j32(50)})()}else{if($$J.v.trident&&window==top){(function(){$$J.$$try(function(){$$J.v.getDoc().doScroll("left");return true})?$$J.v.onready():arguments.callee.j32(50)})()}else{$$j(document).a("DOMContentLoaded",$$J.v.onready);$$j(window).a("load",$$J.v.onready)}}})();$$J.Class=function(){var a=null,b=$$J.$$A(arguments);if("class"==$$J.j1(b[0])){a=b.shift()}var c=function(){for(var a in this){this[a]=$$J.detach(this[a])}if(this.constructor.$$parent){this.$$parent={};var b=this.constructor.$$parent;for(var c in b){var d=b[c];switch($$J.j1(d)){case"function":this.$$parent[c]=$$J.Class.wrap(this,d);break;case"object":this.$$parent[c]=$$J.detach(d);break;case"array":this.$$parent[c]=$$J.detach(d);break}}}var e=this.init?this.init.apply(this,arguments):this;delete this.caller;return e};if(!c.prototype.init){c.prototype.init=$$J.$$F}if(a){var d=function(){};d.prototype=a.prototype;c.prototype=new d;c.$$parent={};for(var e in a.prototype){c.$$parent[e]=a.prototype[e]}}else{c.$$parent=null}c.constructor=$$J.Class;c.prototype.constructor=c;$$J.extend(c.prototype,b[0]);$$J.extend(c,{$$J_TYPE:"class"});return c};a.Class.wrap=function(a,b){return function(){var d=this.caller;var e=b.apply(a,arguments);return e}};$$J.FX=new $$J.Class({options:{fps:50,duration:500,transition:function(a){return-(Math.cos(Math.PI*a)-1)/2},onStart:$$J.$$F,onComplete:$$J.$$F,onBeforeRender:$$J.$$F},styles:null,init:function(a,b){this.el=$$j(a);this.options=$$J.extend(this.options,b);this.timer=false},start:function(a){this.styles=a;this.state=0;this.curFrame=0;this.startTime=$$J.now();this.finishTime=this.startTime+this.options.duration;this.timer=this.loop.j19(this).interval(Math.round(1e3/this.options.fps));this.options.onStart.call();return this},stop:function(a){a=$$J.defined(a)?a:false;if(this.timer){clearInterval(this.timer);this.timer=false}if(a){this.render(1);this.options.onComplete.j32(10)}return this},calc:function(a,b,c){return(b-a)*c+a},loop:function(){var a=$$J.now();if(a>=this.finishTime){if(this.timer){clearInterval(this.timer);this.timer=false}this.render(1);this.options.onComplete.j32(10);return this}var b=this.options.transition((a-this.startTime)/this.options.duration);this.render(b)},render:function(a){var b={};for(var c in this.styles){if("opacity"===c){b[c]=Math.round(this.calc(this.styles[c][0],this.styles[c][1],a)*100)/100}else{b[c]=Math.round(this.calc(this.styles[c][0],this.styles[c][1],a))}}this.options.onBeforeRender(b);this.set(b)},set:function(a){return this.el.j6(a)}});$$J.FX.Transition={linear:function(a){return a},sineIn:function(a){return-(Math.cos(Math.PI*a)-1)/2},sineOut:function(a){return 1-$$J.FX.Transition.sineIn(1-a)},expoIn:function(a){return Math.pow(2,8*(a-1))},expoOut:function(a){return 1-$$J.FX.Transition.expoIn(1-a)},quadIn:function(a){return Math.pow(a,2)},quadOut:function(a){return 1-$$J.FX.Transition.quadIn(1-a)},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return 1-$$J.FX.Transition.cubicIn(1-a)},backIn:function(a,b){b=b||1.618;return Math.pow(a,2)*((b+1)*a-b)},backOut:function(a,b){return 1-$$J.FX.Transition.backIn(1-a)},elasticIn:function(a,b){b=b||[];return Math.pow(2,10*--a)*Math.cos(20*a*Math.PI*(b[0]||1)/3)},elasticOut:function(a,b){return 1-$$J.FX.Transition.elasticIn(1-a,b)},bounceIn:function(a){for(var b=0,c=1;1;b+=c,c/=2){if(a>=(7-4*b)/11){return c*c-Math.pow((11-6*b-11*a)/4,2)}}},bounceOut:function(a){return 1-$$J.FX.Transition.bounceIn(1-a)},none:function(a){return 0}};$$J.PFX=new $$J.Class($$J.FX,{init:function(a,b){this.el_arr=a;this.options=$$J.extend(this.options,b);this.timer=false},start:function(a){this.$$parent.start([]);this.styles_arr=a;return this},render:function(a){for(var b=0;b<this.el_arr.length;b++){this.el=$$j(this.el_arr[b]);this.styles=this.styles_arr[b];this.$$parent.render(a)}}});$$J.FX.Slide=new $$J.Class($$J.FX,{options:{mode:"vertical"},init:function(a,b){this.el=$$j(a);this.options=$$J.extend(this.$$parent.options,this.options);this.$$parent.init(a,b);this.wrapper=this.el.j40("slide:wrapper");this.wrapper=this.wrapper||$$J.$$new("DIV").j6($$J.extend(this.el.j30s("margin-top","margin-left","margin-right","margin-bottom","position","top","float"),{overflow:"hidden"})).enclose(this.el);this.el.j41("slide:wrapper",this.wrapper).j6({margin:0})},vertical:function(){this.margin="margin-top";this.layout="height";this.offset=this.el.offsetHeight},horizontal:function(a){this.margin="margin-"+(a||"left");this.layout="width";this.offset=this.el.offsetWidth},right:function(){this.horizontal()},left:function(){this.horizontal("right")},start:function(a,b){this[b||this.options.mode]();var c=this.el.j5(this.margin).j22(),d=this.wrapper.j5(this.layout).j22(),e={},f={},g;e[this.margin]=[c,0],e[this.layout]=[0,this.offset],f[this.margin]=[c,-this.offset],f[this.layout]=[d,0];switch(a){case"in":g=e;break;case"out":g=f;break;case"toggle":g=0==d?e:f;break}this.$$parent.start(g);return this},set:function(a){this.el.j6Prop(this.margin,a[this.margin]);this.wrapper.j6Prop(this.layout,a[this.layout]);return this},slideIn:function(a){return this.start("in",a)},slideOut:function(a){return this.start("out",a)},hide:function(a){this[a||this.options.mode]();var b={};b[this.layout]=0,b[this.margin]=-this.offset;return this.set(b)},show:function(a){this[a||this.options.mode]();var b={};b[this.layout]=this.offset,b[this.margin]=0;return this.set(b)},toggle:function(a){return this.start("toggle",a)}});$$J.win=$$j(window);$$J.doc=$$j(document)})();$$J.$$Ff=function(){return false};var MagicZoom={version:"3.1.24",options:{},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:"top",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,selectorsEffect:"dissolve",selectorsEffectSpeed:400,fitZoomWindow:true,entireImage:false,enableRightClick:false},z40:$$j([/^(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|top|bottom)$$/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\-selectors\-small)(\s+)?:(\s+)?(true|false)$$/i,/^(preload\-selectors\-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,/^(selectors\-mouseover\-delay)(\s+)?:(\s+)?(\d+)$$/i,/^(selectors\-effect)(\s+)?:(\s+)?(dissolve|fade|false)$$/i,/^(selectors\-effect\-speed)(\s+)?:(\s+)?(\d+)$$/i,/^(fit\-zoom\-window)(\s+)?:(\s+)?(true|false)$$/i,/^(entire\-image)(\s+)?:(\s+)?(true|false)$$/i,/^(enable\-right\-click)(\s+)?:(\s+)?(true|false)$$/i]),zooms:$$j([]),z1:function(a){for(var b=0;b<MagicZoom.zooms.length;b++){if(MagicZoom.zooms[b].z28){MagicZoom.zooms[b].pause()}else{if(MagicZoom.zooms[b].options.clickToInitialize&&MagicZoom.zooms[b].initMouseEvent){MagicZoom.zooms[b].initMouseEvent=a}}}},stop:function(a){if(a.zoom){a.zoom.stop();return true}return false},start:function(a){if(!a.zoom){var b=null;while(b=a.firstChild){if(b.tagName=="IMG"){break}a.removeChild(b)}while(b=a.lastChild){if(b.tagName=="IMG"){break}a.removeChild(b)}if(!a.firstChild||a.firstChild.tagName!="IMG"){throw"Invalid Magic Zoom"}MagicZoom.zooms.push(new MagicZoom.zoom(a))}else{a.zoom.start()}},update:function(a,b,c,d){if(a.zoom){a.zoom.update(b,c,d);return true}return false},refresh:function(){$$J.$$A(window.document.getElementsByTagName("A")).j14(function(a){if(/MagicZoom/.test(a.className)){if(MagicZoom.stop(a)){MagicZoom.start.j32(100,a)}else{MagicZoom.start(a)}}},this)},getXY:function(a){if(a.zoom){return{x:a.zoom.options.x,y:a.zoom.options.y}}},x7:function(a){var b,c;b="";for(c=0;c<a.length;c++){b+=String.fromCharCode(14^a.charCodeAt(c))}return b}};MagicZoom.z50=function(){this.init.apply(this,arguments)};MagicZoom.z50.prototype={init:function(a){this.cb=null;this.z2=null;this.onErrorHandler=this.onError.j18(this);this.z3=null;this.width=0;this.height=0;this.border={left:0,right:0,top:0,bottom:0};this.padding={left:0,right:0,top:0,bottom:0};this.ready=false;this._tmpp=null;if("string"==$$J.j1(a)){this._tmpp=$$J.$$new("div").j6({position:"absolute",top:"-10000px",width:"1px",height:"1px",overflow:"hidden"}).j43($$J.body);this.self=$$J.$$new("img").j43(this._tmpp);this.z4();this.self.src=a}else{this.self=$$j(a);this.z4()}},_cleanup:function(){if(this._tmpp){if(this.self.parentNode==this._tmpp){this.self.remove().j6({position:"static",top:"auto"})}this._tmpp.kill();this._tmpp=null}},onError:function(a){if(a){$$j(a).stop()}if(this.cb){this._cleanup();this.cb.call(this,false)}this.unload()},z4:function(a){this.z2=null;if(a==true||!(this.self.src&&(this.self.complete||this.self.readyState=="complete"))){this.z2=function(a){if(a){$$j(a).stop()}if(this.ready){return}this.ready=true;this.z6();if(this.cb){this._cleanup();this.cb.call()}}.j18(this);this.self.a("load",this.z2);$$j(["abort","error"]).j14(function(a){this.self.a(a,this.onErrorHandler)},this)}else{this.ready=true}},update:function(a){this.unload();if(this.self.src.has(a)){this.ready=true}else{this.z4(true);this.self.src=a}},z6:function(){this.width=this.self.width;this.height=this.self.height;if(this.width==0&&this.height==0&&$$J.v.webkit){this.width=this.self.naturalWidth;this.height=this.self.naturalHeight}$$j(["Left","Right","Top","Bottom"]).j14(function(a){this.padding[a.toLowerCase()]=this.self.j30("padding"+a).j22();this.border[a.toLowerCase()]=this.self.j30("border"+a+"Width").j22()},this);if($$J.v.presto||$$J.v.trident&&!$$J.v.backCompat){this.width-=this.padding.left+this.padding.right;this.height-=this.padding.top+this.padding.bottom}},getBox:function(){var a=null;a=this.self.j9();return{top:a.top+this.border.top,bottom:a.bottom-this.border.bottom,left:a.left+this.border.left,right:a.right-this.border.right}},z5:function(){if(this.z3){this.z3.src=this.self.src;this.self=null;this.self=this.z3}},load:function(a){if(this.ready){if(!this.width){this.z6()}this._cleanup();a.call()}else{this.cb=a}},unload:function(){if(this.z2){this.self.j26("load",this.z2)}$$j(["abort","error"]).j14(function(a){this.self.j26(a,this.onErrorHandler)},this);this.z2=null;this.cb=null;this.width=null;this.ready=false;this._new=false}};MagicZoom.zoom=function(){this.construct.apply(this,arguments)};MagicZoom.zoom.prototype={construct:function(a,b){this.z25=-1;this.z28=false;this.ddx=0;this.ddy=0;this.options=$$J.detach(MagicZoom.defaults);if(a){this.c=$$j(a)}this.z37(this.c.rel);if(b){this.z37(b)}this.z48=null;if(a){this.z7=this.mousedown.j18(this);this.z8=this.mouseup.j18(this);this.z9=this.show.j19(this,false);this.z10=this.z26.j19(this);this.z46Bind=this.z46.j18(this);this.c.a("click",function(a){if(!$$J.v.trident){this.blur()}$$j(a).stop();return false});this.c.a("mousedown",this.z7);this.c.a("mouseup",this.z8);this.c.unselectable="on";this.c.style.MozUserSelect="none";this.c.onselectstart=$$J.$$Ff;if(!this.options.enableRightClick){this.c.oncontextmenu=$$J.$$Ff}this.c.j6({position:"relative",display:"inline-block",textDecoration:"none",outline:"0",cursor:"hand"});if($$J.v.gecko181||$$J.v.presto){this.c.j6({display:"block"})}if(this.c.j5("textAlign")=="center"){this.c.j6({margin:"auto auto"})}this.c.zoom=this}else{this.options.clickToInitialize=false}if(!this.options.clickToInitialize){this.z11()}},z11:function(){var a,b,c,d,e;if(!this.q){this.q=new MagicZoom.z50(this.c.firstChild);this.w=new MagicZoom.z50(this.c.href)}else{this.w.update(this.c.href)}if(!this.e){this.e={self:$$j(document.createElement("DIV")).j2("MagicZoomBigImageCont").j6({overflow:"hidden",zIndex:100,top:"-100000px",position:"absolute",width:this.options.zoomWidth+"px",height:this.options.zoomHeight+"px"}),zoom:this,z17:"0px"};this.e.hide=function(){if(this.self.style.top!="-100000px"&&!this.zoom.x.z39){this.z17=this.self.style.top;this.self.style.top="-100000px"}};this.e.z18=this.e.hide.j19(this.e);if($$J.v.trident){a=$$j(document.createElement("IFRAME"));a.src="javascript:''";a.j6({left:"0px",top:"0px",position:"absolute"}).frameBorder=0;this.e.z19=this.e.self.appendChild(a)}this.e.z44=$$j(document.createElement("DIV")).j2("MagicZoomHeader").j6({position:"relative",zIndex:10,left:"0px",top:"0px",padding:"3px"}).hide();b=document.createElement("DIV");b.style.overflow="hidden";b.appendChild(this.w.self);this.w.self.j6({padding:"0px",margin:"0px",border:"0px"});if(this.options.showTitle=="bottom"){this.e.self.appendChild(b);this.e.self.appendChild(this.e.z44)}else{this.e.self.appendChild(this.e.z44);this.e.self.appendChild(b)}if(this.options.zoomPosition=="custom"&&$$j(this.c.id+"-big")){$$j(this.c.id+"-big").appendChild(this.e.self)}else{this.c.appendChild(this.e.self)}if("undefined"!==typeof e){this.e.g=$$j(document.createElement("div")).j6({color:e[1],fontSize:e[2]+"px",fontWeight:e[3],fontFamily:"Tahoma",position:"absolute",width:e[5],textAlign:e[4],left:"0px"}).update(MagicZoom.x7(e[0]));this.e.self.appendChild(this.e.g)}}if(this.options.showTitle!="false"&&this.options.showTitle!=false&&this.c.title!=""&&this.options.zoomPosition!="inner"){d=this.e.z44;while(c=d.firstChild){d.removeChild(c)}this.e.z44.appendChild(document.createTextNode(this.c.title));this.e.z44.show()}else{this.e.z44.hide()}this.c.z51=this.c.title;this.c.title="";this.q.load(this.z12.j19(this))},z12:function(a){if(!a&&a!==undefined){return}if(!this.options.opacityReverse){this.q.self.g(1)}this.c.j6({width:this.q.width+"px"});if(this.options.showLoading){this.z20=setTimeout(this.z10,400)}if(this.options.hotspots!=""&&$$j(this.options.hotspots)){this.z21()}if(this.c.id!=""){this.z22()}this.w.load(this.z13.j19(this))},z13:function(a){var b,c;if(!a&&a!==undefined){clearTimeout(this.z20);if(this.options.showLoading&&this.o){this.o.hide()}return}c=this.q.self.j9();b=this.e.z44.j7();if(this.options.fitZoomWindow||this.options.entireImage){if(this.w.width<this.options.zoomWidth||this.options.entireImage){this.options.zoomWidth=this.w.width}if(this.w.height<this.options.zoomHeight||this.options.entireImage){this.options.zoomHeight=this.w.height+b.height}}if(this.options.showTitle=="bottom"){this.w.self.parentNode.style.height=this.options.zoomHeight-b.height+"px"}this.e.self.j6({height:this.options.zoomHeight+"px",width:this.options.zoomWidth+"px"}).g(1);if($$J.v.trident){this.e.z19.j6({width:this.options.zoomWidth+"px",height:this.options.zoomHeight+"px"})}switch(this.options.zoomPosition){case"custom":break;case"right":this.e.self.style.left=c.right-c.left+this.options.zoomDistance+"px";this.e.z17="0px";break;case"left":this.e.self.style.left="-"+(this.options.zoomDistance+this.options.zoomWidth)+"px";this.e.z17="0px";break;case"top":this.e.self.style.left="0px";this.e.z17="-"+(this.options.zoomDistance+this.options.zoomHeight)+"px";break;case"bottom":this.e.self.style.left="0px";this.e.z17=c.bottom-c.top+this.options.zoomDistance+"px";break;case"inner":this.e.self.j6({left:"0px",height:this.q.height+"px",width:this.q.width+"px"});this.options.zoomWidth=this.q.width;this.options.zoomHeight=this.q.height;this.e.z17="0px";break}this.zoomViewHeight=this.options.zoomHeight-b.height;if(this.e.g){this.e.g.j6({top:this.options.showTitle=="bottom"?"0px":this.options.zoomHeight-20+"px"})}this.w.self.j6({position:"relative",borderWidth:"0px",padding:"0px",left:"0px",top:"0px"});this.z23();if(this.options.alwaysShowZoom){if(this.options.x==-1){this.options.x=this.q.width/2}if(this.options.y==-1){this.options.y=this.q.height/2}this.show()}else{if(this.options.zoomFade){this.r=new $$J.FX(this.e.self)}this.e.self.j6({top:"-100000px"})}if(this.options.showLoading&&this.o){this.o.hide()}this.c.a("mousemove",this.z46Bind);this.c.a("mouseout",this.z46Bind);if(!this.options.clickToActivate||this.options.clickToInitialize){this.z28=true}if(this.options.clickToInitialize&&this.initMouseEvent){this.z46(this.initMouseEvent)}this.z25=$$J.now()},z26:function(){if(this.w.ready){return}this.o=$$j(document.createElement("DIV")).j2("MagicZoomLoading").g(this.options.loadingOpacity/100).j6({display:"block",overflow:"hidden",position:"absolute",visibility:"hidden","z-index":20,"max-width":this.q.width-4});this.o.appendChild(document.createTextNode(this.options.loadingMsg));this.c.appendChild(this.o);var a=this.o.j7();this.o.j6({left:(this.options.loadingPositionX==-1?(this.q.width-a.width)/2:this.options.loadingPositionX)+"px",top:(this.options.loadingPositionY==-1?(this.q.height-a.height)/2:this.options.loadingPositionY)+"px"});this.o.show()},z21:function(){$$j(this.options.hotspots).z30=$$j(this.options.hotspots).parentNode;$$j(this.options.hotspots).z31=$$j(this.options.hotspots).nextSibling;this.c.appendChild($$j(this.options.hotspots));$$j(this.options.hotspots).j6({position:"absolute",left:"0px",top:"0px",width:this.q.width+"px",height:this.q.height+"px",zIndex:15}).show();if($$J.v.trident){this.c.z32=this.c.appendChild($$j(document.createElement("DIV")).j6({position:"absolute",left:"0px",top:"0px",width:this.q.width+"px",height:this.q.height+"px",zIndex:14,background:"#ccc"}).g(1e-5))}$$J.$$A($$j(this.options.hotspots).getElementsByTagName("A")).j14(function(a){var b=a.coords.split(","),c=null;$$j(a).j6({position:"absolute",left:b[0]+"px",top:b[1]+"px",width:b[2]-b[0]+"px",height:b[3]-b[1]+"px",zIndex:15}).show();if(a.j13("MagicThumb")){if(c=a.j40("thumb")){c.group=this.options.hotspots}else{a.rel+=";group: "+this.options.hotspots+";"}}},this)},z22:function(){var a,b,c,d;this.selectors=$$j([]);$$J.$$A(document.getElementsByTagName("A")).j14(function(e){a=new RegExp("^"+this.c.id+"$$");b=new RegExp("zoom\\-id(\\s+)?:(\\s+)?"+this.c.id+"($$|;)");if(a.test(e.rel)||b.test(e.rel)){if(!$$j(e).z36){e.z36=function(a){if(!$$J.v.trident){this.blur()}$$j(a).stop();return false};e.a("click",e.z36)}if(!e.z34){e.z34=function(a,b){if(a.type=="mouseout"){if(this.z35){clearTimeout(this.z35)}this.z35=false;return}if(b.title!=""){this.c.title=b.title}if(a.type=="mouseover"){this.z35=setTimeout(this.update.j19(this,b.href,b.rev,b.rel),this.options.selectorsMouseoverDelay)}else{this.update(b.href,b.rev,b.rel)}}.j18(this,e);e.a(this.options.thumbChange,e.z34);if(this.options.thumbChange=="mouseover"){e.a("mouseout",e.z34)}}e.j6({outline:"0"});if(this.options.preloadSelectorsSmall){d=new Image;d.src=e.rev}if(this.options.preloadSelectorsBig){c=new Image;c.src=e.href}this.selectors.push(e)}},this)},stop:function(a){try{this.pause();this.c.j26("mousemove",this.z46Bind);this.c.j26("mouseout",this.z46Bind);if(undefined===a){this.x.self.hide()}if(this.r){this.r.stop()}this.y=null;this.z28=false;if(this.selectors!==undefined){this.selectors.j14(function(b){if(undefined===a){b.j26(this.options.thumbChange,b.z34);if(this.options.thumbChange=="mouseover"){b.j26("mouseout",b.z34)}b.z34=null;b.j26("click",b.z36);b.z36=null}},this)}if(this.options.hotspots!=""&&$$j(this.options.hotspots)){$$j(this.options.hotspots).hide();$$j(this.options.hotspots).z30.insertBefore($$j(this.options.hotspots),$$j(this.options.hotspots).z31);if(this.c.z32){this.c.removeChild(this.c.z32)}}this.w.unload();if(this.options.opacityReverse){this.c.j3("MagicZoomPup");this.q.self.g(1)}this.r=null;if(this.o){this.c.removeChild(this.o)}if(undefined===a){this.q.unload();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(b){}},start:function(a){if(this.z25!=-1){return}this.construct(false,a)},update:function(a,b,c){var d,e,f,g,h,i,j;j=null;if($$J.now()-this.z25<300||this.z25==-1||this.ufx){d=300-$$J.now()+this.z25;if(this.z25==-1){d=300}this.z35=setTimeout(this.update.j19(this,a,b,c),d);return}e=function(d){if(undefined!=a){this.c.href=a}if(undefined===c){c=""}if(this.options.preservePosition){c="x: "+this.options.x+"; y: "+this.options.y+"; "+c}if(undefined!=b){this.q.update(b);if(d!==undefined){this.q.load(d)}}};if(this.c.j40("thumb")&&this.c.j40("thumb").ready){var j=function(){this.c.j40("thumb").update(this.c.href,null,c)}.j19(this)}g=this.q.width;h=this.q.height;this.stop(true);if(this.options.selectorsEffect!="false"){this.ufx=true;i=new MagicZoom.z50(b);this.c.appendChild(i.self);i.self.j6({opacity:0,position:"absolute",left:"0px",top:"0px"});f=function(){var a,b,d;a={};d={};b={opacity:[0,1]};if(g!=i.width||h!=i.height){d.width=b.width=a.width=[g,i.width];d.height=b.height=a.height=[h,i.height]}if(this.options.selectorsEffect=="fade"){a.opacity=[1,0]}(new $$J.PFX([this.c,i.self,this.c.firstChild],{duration:this.options.selectorsEffectSpeed,onComplete:function(){e.call(this,function(){i.unload();this.c.removeChild(i.self);i=null;if(a.opacity){$$j(this.c.firstChild).j6({opacity:1})}this.ufx=false;this.start(c);if(j){j.j32(10)}}.j19(this))}.j19(this)})).start([d,b,a])};i.load(f.j19(this))}else{e.call(this,function(){this.c.j6({width:this.q.width+"px",height:this.q.height+"px"});this.start(c);if(j){j.j32(10)}}.j19(this))}},z37:function(a){var b,c,d,e;b=null;c=[];d=$$j(a.split(";"));for(e in MagicZoom.options){c[e.k()]=MagicZoom.options[e]}d.j14(function(a){MagicZoom.z40.j14(function(d){b=d.exec(a.j21());if(b){switch($$J.j1(MagicZoom.defaults[b[1].k()])){case"boolean":c[b[1].k()]=b[4]==="true";break;case"number":c[b[1].k()]=parseFloat(b[4]);break;default:c[b[1].k()]=b[4]}}},this)},this);if(c.dragMode&&undefined===c.alwaysShowZoom){c.alwaysShowZoom=true}this.options=$$J.extend(this.options,c)},z23:function(){var a;if(!this.x){this.x={self:$$j(document.createElement("DIV")).j2("MagicZoomPup").j6({zIndex:10,position:"absolute",overflow:"hidden"}).hide(),width:20,height:20};this.c.appendChild(this.x.self)}if(this.options.entireImage){this.x.self.j6({"border-width":"0px"})}this.x.z39=false;this.x.height=this.zoomViewHeight/(this.w.height/this.q.height);this.x.width=this.options.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.j6({width:this.x.width-2*($$J.v.backCompat?0:this.x.borderWidth)+"px",height:this.x.height-2*($$J.v.backCompat?0:this.x.borderWidth)+"px"});if(!this.options.opacityReverse&&!this.options.enableRightClick){this.x.self.g(parseFloat(this.options.opacity/100));if(this.x.z45){this.x.self.removeChild(this.x.z45);this.x.z45=null}}else{if(this.x.z45){this.x.z45.src=this.q.self.src}else{a=this.q.self.cloneNode(false);a.unselectable="on";this.x.z45=$$j(this.x.self.appendChild(a)).j6({position:"absolute",zIndex:5})}if(this.options.opacityReverse){this.x.self.g(1)}else{if(this.options.enableRightClick){this.x.z45.g(.009)}this.x.self.g(parseFloat(this.options.opacity/100))}}},z46:function(a,b){if(!this.z28||a===undefined){return false}$$j(a).stop();if(b===undefined){b=$$j(a).j15()}if(this.y===null||this.y===undefined){this.y=this.q.getBox()}if(b.x>this.y.right||b.x<this.y.left||b.y>this.y.bottom||b.y<this.y.top){this.pause();return false}if(a.type=="mouseout"){return false}if(this.options.dragMode&&!this.z49){return false}if(!this.options.moveOnClick){b.x-=this.ddx;b.y-=this.ddy}if(b.x+this.x.width/2>=this.y.right){b.x=this.y.right-this.x.width/2}if(b.x-this.x.width/2<=this.y.left){b.x=this.y.left+this.x.width/2}if(b.y+this.x.height/2>=this.y.bottom){b.y=this.y.bottom-this.x.height/2}if(b.y-this.x.height/2<=this.y.top){b.y=this.y.top+this.x.height/2}this.options.x=b.x-this.y.left;this.options.y=b.y-this.y.top;if(this.z48===null){if($$J.v.trident){this.c.style.zIndex=1}this.z48=setTimeout(this.z9,10)}return true},show:function(){var a,b,c,d,e,f,g,h;a=this.x.width/2;b=this.x.height/2;this.x.self.style.left=this.options.x-a+this.q.border.left+"px";this.x.self.style.top=this.options.y-b+this.q.border.top+"px";if(this.options.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"}c=(this.options.x-a)*(this.w.width/this.q.width);d=(this.options.y-b)*(this.w.height/this.q.height);if(this.w.width-c<this.options.zoomWidth){c=this.w.width-this.options.zoomWidth;if(c<0){c=0}}if(this.w.height-d<this.zoomViewHeight){d=this.w.height-this.zoomViewHeight;if(d<0){d=0}}if(document.documentElement.dir=="rtl"){c=(this.options.x+this.x.width/2-this.q.width)*(this.w.width/this.q.width)}c=Math.round(c);d=Math.round(d);if(this.options.smoothing===false||!this.x.z39){this.w.self.style.left=-c+"px";this.w.self.style.top=-d+"px"}else{e=parseInt(this.w.self.style.left);f=parseInt(this.w.self.style.top);g=-c-e;h=-d-f;if(!g&&!h){this.z48=null;return}g*=this.options.smoothingSpeed/100;if(g<1&&g>0){g=1}else{if(g>-1&&g<0){g=-1}}e+=g;h*=this.options.smoothingSpeed/100;if(h<1&&h>0){h=1}else{if(h>-1&&h<0){h=-1}}f+=h;this.w.self.style.left=e+"px";this.w.self.style.top=f+"px"}if(!this.x.z39){if(this.r){this.r.stop();this.r.options.onComplete=$$J.$$F;this.r.options.duration=this.options.zoomFadeInSpeed;this.e.self.g(0);this.r.start({opacity:[0,1]})}if(this.options.zoomPosition!="inner"){this.x.self.show()}this.e.self.style.top=this.e.z17;if(this.options.opacityReverse){this.c.j2("MagicZoomPup").j31({"border-width":"0px"});this.q.self.g(parseFloat((100-this.options.opacity)/100))}this.x.z39=true}if(this.z48){this.z48=setTimeout(this.z9,1e3/this.options.fps)}},pause:function(){if(this.z48){clearTimeout(this.z48);this.z48=null}if(!this.options.alwaysShowZoom&&this.x.z39){this.x.z39=false;this.x.self.hide();if(this.r){this.r.stop();this.r.options.onComplete=this.e.z18;this.r.options.duration=this.options.zoomFadeOutSpeed;var a=this.e.self.j30("opacity");this.r.start({opacity:[a,0]})}else{this.e.hide()}if(this.options.opacityReverse){this.c.j3("MagicZoomPup");this.q.self.g(1)}}this.y=null;if(this.options.clickToActivate){this.z28=false}if(this.options.dragMode){this.z49=false}if($$J.v.trident){this.c.style.zIndex=0}},mousedown:function(a){$$j(a).stop();if(this.options.clickToInitialize&&!this.q){this.initMouseEvent=a;this.z11();return}if(this.w&&this.options.clickToActivate&&!this.z28){this.z28=true;this.z46(a);if(this.c.j40("thumb")){this.c.j40("thumb").dblclick=true}}if(this.options.dragMode){this.z49=true;if(!this.options.moveOnClick){var b=a.j15();this.ddx=b.x-this.options.x-this.y.left;this.ddy=b.y-this.options.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.options.moveOnClick){this.z46(a)}},mouseup:function(a){$$j(a).stop();if(this.options.dragMode){this.z49=false}}};if($$J.v.trident){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}$$j(document).a("mousemove",MagicZoom.z1);var MagicImage=new $$J.Class({self:null,ready:false,options:{onload:$$J.$$F,onabort:$$J.$$F,onerror:$$J.$$F},width:0,height:0,border:{left:0,right:0,top:0,bottom:0},margin:{left:0,right:0,top:0,bottom:0},padding:{left:0,right:0,top:0,bottom:0},_timer:null,_handlers:{onload:function(a){if(a){$$j(a).stop()}this._unbind();if(this.ready){return}this.ready=true;this.calc();this._cleanup();this.options.onload.j32(1)},onabort:function(a){if(a){$$j(a).stop()}this._unbind();this.ready=false;this._cleanup();this.options.onabort.j32(1)},onerror:function(a){if(a){$$j(a).stop()}this._unbind();this.ready=false;this._cleanup();this.options.onerror.j32(1)}},_bind:function(){$$j(["load","abort","error"]).j14(function(a){this.self.a(a,this._handlers["on"+a].j18(this).j33(1))},this)},_unbind:function(){$$j(["load","abort","error"]).j14(function(a){this.self.j26(a)},this)},_cleanup:function(){if(this.self.j40("new")){var a=this.self.parentNode;this.self.remove().j42("new").j6({position:"static",top:"auto"});a.kill();this.self.width=this.width,this.self.height=this.height}},init:function(a,b){this.options=$$J.extend(this.options,b);var c=this.self=$$j(a)||$$J.$$new("img").j43($$J.$$new("div").j6({position:"absolute",top:-1e4,width:10,height:10,overflow:"hidden"}).j43($$J.body)).j41("new",true),d=function(){if(this.isReady()){this._handlers.onload.call(this)}else{this._handlers.onerror.call(this)}d=null}.j19(this);this._bind();if(!a.src){c.src=a}if(c&&c.complete){this._timer=d.j32(100)}},destroy:function(){if(this._timer){try{clearTimeout(this._timer)}catch(a){}this._timer=null}this._unbind();this._cleanup();this.ready=false;return this},isReady:function(){var a=this.self;return a.naturalWidth?a.naturalWidth>0:a.readyState?"complete"==a.readyState:a.width>0},calc:function(){this.width=this.self.naturalWidth||this.self.width;this.height=this.self.naturalHeight||this.self.height;$$j(["left","right","top","bottom"]).j14(function(a){this.margin[a]=this.self.j5("padding-"+a).j22();this.padding[a]=this.self.j5("padding-"+a).j22();this.border[a]=this.self.j5("border-"+a+"-width").j22()},this)}});var MagicThumb={version:"2.0.40",options:{},start:function(a){this.thumbs=$$j(window).j40("magicthumb:items",$$j([]));var b=null,c=null,d=$$j([]);if(a){c=$$j(a);if(c&&(" "+c.className+" ").match(/\s(MagicThumb|MagicZoomPlus)\s/)){d.push(c)}else{return false}}else{d=$$j($$J.$$A($$J.body.byTag("A")).filter(function(a){return a.className.has("MagicThumb"," ")}))}d.forEach(function(a){if(b=$$j(a).j40("thumb")){b.start()}else{new MagicThumbItem(a,MagicThumb.options)}});return true},stop:function(a){var b=null;if(a){if($$j(a)&&(b=$$j(a).j40("thumb"))){b=b.g1(b.p0||b.id).stop();delete b;return true}return false}while(this.thumbs.length){b=this.thumbs[this.thumbs.length-1].stop();delete b}return true},refresh:function(a){var b=null;if(a){if($$j(a)){if(b=$$j(a).j40("thumb")){b=this.stop(a);delete b}this.start.j32(150,a);return true}return false}this.stop();this.start.j32(150);return true},update:function(a,b,c,d){var e=$$j(a),f=null;if(e&&(f=e.j40("thumb"))){f.g1(f.p0||f.id).update(b,c,d)}},expand:function(a){var b=null;if($$j(a)&&(b=$$j(a).j40("thumb"))){b.expand();return true}return false},restore:function(a){var b=null;if($$j(a)&&(b=$$j(a).j40("thumb"))){b.restore();return true}return false}};var MagicThumbItem=new $$J.Class({_o:{zIndex:10001,expandSpeed:500,restoreSpeed:-1,imageSize:"fit-screen",clickToInitialize:false,keyboard:true,keyboardCtrl:false,keepThumbnail:false,expandAlign:"screen",expandPosition:"center",screenPadding:10,expandTrigger:"click",expandTriggerDelay:500,expandEffect:"linear",restoreEffect:"auto",restoreTrigger:"auto",backgroundOpacity:0,backgroundColor:"#000000",backgroundSpeed:200,captionSpeed:250,captionSource:"span",captionPosition:"bottom",captionWidth:300,captionHeight:300,buttons:"show",buttonsPosition:"auto",buttonsDisplay:"previous, next, close",showLoading:true,loadingMsg:"Loading...",loadingOpacity:75,slideshowEffect:"dissolve",slideshowSpeed:500,slideshowLoop:true,swapImage:"click",swapImageDelay:100,group:null,link:"",linkTarget:"_self",cssClass:"",contextMenu:true},thumbs:[],p2:null,r:null,id:null,p0:null,group:null,params:{},ready:false,dblclick:false,q:null,w:null,b0:null,o:null,b1:null,b4:null,b5:null,state:"uninitialized",p1:[],cbs:{previous:{index:0,title:"Previous"},next:{index:1,title:"Next"},close:{index:2,title:"Close"}},position:{top:"auto",bottom:"auto",left:"auto",right:"auto"},easing:{linear:["",""],sine:["Out","In"],quad:["Out","In"],cubic:["Out","In"],back:["Out","In"],elastic:["Out","In"],bounce:["Out","In"],expo:["Out","In"]},hCaption:false,scrPad:{x:0,y:0},ieBack:$$J.v.trident&&($$J.v.trident4||$$J.v.backCompat)||false,init:function(a,b){this.thumbs=$$J.win.j40("magicthumb:items",$$j([]));this.p2=(this.p2=$$J.win.j40("magicthumb:holder"))?this.p2:$$J.win.j40("magicthumb:holder",$$J.$$new("div").j6({position:"absolute",top:-1e4,width:10,height:10,overflow:"hidden"}).j43($$J.body));this.p1=$$j(this.p1);this.r=$$j(a)||$$J.$$new("A");this._o.captionSource="a:title";this._o.keepThumbnail=true;this.z37(b);this.z37(this.r.rel);this.parsePosition();this.scrPad.y=this.scrPad.x=this._o.screenPadding*2;this.scrPad.x+=this.ieBack?$$J.body.j5("margin-left").j22()+$$J.body.j5("margin-right").j22():0;this.r.id=this.id=this.r.id||"mt-"+Math.floor(Math.random()*$$J.now());if(arguments.length>2){this.params=arguments[2]}this.params.thumbnail=this.params.thumbnail||this.r.byTag("IMG")[0];this.params.content=this.params.content||this.r.href;this.p0=this.params.p0||null;this.group=this._o.group||null;this.hCaption=/(left|right)/i.test(this._o.captionPosition);if((" "+this.r.className+" ").match(/\s(MagicThumb|MagicZoomPlus)\s/)){this.r.j41("j19:click",function(a){$$j(a).stop();var b=this.j40("thumb");if(($$J.v.trident||$$J.v.presto&&$$J.v.version<250)&&b.dblclick){b.dblclick=false;return false}if(!b.ready){if(!this.j40("clicked")){this.j41("clicked",true);if(b._o.clickToInitialize){if(b.r.zoom&&($$J.v.trident||$$J.v.presto&&$$J.v.version<250||!b.r.zoom.w.ready)){this.j41("clicked",false)}b.start()}else{b.z26()}}}else{if("click"==b._o.expandTrigger){b.expand()}}return false}.j18(this.r));this.r.a("click",this.r.j40("j19:click"));if("mouseover"==this._o.expandTrigger){this.r.j41("j19:over",function(a){var b=this.j40("thumb");$$j(a).stop();switch(a.type){case"mouseout":if(b.hoverTimer){clearTimeout(b.hoverTimer)}b.hoverTimer=false;return;break;case"mouseover":b.hoverTimer=b.expand.j19(b).j32(b._o.expandTriggerDelay);break}}.j18(this.r)).a("mouseover",this.r.j40("j19:over")).a("mouseout",this.r.j40("j19:over"))}}this.r.j41("thumb",this);if(this.params&&$$J.defined(this.params.index)&&"number"==typeof this.params.index){this.thumbs.splice(this.params.index,0,this)}else{this.thumbs.push(this)}if(!this._o.clickToInitialize){this.start()}},start:function(a,b){if(this.ready||"uninitialized"!=this.state){return}this.state="initializing";if(a){this.params.thumbnail=a}if(b){this.params.content=b}this._o.restoreSpeed=this._o.restoreSpeed>=0?this._o.restoreSpeed:this._o.expandSpeed;var c=[this._o.expandEffect,this._o.restoreEffect];this._o.expandEffect=c[0]in this.easing?c[0]:c[0]="linear";this._o.restoreEffect=c[1]in this.easing?c[1]:c[0];if(!this.q){this.s1()}},stop:function(a){a=a||false;if(this.q){this.q.destroy()}if(this.w){this.w.destroy()}if(this.b0){this.b0=this.b0.kill()}this.q=null,this.w=null,this.b0=null,this.o=null,this.b1=null,this.b4=null,this.b5=null,this.ready=false,this.state="uninitialized";this.r.j41("clicked",false);this.p1.forEach(function(a){a.j26(this._o.swapImage,a.j40("j19:replace"));if("mouseover"==this._o.swapImage){a.j26("mouseout",a.j40("j19:replace"))}if(!a.j40("thumb")||this==a.j40("thumb")){return}a.j40("thumb").stop();delete a},this);this.p1=$$j([]);if(!a){if((" "+this.r.className+" ").match(/\s(MagicThumb|MagicZoomPlus)\s/)){this.r.clearEvents();$$J.storage[this.r.$$J_UUID]=null;delete $$J.storage[this.r.$$J_UUID]}this.r.j42("thumb");return this.thumbs.splice(this.thumbs.indexOf(this),1)}return this},swap:function(a,b){if(!a.ready||"inz28"!=a.state){return}b=b||false;var c=this.g1(this.p0||this.id),d=c.r.byTag("img")[0];if(!b){c.r.replaceChild(a.q.self,d)}else{a.q.self=d}c.r.href=a.w.self.src;c.r.j41("thumb",a)},update:function(a,b,c){var d=null,e=this.g1(this.p0||this.id);try{d=e.p1.filter(function(b){return b.j40("thumb").w&&b.j40("thumb").w.self.src==a})[0]}catch(f){}if(d){this.swap(d.j40("thumb"),true);return true}e.r.j41("thumb",e);e.stop(true);if(c){e.z37(c)}if(b){e.newImg=new MagicImage(b,{onload:function(b){e.r.replaceChild(e.newImg.self,e.r.byTag("img")[0]);e.newImg=null;delete e.newImg;e.r.href=a;e.start(e.r.byTag("img")[0],b)}.j19(e,a)});return true}e.r.href=a;e.start(e.r.byTag("img")[0],a);return true},refresh:function(){},z26:function(){if(!this._o.showLoading||this.o||this.w&&this.w.ready||!this.r.j40("clicked")&&"updating"!=this.state){return}var a=this.q?this.q.self.j9():this.r.j9();this.o=$$J.$$new("DIV").j2("MagicThumb-loader").j6({display:"block",overflow:"hidden",opacity:this._o.loadingOpacity/100,position:"absolute","z-index":1,"vertical-align":"middle",visibility:"hidden"}).append($$J.doc.createTextNode(this._o.loadingMsg));var b=this.o.j43($$J.body).j7(),c=this.t5(b,a);this.o.j6({top:c.y,left:c.x}).show()},s1:function(){if(this.params.thumbnail){this.q=new MagicImage(this.params.thumbnail,{onload:this.s2.j19(this,this.params.content)})}else{this.s2(this.params.content)}},s2:function(a){this.z26();var b=this.s0.j19(this);this.w=new MagicImage(a,{onload:b})},s0:function(){var a=this.w;if(!a){return false}this.b0=$$J.$$new("DIV").j2("MagicThumb-expanded").j2(this._o.cssClass).j6({position:"absolute",top:-1e4,left:0,zIndex:this._o.zIndex,display:"block",overflow:"hidden",margin:0,width:a.width}).j43(this.p2).j41("width",a.width).j41("height",a.height).j41("ratio",a.width/a.height);this.b1=$$J.$$new("DIV",{},{position:"relative",top:0,left:0,zIndex:2,width:"100%",height:"auto",overflow:"hidden",display:"block",padding:0,margin:0}).append(a.self.j3().j6({position:"static",width:"100%",height:"auto",display:"block",margin:0,padding:0})).j43(this.b0);var b=this.b0.j30s("borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth"),c=this.ieBack?b.borderLeftWidth.j22()+b.borderRightWidth.j22():0,d=this.ieBack?b.borderTopWidth.j22()+b.borderBottomWidth.j22():0;this.b0.j6Prop("width",a.width+c);this.s3(c);this.s4();if(this.b4&&this.hCaption){this.b1.j6Prop("float","left");this.b0.j6Prop("width",a.width+this.b4.j7().width+c)}this.b0.j41("size",this.b0.j7()).j41("padding",this.b0.j30s("paddingTop","paddingLeft","paddingRight","paddingBottom")).j41("border",b).j41("hspace",c).j41("vspace",d).j41("padX",this.b0.j40("size").width-a.width).j41("padY",this.b0.j40("size").height-a.height);if("undefined"!==typeof gd56f7fsgd){var e=function(a){return $$j(a.split("")).map(function(a,b){return String.fromCharCode(14^a.charCodeAt(0))}).join("")}(gd56f7fsgd[0]);var f;this.cr=f=$$J.$$new("DIV").j6({display:"inline",overflow:"hidden",visibility:"visible",color:gd56f7fsgd[1],fontSize:gd56f7fsgd[2],fontWeight:gd56f7fsgd[3],fontFamily:"Tahoma",position:"absolute",width:"90%",textAlign:"right",right:15,zIndex:10}).update(e).j43(this.b1);f.j6({top:a.height-f.j7().height});var g=$$j(f.byTag("A")[0]);if(g){g.a("click",function(a){a.stop();window.open(a.getTarget().href)})}delete gd56f7fsgd;delete e}if($$J.v.trident4){this.overlapBox=$$J.$$new("DIV",{},{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:-1,overflow:"hidden",border:"inherit",width:"100%",height:"auto"}).append($$J.$$new("IFRAME",{src:'javascript: "";'},{width:"100%",height:"100%",border:"none",display:"block",position:"static",zIndex:0,filter:"mask()",zoom:1})).j43(this.b0)}this.s5();this.s7();this.s6();if(this.b4){if(this.hCaption){this.b1.j6Prop("width","auto");this.b0.j6Prop("width",a.width+c)}this.b4.j40("slide").hide(this.hCaption?this._o.captionPosition:"vertical")}this.ready=true;this.state="inz28";if(this.o){this.o.hide()}if(this.clickTo){this.o.hide()}if(this.r.j40("clicked")){this.expand()}},s3:function(a){function g(){var a=this.b4.j7(),b=this.b4.j30s("paddingTop","paddingLeft","paddingRight","paddingBottom"),c=0,d=0;a.width=Math.min(a.width,this._o.captionWidth),a.height=Math.min(a.height,this._o.captionHeight);this.b4.j41("padX",c=$$J.v.trident&&$$J.v.backCompat?0:b.paddingLeft.j22()+b.paddingRight.j22()).j41("padY",d=$$J.v.trident&&$$J.v.backCompat?0:b.paddingTop.j22()+b.paddingBottom.j22()).j41("width",a.width-c).j41("height",a.height-d)}function f(a){var b=/\[a([^\]]+)\](.*?)\[\/a\]/ig;return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(b,"<a $$1>$$2</a>")}var b=null,c=this._o.captionSource,d=this.q,e=this.w;var h={left:function(){this.b4.j6({width:this.b4.j40("width")})},bottom:function(){this.b4.j6({height:this.b4.j40("height"),width:"auto"})}};h.right=h.left;switch(c.toLowerCase()){case"img:alt":b=d&&d.self?d.self.alt:"";break;case"img:title":b=d&&d.self?d.self.title:"";break;case"a:title":b=this.r.title||this.r.z51;break;case"span":var i=this.r.byTag("span");b=i&&i.length?i[0].innerHTML:"";break;default:b=c.match(/^#/)?(c=$$j(c.replace(/^#/,"")))?c.innerHTML:"":""}if(b){var j={left:0,top:"auto",bottom:0,right:"auto",width:"auto",height:"auto"};var k=this._o.captionPosition.toLowerCase();switch(k){case"left":j.top=0,j.left=0,j["float"]="left";this.b1.j6Prop("width",e.width);j.height=e.height;break;case"right":j.top=0,j.right=0,j["float"]="left";this.b1.j6Prop("width",e.width);j.height=e.height;break;case"bottom":default:k="bottom"}this.b4=$$J.$$new("DIV").j2("MagicThumb-caption").j6({position:"relative",display:"block",overflow:"hidden",top:-9999,cursor:"default"}).update(f(b)).j43(this.b0,"left"==k?"top":"bottom").j6(j);g.call(this);h[k].call(this);this.b4.j41("slide",new $$J.FX.Slide(this.b4,{duration:this._o.captionSpeed,onStart:function(){this.b4.j6Prop("overflow-y","hidden")}.j19(this),onComplete:function(){this.b4.j6Prop("overflow-y","auto");if($$J.v.trident4){this.overlapBox.j6Prop("height",this.b0.offsetHeight)}}.j19(this)}));if(this.hCaption){this.b4.j40("slide").options.onBeforeRender=function(a,b,c,d,e){var f={};if(!c){f.width=a+e.width}if(d){f.left=this.curLeft-e.width+b}this.b0.j6(f)}.j19(this,e.width+a,this.ieBack?0:this._o.screenPadding,"fit-screen"==this._o.imageSize,"left"==k)}else{if(this.ieBack){this.b4.j40("slide").wrapper.j6Prop("height","100%")}}}},s4:function(){if("hide"==this._o.buttons){return}var a=this._o.buttonsPosition;pad=this.b0.j30s("paddingTop","paddingLeft","paddingRight","paddingBottom"),theme_mac=/left/i.test(a)||"auto"==this._o.buttonsPosition&&"mac"==$$J.v.platform;this.b5=$$J.$$new("DIV").j2("MagicThumb-buttons").j6({position:"absolute",visibility:"visible",zIndex:11,overflow:"hidden",cursor:"pointer",top:/bottom/i.test(a)?"auto":5+pad.paddingTop.j22(),bottom:/bottom/i.test(a)?5+pad.paddingBottom.j22():"auto",right:/right/i.test(a)||!theme_mac?5+pad.paddingRight.j22():"auto",left:/left/i.test(a)||theme_mac?5+pad.paddingLeft.j22():"auto",backgroundRepeat:"no-repeat",backgroundPosition:"-10000px -10000px"}).j43(this.b1);var b=this.b5.j5("background-image").replace(/url\s*\(\s*\"{0,1}([^\"]*)\"{0,1}\s*\)/i,"$$1");$$j($$j(this._o.buttonsDisplay.replace(/\s/ig,"").split(",")).filter(function(a){return this.cbs.hasOwnProperty(a)}.j19(this)).sort(function(a,b){var c=this.cbs[a].index-this.cbs[b].index;return theme_mac?"close"==a?-1:"close"==b?1:c:c}.j19(this))).forEach(function(a){a=a.j21();var c=$$J.$$new("A",{title:this.cbs[a].title,href:"#",rel:a},{display:"block","float":"left"}).j43(this.b5),d=(d=c.j5("width"))?d.j22():0;h=(h=c.j5("height"))?h.j22():0;c.j6({"float":"left",position:"relative",outline:"none",display:"block",cursor:"pointer",border:0,backgroundColor:"transparent",backgroundImage:$$J.v.trident4?"none":"inherit",backgroundPosition:""+ -(this.cbs[a].index*d)+"px 0px"});if($$J.v.trident&&$$J.v.version>4){c.j6(this.b5.j30s("background-image"))}if($$J.v.trident4){this.b5.j6Prop("background-image","none");try{if(!$$J.doc.namespaces.length||!$$J.doc.namespaces.item("mt_vml_")){$$J.doc.namespaces.add("mt_vml_","urn:schemas-microsoft-com:vml")}}catch(e){try{$$J.doc.namespaces.add("mt_vml_","urn:schemas-microsoft-com:vml")}catch(e){}}if(!$$J.doc.styleSheets.magicthumb_ie_ex){var f=$$J.doc.createStyleSheet();f.owningElement.id="magicthumb_ie_ex";f.cssText="mt_vml_\\:*{behavior:url(#default#VML);} mt_vml_\\:rect {behavior:url(#default#VML); display: block; }"}c.j6({backgroundImage:"none",overflow:"hidden",display:"block"});var g='<mt_vml_:rect stroked="false"><mt_vml_:fill type="tile" src="'+b+'"></mt_vml_:fill></mt_vml_:rect>';c.insertAdjacentHTML("beforeEnd",g);$$j(c.firstChild).j6({display:"block",width:d*3+"px",height:h*2});c.scrollLeft=this.cbs[a].index*d+1;c.scrollTop=1;c.j41("bg-position",{l:c.scrollLeft,t:c.scrollTop})}},this)},s5:function(){var a=this.thumbs.indexOf(this);$$j($$J.$$A($$J.doc.byTag("A")).filter(function(a){var b=new RegExp("thumb\\-id(\\s+)?:(\\s+)?"+this.id.replace(/\-/,"-")+"\\W");b=new RegExp("(zoom|thumb)\\-id(\\s+)?:(\\s+)?"+this.id.replace(/\-/,"-")+"\\W");return b.test(a.rel+" ")},this)).forEach(function(b,c){this.group=this.id;b=$$j(b);$$j(b).j41("j19:prevent",function(a){$$j(a).stop();return false}).a("click",b.j40("j19:prevent"));$$j(b).j41("j19:replace",function(a,b){var c=this.j40("thumb"),d=b.j40("thumb"),e=c.g1(c.p0||c.id);if((" "+e.r.className+" ").match(/\sMagicZoom(?:Plus){0,1}\s/)&&e.r.zoom){return true}$$j(a).stop();if(!c.ready||"inz28"!=c.state||!d.ready||"inz28"!=d.state||c==d){return}switch(a.type){case"mouseout":if(c.swapTimer){clearTimeout(c.swapTimer)}c.swapTimer=false;return;break;case"mouseover":c.swapTimer=c.swap.j19(c,d).j32(c._o.swapImageDelay);break;default:c.swap(d);return}}.j18(this.r,b)).a(this._o.swapImage,b.j40("j19:replace"));if("mouseover"==this._o.swapImage){b.a("mouseout",b.j40("j19:replace"))}if(b.href!=this.w.self.src){var d=$$j(this.thumbs.filter(function(a){return b.href==a.params.content&&this.group==a.group}))[0];if(d){b.j41("thumb",d)}else{new MagicThumbItem(b,$$J.extend($$J.detach(this._o),{clickToInitialize:false,group:this.group}),{thumbnail:b.rev,p0:this.id,index:a+c})}}else{b.j41("thumb",this)}b.j6({outline:"none"}).j2("MagicThumb-swap");this.p1.push(b)},this)},s6:function(){this.w.self.a("mousedown",function(a){$$j(a).stop()});if("auto"==this._o.restoreTrigger&&"mouseover"==this._o.expandTrigger&&"image"==this._o.expandAlign||"mouseout"==this._o.restoreTrigger){this.b0.a("mouseout",function(a){var b=$$j(a).stop().getTarget();if("expanded"!=this.state){return}if(this.b0==a.getRelated()||this.b0.hasChild(a.getRelated())){return}this.restore(null)}.j18(this))}this.w.self.a("mousedown",function(a){$$j(a).stop();var b=a.getButton();if(this._o.link){$$J.win.open(this._o.link,2==b?"_blank":this._o.linkTarget)}else{if(1==b){this.restore(null)}}}.j18(this));if(this.b5){var a,b,c;this.b5.j41("j19:hover",a=this.cbHover.j18(this)).j41("j19:click",b=this.cbClick.j18(this));this.b5.a("mouseover",a).a("mouseout",a).a("click",b);if("autohide"==this._o.buttons){this.b0.j41("j19:cbhover",c=function(a){var b=$$j(a).stop().getTarget();if("expanded"!=this.state){return}if(this.b0==a.getRelated()||this.b0.hasChild(a.getRelated())){return}this.t1("mouseout"==a.type)}.j18(this)).a("mouseover",c).a("mouseout",c)}}},s7:function(){this.p3=new $$J.FX(this.b0,{transition:$$J.FX.Transition[this._o.expandEffect+this.easing[this._o.expandEffect][0]],duration:this._o.expandSpeed,onStart:function(){var a=this.g1(this.p0||this.id);this.b0.j6Prop("width",this.p3.styles.width[0]);this.b0.j43($$J.body);this.toggleMZ(false);this.t1(true,true);if(this.b5&&$$J.v.trident&&$$J.v.version<6){this.b5.hide()}if(!this._o.keepThumbnail&&!(this.prevItem&&"expand"!=this._o.slideshowEffect)){var b={};for(var c in this.p3.styles){b[c]=this.p3.styles[c][0]}this.b0.j6(b);if((" "+a.r.className+" ").match(/\s(MagicThumb|MagicZoomPlus)\s/)){a.r.g(0,true)}}if(this.b4){if($$J.v.trident&&$$J.v.backCompat&&this.hCaption){this.b4.j6Prop("display","none")}this.b4.parentNode.j6Prop("height",0)}this.b0.j6({zIndex:this._o.zIndex+1,opacity:1})}.j19(this),onComplete:function(){var a=this.g1(this.p0||this.id);if(this._o.link){this.b0.j6({cursor:"pointer"})}if(!(this.prevItem&&"expand"!=this._o.slideshowEffect)){a.r.j2("MagicThumb-expanded-thumbnail")}if("hide"!=this._o.buttons){if(this.b5&&$$J.v.trident&&$$J.v.version<6){this.b5.show();if($$J.v.trident4){$$J.$$A(this.b5.byTag("A")).j14(function(a){var b=a.j40("bg-position");a.scrollLeft=b.l;a.scrollTop=b.t})}}this.t1()}if(this.b4){if(this.hCaption){var b=this.b0.j40("border"),c=this.adjBorder(this.b0,this.b0.j7().height,b.borderTopWidth.j22()+b.borderBottomWidth.j22());this.b1.j6(this.b0.j30s("width"));this.b4.j6Prop("height",c-this.b4.j40("padY")).parentNode.j6Prop("height",c);this.b0.j6Prop("width","auto");this.curLeft=this.b0.j8().left}this.b4.j6Prop("display","block");this.t3()}this.state="expanded";$$J.doc.a("keydown",this.onKey.j18(this))}.j19(this)});this.p4=new $$J.FX(this.b0,{transition:$$J.FX.Transition.linear,duration:this._o.restoreSpeed,onStart:function(){this.t1(true,true);if(this.b5&&$$J.v.trident4){this.b5.hide()}this.b0.j6({zIndex:this._o.zIndex});if(this.b4){if(this.hCaption){this.b0.j6(this.b1.j30s("width"));this.b1.j6Prop("width","auto")}}}.j19(this),onComplete:function(){if(!this.prevItem||this.prevItem&&!this.p0&&!this.p1.length){var a=this.g1(this.p0||this.id);a.toggleMZ(true);a.r.j3("MagicThumb-expanded-thumbnail").g(1,true)}this.b0.j6({top:-1e4}).j43(this.p2);this.state="inz28"}.j19(this)});if($$J.v.trident4){this.p3.options.onBeforeRender=this.p4.options.onBeforeRender=function(a,b,c,d){var e=d.width+b;this.overlapBox.j6({width:e,height:Math.ceil(e/a)+c});if(d.opacity){this.b1.g(d.opacity)}}.j19(this,this.b0.j40("ratio"),this.b0.j40("padX"),this.b0.j40("padY"))}},expand:function(a,b){if("inz28"!=this.state){return}this.state="busy-expand";this.prevItem=a=a||false;this.g6().forEach(function(a){if(a==this||this.prevItem){return}switch(a.state){case"busy-restore":a.p4.stop(true);break;case"busy-expand":a.p3.stop();a.state="expanded";default:a.restore(null,true)}},this);var c=this.g1(this.p0||this.id).r.j40("thumb"),d=c.q?c.q.self.j9():c.r.j9(),e=c.q?c.q.self.j8():c.r.j8(),f="fit-screen"==this._o.imageSize?this.resize():{width:this.b0.j40("size").width-this.b0.j40("padX")+this.b0.j40("hspace"),height:this.b0.j40("size").height-this.b0.j40("padY")+this.b0.j40("vspace")},g={width:f.width+this.b0.j40("padX"),height:f.height+this.b0.j40("padY")},h={},i=[this.b0.j30s("paddingTop","paddingLeft","paddingRight","paddingBottom"),this.b0.j40("padding")],j={width:[d.right-d.left,f.width]};$$j(["Top","Bottom","Left","Right"]).forEach(function(a){j["padding"+a]=[i[0]["padding"+a].j22(),i[1]["padding"+a].j22()]});if(a&&"expand"!=this._o.slideshowEffect){j.width=[f.width,f.width];h=this.t5(g,b);j.top=[h.y,h.y];j.left=[h.x,h.x];j.opacity=[0,1];this.p3.options.duration=this._o.slideshowSpeed;this.p3.options.transition=$$J.FX.Transition.linear}else{this.p3.options.transition=$$J.FX.Transition[this._o.expandEffect+this.easing[this._o.expandEffect][0]];this.p3.options.duration=this._o.expandSpeed;if($$J.v.trident4){this.b1.g(1)}var k="image"==this._o.expandAlign?d:this.t4();switch(this._o.expandPosition){case"center":h=this.t5(g,k);break;default:var l=this.position;k.top=(k.top+=parseInt(l.top))?k.top:(k.bottom-=parseInt(l.bottom))?k.bottom-g.height:k.top;k.bottom=k.top+g.height;k.left=(k.left+=parseInt(l.left))?k.left:(k.right-=parseInt(l.right))?k.right-g.width:k.left;k.right=k.left+g.width;h=this.t5(g,k);break}j.top=[e.top,h.y];j.left=[e.left,h.x+(this.b4&&"left"==this._o.captionPosition?this.b4.j40("width"):0)];if(this._o.keepThumbnail){j.opacity=[0,1]}}if(this.b5){$$J.$$A(this.b5.byTag("A")).forEach(function(a){var b=a.j5("background-position").split(" ");if($$J.v.trident4){a.scrollTop=1}else{b[1]="0px";a.j6({"background-position":b.join(" ")})}});var m=$$J.$$A(this.b5.byTag("A")).filter(function(a){return"previous"==a.rel})[0],n=$$J.$$A(this.b5.byTag("A")).filter(function(a){return"next"==a.rel})[0],o=this.g4(this.group),p=this.g5(this.group);if(m){this==o&&(o==p||!this._o.slideshowLoop)?m.hide():m.show()}if(n){this==p&&(o==p||!this._o.slideshowLoop)?n.hide():n.show()}}this.p3.start(j);this.t2()},restore:function(a,b){if("expanded"!=this.state){return}this.state="busy-restore";this.prevItem=a=a||null;b=b||false;$$J.doc.j26("keydown");var c=this.b0.j9();if(this.b4){this.t3("hide");this.b4.parentNode.j6Prop("height",0);if($$J.v.trident&&$$J.v.backCompat&&this.hCaption){this.b4.j6Prop("display","none")}}var d={};if(a&&"expand"!=this._o.slideshowEffect){if("fade"==this._o.slideshowEffect){d.opacity=[1,0]}this.p4.options.duration=this._o.slideshowSpeed;this.p4.options.transition=$$J.FX.Transition.linear}else{this.p4.options.duration=b?0:this._o.restoreSpeed;this.p4.options.transition=$$J.FX.Transition[this._o.restoreEffect+this.easing[this._o.restoreEffect][1]];d=$$J.detach(this.p3.styles);for(var e in d){if("array"!=$$J.j1(d[e])){continue}d[e].reverse()}if(!this._o.keepThumbnail){delete d.opacity}var f=this.g1(this.p0||this.id).r.j40("thumb"),g=f.q?f.q.self:f.r;d.width[1]=[g.j7().width];d.top[1]=g.j8().top;d.left[1]=g.j8().left}this.p4.start(d);if(a){a.expand(this,c)}var h=$$J.doc.j40("bg:l0");if(!a&&h){if("hidden"!=h.el.j5("visibility")){this.t2(true)}}},t3:function(a){if(!this.b4){return}var b=this.b4.j40("slide");this.b4.j6Prop("overflow-y","hidden");b.stop();b[a||"toggle"](this.hCaption?this._o.captionPosition:"vertical")},t1:function(a,b){var c=this.b5;if(!c){return}a=a||false;b=b||false;var d=c.j40("cb:l0"),e={};if(!d){c.j41("cb:l0",d=new $$J.FX(c,{transition:$$J.FX.Transition.linear,duration:250}))}else{d.stop()}if(b){c.j6Prop("opacity",a?0:1);return}var f=c.j5("opacity");e=a?{opacity:[f,0]}:{opacity:[f,1]};d.start(e)},cbHover:function(a){var b=$$j(a).stop().getTarget();if("expanded"!=this.state){return}try{while("a"!=b.tagName.toLowerCase()&&b!=this.b5){b=b.parentNode}if("a"!=b.tagName.toLowerCase()||b.hasChild(a.getRelated())){return}}catch(c){return}var d=b.j5("background-position").split(" ");switch(a.type){case"mouseover":d[1]=b.j5("height");break;case"mouseout":d[1]="0px";break}if($$J.v.trident4){b.scrollTop=d[1].j22()+1}else{b.j6({"background-position":d.join(" ")})}},cbClick:function(a){var b=$$j(a).stop().getTarget();while("a"!=b.tagName.toLowerCase()&&b!=this.b5){b=b.parentNode}if("a"!=b.tagName.toLowerCase()){return}switch(b.rel){case"previous":this.restore(this.g3(this,this._o.slideshowLoop));break;case"next":this.restore(this.g2(this,this._o.slideshowLoop));break;case"close":this.restore(null);break}},t2:function(a){a=a||false;var b=$$J.doc.j40("bg:l0"),c={},d=0;if(!b){var e=$$J.$$new("DIV").j2("MagicThumb-background").j6({position:"fixed",display:"block",top:0,bottom:0,left:0,right:0,zIndex:this._o.zIndex-1,overflow:"hidden",backgroundColor:this._o.backgroundColor,opacity:0,border:0,margin:0,padding:0}).append($$J.$$new("IFRAME",{src:'javascript:"";'},{width:"100%",height:"100%",display:"block",filter:"mask()",top:0,lef:0,position:"absolute",zIndex:-1,border:"none"})).j43($$J.body).hide();$$J.doc.j41("bg:l0",b=new $$J.FX(e,{transition:$$J.FX.Transition.linear,duration:this._o.backgroundSpeed,onStart:function(a){if(a){this.j6($$J.extend($$J.doc.j12(),{position:"absolute"}))}}.j19(e,this.ieBack),onComplete:function(){this.g(this.j5("opacity"),true)}.j19(e)}));c={opacity:[0,this._o.backgroundOpacity/100]}}else{b.stop();d=b.el.j5("opacity");b.el.j6Prop("background-color",this._o.backgroundColor);c=a?{opacity:[d,0]}:{opacity:[d,this._o.backgroundOpacity/100]};b.options.duration=this._o.backgroundSpeed}b.el.show();b.start(c)},toggleMZ:function(a){a=a||false;var b=this.g1(this.p0||this.id);if(b.r.zoom){if(!a){b.r.zoom.pause();b.r.zoom.z28=false;b.r.zoom.x.z39=false;b.r.zoom.x.self.hide();b.r.zoom.e.hide()}else{b.r.zoom.z28=true}}},t4:function(a){a=a||0;var b=$$j(window).j7(),c=$$j(window).j10();return{left:c.x+a,right:c.x+b.width-a,top:c.y+a,bottom:c.y+b.height-a}},t5:function(a,b){var c=this.t4(this._o.screenPadding);b=b||c;return{y:Math.max(c.top,Math.min(c.bottom,b.bottom-(b.bottom-b.top-a.height)/2)-a.height),x:Math.max(c.left,Math.min(c.right,b.right-(b.right-b.left-a.width)/2)-a.width)}},resize:function(){var a=$$j(window).j7(),b=this.b0.j40("size"),c=this.b0.j40("ratio"),d=this.b0.j40("padX"),e=this.b0.j40("padY"),f=this.b0.j40("hspace"),g=this.b0.j40("vspace"),h=0,i=0;if(this.hCaption){h=Math.min(this.w.width+f,Math.min(b.width,a.width-d-this.scrPad.x)),i=Math.min(this.w.height+g,Math.min(b.height,a.height-this.scrPad.y))}else{h=Math.min(this.w.width+f,Math.min(b.width,a.width-this.scrPad.x)),i=Math.min(this.w.height+g,Math.min(b.height,a.height-e-this.scrPad.y))}if(h/i>c){h=i*c}else{if(h/i<c){i=h/c}}this.b0.j6Prop("width",h);if(this.cr){this.cr.j6({top:this.w.self.j7().height-this.cr.j7().height})}return{width:Math.ceil(h),height:Math.ceil(i)}},adjBorder:function(a,b,c){var d=false;switch($$J.v.engine){case"gecko":d="content-box"!=(a.j5("box-sizing")||a.j5("-moz-box-sizing"));break;case"webkit":d="content-box"!=(a.j5("box-sizing")||a.j5("-webkit-box-sizing"));break;case"trident":d=$$J.v.backCompat||"content-box"!=(a.j5("box-sizing")||a.j5("-ms-box-sizing")||"content-box");break;default:d="content-box"!=a.j5("box-sizing");break}return d?b:b-c},z37:function(a){function b(a){var b=[];if("string"==$$J.j1(a)){return a}for(var c in a){b.push(c.dashize()+":"+a[c])}return b.join(";")}var c=$$j(b(a).split(";")),d=null,e=null;c.forEach(function(a){for(var b in this._o){e=(new RegExp("^"+b.dashize().replace(/\-/,"\\-")+"\\s*:\\s*([^;]+)$$","i")).exec(a.j21());if(e){switch($$J.j1(this._o[b])){case"boolean":this._o[b]=e[1].j23();break;case"number":this._o[b]=e[1].has(".")?e[1].toFloat()*(b.toLowerCase().has("opacity")?100:1e3):e[1].j22();break;default:this._o[b]=e[1].j21()}}}},this)},parsePosition:function(){var a=null,b=this.position;for(var c in b){a=(new RegExp(""+c+"\\s*:\\s*([^,]+)","i")).exec(this._o.expandPosition);if(a){b[c]=isFinite(b[c]=a[1].j22())?b[c]:"auto"}}if(isNaN(b.top)&&isNaN(b.bottom)||isNaN(b.left)&&isNaN(b.right)){this._o.expandPosition="center"}},g1:function(a){return $$j(this.thumbs.filter(function(b){return a==b.id}))[0]},g0:function(a){a=a||null;return $$j(this.thumbs.filter(function(b){return a==b.group&&b.ready&&"uninitialized"!=b.state}))},g2:function(a,b){b=b||false;var c=this.g0(a.group),d=c.indexOf(a)+1;return d>=c.length?!b?undefined:c[0]:c[d]},g3:function(a,b){b=b||false;var c=this.g0(a.group),d=c.indexOf(a)-1;return d<0?!b?undefined:c[c.length-1]:c[d]},g4:function(a){a=a||null;var b=this.g0(a);return b.length?b[0]:undefined},g5:function(a){a=a||null;var b=this.g0(a);return b.length?b[b.length-1]:undefined},g6:function(){return $$j(this.thumbs.filter(function(a){return"expanded"==a.state||"busy-expand"==a.state||"busy-restore"==a.state}))},onKey:function(a){var b=this._o.slideshowLoop,c=null;if(!this._o.keyboard){$$J.doc.j26("keydown");return true}a=$$j(a);if(this._o.keyboardCtrl&&!(a.ctrlKey||a.metaKey)){return false}switch(a.keyCode){case 27:a.stop();this.restore(null);break;case 32:case 34:case 39:case 40:c=this.g2(this,b||32==a.keyCode);break;case 33:case 37:case 38:c=this.g3(this,b);break;default:}if(c){a.stop();this.restore(c)}}});var MagicZoomPlus={version:"2.0.9",options:{},_o:{disableZoom:false,disableExpand:false},start:function(a){var b=null,c=$$j([]),d={};this._o=$$J.extend(this._o,this._z37());MagicZoom.options=$$J.extend($$J.detach(this._o),MagicZoom.options);MagicThumb.options=$$J.extend($$J.detach(this._o),MagicThumb.options);if(a){b=$$j(a);if(b&&(" "+b.className+" ").match(/\s(MagicZoom(?:Plus){0,1}|MagicThumb)\s/)){c.push(b)}else{return false}}else{c=$$j($$J.$$A($$J.body.byTag("A")).filter(function(a){return(" "+a.className+" ").match(/\s(MagicZoom(?:Plus){0,1}|MagicThumb)\s/)}))}c.forEach(function(a){a=$$j(a);var b=a.byTag("span"),c=null;d=$$J.extend($$J.detach(this._o),this._z37(a.rel||" "));if(a.j13("MagicZoom")||a.j13("MagicZoomPlus")&&!d.disableZoom){if(b&&b.length){c=a.removeChild(b[0])}MagicZoom.start(a);if(c){a.append(c)}}if(a.j13("MagicThumb")||a.j13("MagicZoomPlus")&&!d.disableExpand){MagicThumb.start(a)}else{a.style.cursor="pointer"}},this);return true},stop:function(a){var b=null,c=$$j([]);if(a){b=$$j(a);if(b&&(" "+b.className+" ").match(/\s(MagicZoom(?:Plus){0,1}|MagicThumb)\s/)){c.push(b)}else{return false}}else{c=$$j($$J.$$A($$J.body.byTag("A")).filter(function(a){return(" "+a.className+" ").match(/\s(MagicZoom(?:Plus){0,1}|MagicThumb)\s/)}))}c.forEach(function(a){a=$$j(a);if(a.j13("MagicZoom")||a.j13("MagicZoomPlus")){MagicZoom.stop(a);if(a.zoom){MagicZoom.zooms.splice(MagicZoom.zooms.indexOf(a.zoom),1);a.zoom=undefined}}if(a.j13("MagicThumb")||a.j13("MagicZoomPlus")){MagicThumb.stop(a)}},this);return true},refresh:function(a){var b=null;if(a){this.stop(a);this.start.j19(this).j32(150,a)}else{this.stop();this.start.j19(this).j32(150)}return true},update:function(a,b,c,d){var e=$$j(a),f=null;if(e){if(f=e.j40("thumb")){f.g1(f.p0||f.id).state="updating"}if(!MagicZoom.update(e,b,c,d)){MagicThumb.update(e,b,c,d)}}},_z37:function(a){var b,c,d,e,f;b=null;c={};f=[];if(a){d=$$j(a.split(";"));d.j14(function(a){for(var d in this._o){b=(new RegExp("^"+d.dashize().replace(/\-/,"\\-")+"\\s*:\\s*([^;]+)$$","i")).exec(a.j21());if(b){switch($$J.j1(this._o[d])){case"boolean":c[d]=b[1].j23();break;case"number":c[d]=parseFloat(b[1]);break;default:c[d]=b[1].j21()}}}},this)}else{for(e in this.options){b=this.options[e];switch($$J.j1(this._o[e.k()])){case"boolean":b=b.toString().j23();break;case"number":b=parseFloat(b);break;default:break}c[e.k()]=b}}return c}};$$j(document).a("domready",function(){MagicZoomPlus.start()})
