(function(){if(window.magicjs){return}var a={version:"v2.5.2",uuid:0,storage:{},$uuid:function(c){return(c.$j_uuid||(c.$j_uuid=++$j.uuid))},getstorage:function(c){return($j.storage[c]||($j.storage[c]={}))},$f:function(){},$false:function(){return false},defined:function(c){return(undefined!=c)},exists:function(c){return!!(c)},j1:function(c){if(!$j.defined(c)){return false}if(c.$j_type){return c.$j_type}if(!!c.nodetype){if(1==c.nodetype){return"element"}if(3==c.nodetype){return"textnode"}}if(c.length&&c.item){return"collection"}if(c.length&&c.callee){return"arguments"}if((c instanceof window.object||c instanceof window.function)&&c.constructor===$j.class){return"class"}if(c instanceof window.array){return"array"}if(c instanceof window.function){return"function"}if(c instanceof window.string){return"string"}if($j.j21.trident){if($j.defined(c.cancelbubble)){return"event"}}else{if(c===window.event||c.constructor==window.event||c.constructor==window.mouseevent||c.constructor==window.uievent||c.constructor==window.keyboardevent||c.constructor==window.keyevent){return"event"}}if(c instanceof window.date){return"date"}if(c instanceof window.regexp){return"regexp"}if(c===window){return"window"}if(c===document){return"document"}return typeof(c)},extend:function(h,g){if(!(h instanceof window.array)){h=[h]}for(var f=0,d=h.length;f-1}});a.implement(function,{$j_type:"function",j24:function(){var d=$j.$a(arguments),c=this,e=d.shift();return function(){return c.apply(e||null,d.concat($j.$a(arguments)))}},j16:function(){var d=$j.$a(arguments),c=this,e=d.shift();return function(f){return c.apply(e||null,$mjs([f||window.event]).concat(d))}},j27:function(){var d=$j.$a(arguments),c=this,e=d.shift();return window.settimeout(function(){return c.apply(c,d)},e||0)},j28:function(){var d=$j.$a(arguments),c=this;return function(){return c.j27.apply(c,d)}},interval:function(){var d=$j.$a(arguments),c=this,e=d.shift();return window.setinterval(function(){return c.apply(c,d)},e||0)}});var b=navigator.useragent.tolowercase();$j.j21={features:{xpath:!!(document.evaluate),air:!!(window.runtime),query:!!(document.queryselector)},engine:(window.opera)?"presto":!!(window.activexobject)?"trident":(undefined!=document.getboxobjectfor||null!=window.mozinnerscreeny)?"gecko":(null!=window.webkitpoint||!navigator.taintenabled)?"webkit":"unknown",version:"",platform:b.match(/ip(?:ad|od|hone)/)?"ios":(b.match(/(?:webos|android)/)||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.j21.ready){return}$j.j21.ready=true;$j.body=$mjs(document.body);$j.win=$mjs(window);$mjs(document).raiseevent("domready")}};$j.j21.touchscreen=$j.$a(["ios","webos","android"]).contains($j.j21.platform);(function(){function c(){return!!(arguments.callee.caller)}$j.j21.version=("presto"==$j.j21.engine)?!!(document.head)?270:!!(window.applicationcache)?260:!!(window.localstorage)?250:($j.j21.features.query)?220:((c())?211:((document.getelementsbyclassname)?210:200)):("trident"==$j.j21.engine)?!!(window.msperformance||window.performance)?900:!!(window.xmlhttprequest&&window.postmessage)?6:((window.xmlhttprequest)?5:4):("webkit"==$j.j21.engine)?(($j.j21.features.xpath)?(($j.j21.features.query)?525:420):419):("gecko"==$j.j21.engine)?!!(document.head)?200:!!document.readystate?192:!!(window.localstorage)?191:((document.getelementsbyclassname)?190:181):"";$j.j21[$j.j21.engine]=$j.j21[$j.j21.engine+$j.j21.version]=true;if(window.chrome){$j.j21.chrome=true}})();$j.element={j13:function(c){return this.classname.has(c," ")},j2:function(c){if(c&&!this.j13(c)){this.classname+=(this.classname?" ":"")+c}return this},j3:function(c){c=c||".*";this.classname=this.classname.replace(new regexp("(^|\\s)"+c+"(?:\\s|$)"),"$1").j26();return this},j4:function(c){return this.j13(c)?this.j3(c):this.j2(c)},j5:function(e){e=(e=="float"&&this.currentstyle)?"stylefloat":e.j22();var c=null,d=null;if(this.currentstyle){c=this.currentstyle[e]}else{if(document.defaultview&&document.defaultview.getcomputedstyle){d=document.defaultview.getcomputedstyle(this,null);c=d?d.getpropertyvalue([e.dashize()]):null}}if(!c){c=this.style[e]}if("opacity"==e){return $j.defined(c)?parsefloat(c):1}if(/^(border(top|bottom|left|right)width)|((padding|margin)(top|bottom|left|right))$/.test(e)){c=parseint(c)?c:"0px"}return("auto"==c?null:c)},j6prop:function(d,c){try{if("opacity"==d){this.j23(c);return this}if("float"==d){this.style[("undefined"===typeof(this.style.stylefloat))?"cssfloat":"stylefloat"]=c;return this}this.style[d.j22()]=c+(("number"==$j.j1(c)&&!$mjs(["zindex","zoom"]).contains(d.j22()))?"px":"")}catch(f){}return this},j6:function(d){for(var c in d){this.j6prop(c,d[c])}return this},j19s:function(){var c={};$j.$a(arguments).j14(function(d){c[d]=this.j5(d)},this);return c},j23:function(g,d){d=d||false;g=parsefloat(g);if(d){if(g==0){if("hidden"!=this.style.visibility){this.style.visibility="hidden"}}else{if("visible"!=this.style.visibility){this.style.visibility="visible"}}}if($j.j21.trident){if(!this.currentstyle||!this.currentstyle.haslayout){this.style.zoom=1}try{var e=this.filters.item("dximagetransform.microsoft.alpha");e.enabled=(1!=g);e.opacity=g*100}catch(c){this.style.filter+=(1==g)?"":"progid:dximagetransform.microsoft.alpha(enabled=true,opacity="+g*100+")"}}this.style.opacity=g;return this},setprops:function(c){for(var d in c){this.setattribute(d,""+c[d])}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 c=this,d={top:0,left:0};do{d.left+=c.scrollleft||0;d.top+=c.scrolltop||0;c=c.parentnode}while(c);return d},j8:function(){if($j.defined(document.documentelement.getboundingclientrect)){var c=this.getboundingclientrect(),e=$mjs(document).j10(),g=$j.j21.getdoc();return{top:c.top+e.y-g.clienttop,left:c.left+e.x-g.clientleft}}var f=this,d=t=0;do{d+=f.offsetleft||0;t+=f.offsettop||0;f=f.offsetparent}while(f&&!(/^(?:body|html)$/i).test(f.tagname));return{top:t,left:d}},j9:function(){var d=this.j8();var c=this.j7();return{top:d.top,bottom:d.top+c.height,left:d.left,right:d.left+c.width}},update:function(f){try{this.innerhtml=f}catch(d){this.innertext=f}return this},j33:function(){return(this.parentnode)?this.parentnode.removechild(this):this},kill:function(){$j.$a(this.childnodes).j14(function(c){if(3==c.nodetype||8==c.nodetype){return}$mjs(c).kill()});this.j33();this.je3();if(this.$j_uuid){$j.storage[this.$j_uuid]=null;delete $j.storage[this.$j_uuid]}return null},append:function(e,d){d=d||"bottom";var c=this.firstchild;("top"==d&&c)?this.insertbefore(e,c):this.appendchild(e);return this},j32:function(e,d){var c=$mjs(e).append(this,d);return this},enclose:function(c){this.append(c.parentnode.replacechild(this,c));return this},haschild:function(c){if(!(c=$mjs(c))){return false}return(this==c)?false:(this.contains&&!($j.j21.webkit419))?(this.contains(c)):(this.comparedocumentposition)?!!(this.comparedocumentposition(c)&16):$j.$a(this.bytag(c.tagname)).contains(c)}};$j.element.j19=$j.element.j5;$j.element.j20=$j.element.j6;if(!window.element){window.element=$j.$f;if($j.j21.engine.webkit){window.document.createelement("iframe")}window.element.prototype=($j.j21.engine.webkit)?window["[[domelement.prototype]]"]:{}}$j.implement(window.element,{$j_type:"element"});$j.doc={j7:function(){if($j.j21.presto925||$j.j21.webkit419){return{width:self.innerwidth,height:self.innerheight}}return{width:$j.j21.getdoc().clientwidth,height:$j.j21.getdoc().clientheight}},j10:function(){return{x:self.pagexoffset||$j.j21.getdoc().scrollleft,y:self.pageyoffset||$j.j21.getdoc().scrolltop}},j12:function(){var c=this.j7();return{width:math.max($j.j21.getdoc().scrollwidth,c.width),height:math.max($j.j21.getdoc().scrollheight,c.height)}}};$j.extend(document,{$j_type:"document"});$j.extend(window,{$j_type:"window"});$j.extend([$j.element,$j.doc],{j29:function(f,d){var c=$j.getstorage(this.$j_uuid),e=c[f];if(undefined!=d&&undefined==e){e=c[f]=d}return($j.defined(e)?e:null)},j30:function(e,d){var c=$j.getstorage(this.$j_uuid);c[e]=d;return this},j31:function(d){var c=$j.getstorage(this.$j_uuid);delete c[d];return this}});if(!(window.htmlelement&&window.htmlelement.prototype&&window.htmlelement.prototype.getelementsbyclassname)){$j.extend([$j.element,$j.doc],{getelementsbyclassname:function(c){return $j.$a(this.getelementsbytagname("*")).filter(function(f){try{return(1==f.nodetype&&f.classname.has(c," "))}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(){var d,c;d=((/touch/i).test(this.type))?this.changedtouches[0]:this;return(!$j.defined(d))?{x:0,y:0}:{x:d.pagex||d.clientx+$j.j21.getdoc().scrollleft,y:d.pagey||d.clienty+$j.j21.getdoc().scrolltop}},gettarget:function(){var c=this.target||this.srcelement;while(c&&3==c.nodetype){c=c.parentnode}return c},getrelated:function(){var d=null;switch(this.type){case"mouseover":d=this.relatedtarget||this.fromelement;break;case"mouseout":d=this.relatedtarget||this.toelement;break;default:return d}try{while(d&&3==d.nodetype){d=d.parentnode}}catch(c){d=null}return d},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],{je1:function(f,e){var h=("domready"==f)?false:true,d=this.j29("events",{});d[f]=d[f]||{};if(d[f].hasownproperty(e.$j_euid)){return this}if(!e.$j_euid){e.$j_euid=math.floor(math.random()*$j.now())}var c=this,g=function(i){return e.call(c)};if("domready"==f){if($j.j21.ready){e.call(this);return this}}if(h){g=function(i){i=$j.extend(i||window.e,{$j_type:"event"});return e.call(c,$mjs(i))};this[$j._event_add_]($j._event_prefix_+f,g,false)}d[f][e.$j_euid]=g;return this},je2:function(f){var h=("domready"==f)?false:true,d=this.j29("events");if(!d||!d[f]){return this}var g=d[f],e=arguments[1]||null;if(f&&!e){for(var c in g){if(!g.hasownproperty(c)){continue}this.je2(f,c)}return this}e=("function"==$j.j1(e))?e.$j_euid:e;if(!g.hasownproperty(e)){return this}if("domready"==f){h=false}if(h){this[$j._event_del_]($j._event_prefix_+f,g[e],false)}delete g[e];return this},raiseevent:function(g,d){var l=("domready"==g)?false:true,j=this,i;if(!l){var f=this.j29("events");if(!f||!f[g]){return this}var h=f[g];for(var c in h){if(!h.hasownproperty(c)){continue}h[c].call(this)}return this}if(j===document&&document.createevent&&!el.dispatchevent){j=document.documentelement}if(document.createevent){i=document.createevent(g);i.initevent(d,true,true)}else{i=document.createeventobject();i.eventtype=g}if(document.createevent){j.dispatchevent(i)}else{j.fireevent("on"+d,i)}return i},je3:function(){var c=this.j29("events");if(!c){return this}for(var d in c){this.je2(d)}this.j31("events");return this}});(function(){if($j.j21.webkit&&$j.j21.version<420){(function(){($mjs(["loaded","complete"]).contains(document.readystate))?$j.j21.onready():arguments.callee.j27(50)})()}else{if($j.j21.trident&&window==top){(function(){($j.$try(function(){$j.j21.getdoc().doscroll("left");return true}))?$j.j21.onready():arguments.callee.j27(50)})()}else{$mjs(document).je1("domcontentloaded",$j.j21.onready);$mjs(window).je1("load",$j.j21.onready)}}})();$j.class=function(){var g=null,d=$j.$a(arguments);if("class"==$j.j1(d[0])){g=d.shift()}var c=function(){for(var j in this){this[j]=$j.detach(this[j])}if(this.constructor.$parent){this.$parent={};var n=this.constructor.$parent;for(var l in n){var i=n[l];switch($j.j1(i)){case"function":this.$parent[l]=$j.class.wrap(this,i);break;case"object":this.$parent[l]=$j.detach(i);break;case"array":this.$parent[l]=$j.detach(i);break}}}var h=(this.init)?this.init.apply(this,arguments):this;delete this.caller;return h};if(!c.prototype.init){c.prototype.init=$j.$f}if(g){var f=function(){};f.prototype=g.prototype;c.prototype=new f;c.$parent={};for(var e in g.prototype){c.$parent[e]=g.prototype[e]}}else{c.$parent=null}c.constructor=$j.class;c.prototype.constructor=c;$j.extend(c.prototype,d[0]);$j.extend(c,{$j_type:"class"});return c};a.class.wrap=function(c,d){return function(){var f=this.caller;var e=d.apply(c,arguments);return e}};$j.win=$mjs(window);$j.doc=$mjs(document)})();(function(a){if(!a){throw"magicjs not found";return}if(a.fx){return}var b=a.$;a.fx=new a.class({options:{fps:50,duration:500,transition:function(c){return-(math.cos(math.pi*c)-1)/2},onstart:a.$f,oncomplete:a.$f,onbeforerender:a.$f,roundcss:true},styles:null,init:function(d,c){this.el=$mjs(d);this.options=a.extend(this.options,c);this.timer=false},start:function(c){this.styles=c;this.state=0;this.curframe=0;this.starttime=a.now();this.finishtime=this.starttime+this.options.duration;this.timer=this.loop.j24(this).interval(math.round(1000/this.options.fps));this.options.onstart.call();return this},stop:function(c){c=a.defined(c)?c:false;if(this.timer){clearinterval(this.timer);this.timer=false}if(c){this.render(1);this.options.oncomplete.j27(10)}return this},calc:function(e,d,c){return(d-e)*c+e},loop:function(){var d=a.now();if(d>=this.finishtime){if(this.timer){clearinterval(this.timer);this.timer=false}this.render(1);this.options.oncomplete.j27(10);return this}var c=this.options.transition((d-this.starttime)/this.options.duration);this.render(c)},render:function(c){var d={};for(var e in this.styles){if("opacity"===e){d[e]=math.round(this.calc(this.styles[e][0],this.styles[e][1],c)*100)/100}else{d[e]=this.calc(this.styles[e][0],this.styles[e][1],c);if(this.options.roundcss){d[e]=math.round(d[e])}}}this.options.onbeforerender(d);this.set(d)},set:function(c){return this.el.j6(c)}});a.fx.transition={linear:function(c){return c},sinein:function(c){return-(math.cos(math.pi*c)-1)/2},sineout:function(c){return 1-a.fx.transition.sinein(1-c)},expoin:function(c){return math.pow(2,8*(c-1))},expoout:function(c){return 1-a.fx.transition.expoin(1-c)},quadin:function(c){return math.pow(c,2)},quadout:function(c){return 1-a.fx.transition.quadin(1-c)},cubicin:function(c){return math.pow(c,3)},cubicout:function(c){return 1-a.fx.transition.cubicin(1-c)},backin:function(d,c){c=c||1.618;return math.pow(d,2)*((c+1)*d-c)},backout:function(d,c){return 1-a.fx.transition.backin(1-d)},elasticin:function(d,c){c=c||[];return math.pow(2,10*--d)*math.cos(20*d*math.pi*(c[0]||1)/3)},elasticout:function(d,c){return 1-a.fx.transition.elasticin(1-d,c)},bouncein:function(e){for(var d=0,c=1;1;d+=c,c/=2){if(e>=(7-4*d)/11){return c*c-math.pow((11-6*d-11*e)/4,2)}}},bounceout:function(c){return 1-a.fx.transition.bouncein(1-c)},none:function(c){return 0}}})(magicjs);(function(a){if(!a){throw"magicjs not found";return}if(!a.fx){throw"magicjs.fx not found";return}if(a.fx.slide){return}var b=a.$;a.fx.slide=new a.class(a.fx,{options:{mode:"vertical"},init:function(d,c){this.el=$mjs(d);this.options=a.extend(this.$parent.options,this.options);this.$parent.init(d,c);this.wrapper=this.el.j29("slide:wrapper");this.wrapper=this.wrapper||a.$new("div").j6(a.extend(this.el.j19s("margin-top","margin-left","margin-right","margin-bottom","position","top","float"),{overflow:"hidden"})).enclose(this.el);this.el.j30("slide:wrapper",this.wrapper).j6({margin:0})},vertical:function(){this.margin="margin-top";this.layout="height";this.offset=this.el.offsetheight},horizontal:function(c){this.margin="margin-"+(c||"left");this.layout="width";this.offset=this.el.offsetwidth},right:function(){this.horizontal()},left:function(){this.horizontal("right")},start:function(e,h){this[h||this.options.mode]();var g=this.el.j5(this.margin).j17(),f=this.wrapper.j5(this.layout).j17(),c={},i={},d;c[this.margin]=[g,0],c[this.layout]=[0,this.offset],i[this.margin]=[g,-this.offset],i[this.layout]=[f,0];switch(e){case"in":d=c;break;case"out":d=i;break;case"toggle":d=(0==f)?c:i;break}this.$parent.start(d);return this},set:function(c){this.el.j6prop(this.margin,c[this.margin]);this.wrapper.j6prop(this.layout,c[this.layout]);return this},slidein:function(c){return this.start("in",c)},slideout:function(c){return this.start("out",c)},hide:function(d){this[d||this.options.mode]();var c={};c[this.layout]=0,c[this.margin]=-this.offset;return this.set(c)},show:function(d){this[d||this.options.mode]();var c={};c[this.layout]=this.offset,c[this.margin]=0;return this.set(c)},toggle:function(c){return this.start("toggle",c)}})})(magicjs);(function(a){if(!a){throw"magicjs not found";return}if(a.pfx){return}var b=a.$;a.pfx=new a.class(a.fx,{init:function(c,d){this.el_arr=c;this.options=a.extend(this.options,d);this.timer=false},start:function(c){this.$parent.start([]);this.styles_arr=c;return this},render:function(c){for(var d=0;d1)?arguments[1]:undefined))}else{e.zoom.start()}},update:function(l,e,k,j){if((l=$mjs(l))&&l.zoom){l.zoom.update(e,k,j);return true}return false},refresh:function(){g.$a(window.document.getelementsbytagname("a")).j14(function(e){if(e.classname.has("magiczoom"," ")){if(c.stop(e)){c.start.j27(100,e)}else{c.start(e)}}},this)},show:function(e){if((e=$mjs(e))&&e.zoom){return e.zoom.activate()}return false},getxy:function(e){if((e=$mjs(e))&&e.zoom){return{x:e.zoom.options.x,y:e.zoom.options.y}}},x7:function(k){var j,e;j="";for(e=0;ethis.z7.width){this.z4.width=this.z7.width}if(this.z4.height>this.z7.height){this.z4.height=this.z7.height}this.z4.width=math.round(this.z4.width);this.z4.height=math.round(this.z4.height);this.z4.borderwidth=this.z4.self.j19("borderleftwidth").j17();this.z4.self.j6({width:(this.z4.width-2*(g.j21.backcompat?0:this.z4.borderwidth))+"px",height:(this.z4.height-2*(g.j21.backcompat?0:this.z4.borderwidth))+"px"});if(!this.options.opacityreverse&&!this.options.rightclick){this.z4.self.j23(parsefloat(this.options.opacity/100));if(this.z4.z42){this.z4.self.removechild(this.z4.z42);this.z4.z42=null}}else{if(this.z4.z42){this.z4.z42.src=this.z7.self.src}else{j=this.z7.self.clonenode(false);j.unselectable="on";this.z4.z42=$mjs(this.z4.self.appendchild(j)).j6({position:"absolute",zindex:5})}if(this.options.opacityreverse){this.z4.self.j23(1)}else{if(this.options.rightclick){this.z4.z42.j23(0.009)}this.z4.self.j23(parsefloat(this.options.opacity/100))}}},z43:function(k,j){if(!this.z30||k===undefined){return false}var l=(/touch/i).test(k.type)&&k.touches.length>1;if((!this.divtag||k.type!="mouseout")&&!l){$mjs(k).stop()}if(j===undefined){j=$mjs(k).j15()}if(this.z6===null||this.z6===undefined){this.z6=this.z7.getbox()}if("touchend"==k.type||("mouseout"==k.type&&!this.c.haschild(k.getrelated()))||l||j.x>this.z6.right||j.xthis.z6.bottom||j.y=this.z6.right){j.x=this.z6.right-this.z4.width/2}if((j.x-this.z4.width/2)<=this.z6.left){j.x=this.z6.left+this.z4.width/2}if((j.y+this.z4.height/2)>=this.z6.bottom){j.y=this.z6.bottom-this.z4.height/2}if((j.y-this.z4.height/2)<=this.z6.top){j.y=this.z6.top+this.z4.height/2}this.options.x=j.x-this.z6.left;this.options.y=j.y-this.z6.top;if(this.z44===null){if(g.j21.trident){this.c.style.zindex=1}this.z44=settimeout(this.z16,10)}if(g.defined(this.hintvisible)&&this.hintvisible){this.hintvisible=false;this.hint.hide()}return true},show:function(){var r,n,k,j,p,o,m,l,e=this.options,s=this.z4;r=s.width/2;n=s.height/2;s.self.style.left=e.x-r+this.z7.border.left+"px";s.self.style.top=e.y-n+this.z7.border.top+"px";if(this.options.opacityreverse){s.z42.style.left="-"+(parsefloat(s.self.style.left)+s.borderwidth)+"px";s.z42.style.top="-"+(parsefloat(s.self.style.top)+s.borderwidth)+"px"}k=(this.options.x-r)*(this.z1.width/this.z7.width);j=(this.options.y-n)*(this.z1.height/this.z7.height);if(this.z1.width-k0){m=1}else{if(m>-1&&m<0){m=-1}}p+=m;l*=e.smoothingspeed/100;if(l<1&&l>0){l=1}else{if(l>-1&&l<0){l=-1}}o+=l;this.z1.self.style.left=p+"px";this.z1.self.style.top=o+"px"}if(!s.z38){if(this.z2){this.z2.stop();this.z2.options.oncomplete=g.$f;this.z2.options.duration=e.zoomfadeinspeed;this.z47.self.j23(0);this.z2.start({opacity:[0,1]})}if(e.zoomposition!="inner"){s.self.show()}if(/left|right|top|bottom/i.test(e.zoomposition)&&!this.options.alwaysshowzoom){var q=this.t14();this.z47.self.style.top=q.y+"px";this.z47.self.style.left=q.x+"px"}else{this.z47.self.style.top=this.z47.z21}if(e.opacityreverse){this.c.j2("magiczoompup").j20({"border-width":"0px"});this.z7.self.j23(parsefloat((100-e.opacity)/100))}s.z38=true}if(this.z44){this.z44=settimeout(this.z16,1000/e.fps)}},t14:function(){var j=this.t13(5),e=this.z7.self.j9(),n=this.options.zoomposition,m=this.z47,k=this.options.zoomdistance,q=m.self.j7(),p=e.top+m.inittoppos,l=e.left+m.initleftpos,o={x:m.initleftpos,y:m.inittoppos};if("left"==n||"right"==n){o.y=math.max(j.top,math.min(j.bottom,p+q.height)-q.height)-e.top;if("left"==n&&j.left>l){o.x=(e.left-j.left>=q.width)?-(e.left-j.left-2):(j.right-e.right-2>e.left-j.left-2)?(e.right-e.left+2):-(q.width+2)}else{if("right"==n&&j.right=q.width)?(j.right-q.width-e.left):(e.left-j.left-2>j.right-e.right-2)?-(q.width+2):(e.right-e.left+2)}}}else{if("top"==n||"bottom"==n){o.x=math.max(j.left+2,math.min(j.right,l+q.width)-q.width)-e.left;if("top"==n&&j.top>p){o.y=(e.top-j.top>=q.height)?-(e.top-j.top-2):(j.bottom-e.bottom-2>e.top-j.top-2)?(e.bottom-e.top+2):-(q.height+2)}else{if("bottom"==n&&j.bottom=q.height)?(j.bottom-q.height-e.top):(e.top-j.top-2>j.bottom-e.bottom-2)?-(q.height+2):(e.bottom-e.top+2)}}}}return o},t13:function(k){k=k||0;var j=(g.j21.touchscreen)?{width:window.innerwidth,height:window.innerheight}:$mjs(window).j7(),e=$mjs(window).j10();return{left:e.x+k,right:e.x+j.width-k,top:e.y+k,bottom:e.y+j.height-k}},activate:function(e){e=(g.defined(e))?e:true;this.activatedex=true;if(!this.z1){this.z18();return}if(this.options.disablezoom){return}this.z30=true;if(e){if(!this.options.preserveposition){this.options.x=this.z7.width/2;this.options.y=this.z7.height/2}this.show()}},pause:function(){if(this.z44){cleartimeout(this.z44);this.z44=null}if(!this.options.alwaysshowzoom&&this.z4&&this.z4.z38){this.z4.z38=false;this.z4.self.hide();if(this.z2){this.z2.stop();this.z2.options.oncomplete=this.z47.z22;this.z2.options.duration=this.options.zoomfadeoutspeed;var e=this.z47.self.j19("opacity");this.z2.start({opacity:[e,0]})}else{this.z47.hide()}if(this.options.opacityreverse){this.c.j3("magiczoompup");this.z7.self.j23(1)}}this.z6=null;if(this.options.clicktoactivate){this.z30=false}if(this.options.dragmode){this.z45=false}if(this.hint){this.hintvisible=true;this.hint.show()}if(g.j21.trident){this.c.style.zindex=0}},mousedown:function(l){var j=l.getbutton();if(3==j){return true}if(!((/touch/i).test(l.type)&&l.touches.length>1)){$mjs(l).stop()}if("click"==this.options.initializeon&&!this.z7){this.initmouseevent=l;this.z18();return}if("mouseover"==this.options.initializeon&&!this.z7&&l.type=="mouseover"){this.initmouseevent=l;this.z18();this.c.je2("mouseover",this.z14);return}if(this.options.disablezoom){return}if(this.z7&&!this.z1.ready){return}if(this.z1&&this.options.clicktodeactivate&&this.z30){this.z30=false;this.pause();return}if(this.z1&&!this.z30){this.z30=true;this.z43(l);if(this.c.j29("thumb")){this.c.j29("thumb").dblclick=true}}if(this.z30&&this.options.dragmode){this.z45=true;if(!this.options.moveonclick){if(g.j21.touchscreen&&(this.z6===null||this.z6===undefined)){this.z6=this.z7.getbox()}var k=l.j15();this.ddx=k.x-this.options.x-this.z6.left;this.ddy=k.y-this.options.y-this.z6.top;if(math.abs(this.ddx)>this.z4.width/2||math.abs(this.ddy)>this.z4.height/2){this.z45=false;return}}else{this.z43(l)}}},mouseup:function(k){var j=k.getbutton();if(3==j){return true}$mjs(k).stop();if(this.options.dragmode){this.z45=false}}};if(g.j21.trident){try{document.execcommand("backgroundimagecache",false,true)}catch(f){}}if(g.j21.touchscreen){$mjs(document).je1("touchstart",function(j){})}$mjs(document).je1("domready",function(){if(!g.j21.touchscreen){$mjs(document).je1("mousemove",c.z8)}});var d=new g.class({self:null,ready:false,options:{width:-1,height:-1,onload:g.$f,onabort:g.$f,onerror:g.$f},width:0,height:0,nwidth:0,nheight: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(j){if(j){$mjs(j).stop()}this._unbind();if(this.ready){return}this.ready=true;this.calc();this._cleanup();this.options.onload.j27(1)},onabort:function(j){if(j){$mjs(j).stop()}this._unbind();this.ready=false;this._cleanup();this.options.onabort.j27(1)},onerror:function(j){if(j){$mjs(j).stop()}this._unbind();this.ready=false;this._cleanup();this.options.onerror.j27(1)}},_bind:function(){$mjs(["load","abort","error"]).j14(function(e){this.self.je1(e,this._handlers["on"+e].j16(this).j28(1))},this)},_unbind:function(){$mjs(["load","abort","error"]).j14(function(e){this.self.je2(e)},this)},_cleanup:function(){if(this.self.j29("new")){var e=this.self.parentnode;this.self.j33().j31("new").j6({position:"static",top:"auto"});e.kill()}},init:function(k,j){this.options=g.extend(this.options,j);var e=this.self=$mjs(k)||g.$new("img",{},{"max-width":"none","max-height":"none"}).j32(g.$new("div").j6({position:"absolute",top:-10000,width:10,height:10,overflow:"hidden"}).j32(g.body)).j30("new",true),l=function(){if(this.isready()){this._handlers.onload.call(this)}else{this._handlers.onerror.call(this)}l=null}.j24(this);this._bind();if(!k.src){e.src=k}else{e.src=k.src}if(e&&e.complete){this._timer=l.j27(100)}},destroy:function(){if(this._timer){try{cleartimeout(this._timer)}catch(e){}this._timer=null}this._unbind();this._cleanup();this.ready=false;return this},isready:function(){var e=this.self;return(e.naturalwidth)?(e.naturalwidth>0):(e.readystate)?("complete"==e.readystate):e.width>0},calc:function(){this.nwidth=this.self.naturalwidth||this.self.width;this.nheight=this.self.naturalheight||this.self.height;if(this.options.width>0){this.self.j6prop("width",this.options.width)}else{if(this.options.height>0){this.self.j6prop("height",this.options.height)}}this.width=this.self.width;this.height=this.self.height;$mjs(["left","right","top","bottom"]).j14(function(e){this.margin[e]=this.self.j5("margin-"+e).j17();this.padding[e]=this.self.j5("padding-"+e).j17();this.border[e]=this.self.j5("border-"+e+"-width").j17()},this)}});var b={version:"v2.1.0.rc18",options:{},lang:{},start:function(m){this.thumbs=$mjs(window).j29("magicthumb:items",$mjs([]));var l=null,j=null,k=$mjs([]),e=(arguments.length>1)?g.extend(g.detach(b.options),arguments[1]):b.options;if(m){j=$mjs(m);if(j&&(" "+j.classname+" ").match(/\s(magicthumb|magiczoomplus)\s/)){k.push(j)}else{return false}}else{k=$mjs(g.$a(g.body.bytag("a")).filter(function(n){return n.classname.has("magicthumb"," ")}))}k.foreach(function(n){if(l=$mjs(n).j29("thumb")){l.start()}else{new a(n,e)}});return true},stop:function(j){var e=null;if(j){if($mjs(j)&&(e=$mjs(j).j29("thumb"))){e=e.t16(e.t27||e.id).stop();delete e;return true}return false}while(this.thumbs.length){e=this.thumbs[this.thumbs.length-1].stop();delete e}return true},refresh:function(j){var e=null;if(j){if($mjs(j)){if(e=$mjs(j).j29("thumb")){e=this.stop(j);delete e}this.start.j27(150,j);return true}return false}this.stop();this.start.j27(150);return true},update:function(n,e,k,l){var m=$mjs(n),j=null;if(m&&(j=m.j29("thumb"))){j.t16(j.t27||j.id).update(e,k,l)}},expand:function(j){var e=null;if($mjs(j)&&(e=$mjs(j).j29("thumb"))){e.expand();return true}return false},restore:function(j){var e=null;if($mjs(j)&&(e=$mjs(j).j29("thumb"))){e.restore();return true}return false}};var a=new g.class({_o:{zindex:10001,expandspeed:500,restorespeed:-1,expandsize:"fit-screen",expandalign:"screen",expandposition:"center",initializeon:"load",keyboard:true,keyboardctrl:false,keepthumbnail:false,screenpadding:10,expandtrigger:"click",expandtriggerdelay:200,expandeffect:"back",restoreeffect:"auto",restoretrigger:"auto",backgroundopacity:30,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,selectorschange:"click",selectorsmouseoverdelay:60,selectorseffect:"dissolve",selectorseffectspeed:400,selectorsclass:"",group:null,link:"",linktarget:"_self",cssclass:"",hint:true,hinttext:"expand",hintposition:"tl",hintopacity:75,hintclass:"magicthumbhint",rightclick:"false",disableexpand:false,panzoom:true},_deprecated:{clicktoinitialize:function(e){e=(""+e).j18();if(e&&"load"==this._o.initializeon){this._o.initializeon="click"}},imagesize:function(e){if("fit-screen"==this._o.expandsize&&"original"==e){this._o.expandsize="original"}},swapimage:function(e){if("click"==this._o.selectorschange&&"mouseover"==e){this._o.selectorschange="mouseover"}}},_lang:{buttonprevious:"previous",buttonnext:"next",buttonclose:"close"},thumbs:[],t29:null,r:null,id:null,t27:null,group:null,params:{},ready:false,dblclick:false,mzparams:"zoom-position: inner; hint: false; click-to-activate: false; drag-mode: false; initialize-on: load; show-loading: false; entire-image: false; zoom-window-effect: false; disable-zoom: false; opacity-reverse: false;",z7:null,z1:null,content:null,t22:null,z3:null,t23:null,t25:null,t26:null,hint:null,captiontext:null,state:"uninitialized",t28:[],cbs:{previous:{index:0,title:"buttonprevious"},next:{index:1,title:"buttonnext"},close:{index:2,title:"buttonclose"}},position:{top:"auto",bottom:"auto",left:"auto",right:"auto"},size:{width:-1,height:-1},media:"img",easing:{linear:["",""],sine:["out","in"],quad:["out","in"],cubic:["out","in"],back:["out","in"],elastic:["out","in"],bounce:["out","in"],expo:["out","in"]},fps:50,hcaption:false,scrpad:{x:0,y:0},ieback:(g.j21.trident&&(g.j21.trident4||g.j21.backcompat))||false,init:function(e,j){this.thumbs=g.win.j29("magicthumb:items",$mjs([]));this.t29=(this.t29=g.win.j29("magicthumb:holder"))?this.t29:g.win.j29("magicthumb:holder",g.$new("div").j6({position:"absolute",top:-10000,width:10,height:10,overflow:"hidden"}).j32(g.body));this.t28=$mjs(this.t28);this.r=$mjs(e)||g.$new("a");this._o.captionsource="a:title";this._o.keepthumbnail=true;this.z37(j);this.z37(this.r.rel);this.parseexoptions();this.setlang(b.lang);this.scrpad.y=this.scrpad.x=this._o.screenpadding*2;this.scrpad.x+=this.ieback?g.body.j5("margin-left").j17()+g.body.j5("margin-right").j17():0;this.r.id=this.id=this.r.id||("mt-"+math.floor(math.random()*g.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.t27=this.params.t27||null;this.group=this._o.group||null;this.hcaption=/(left|right)/i.test(this._o.captionposition);if(this._o.disableexpand){this._o.hint=false}if(this.t27){this._o.initializeon="load"}this.mzparams+="right-click : "+("true"==this._o.rightclick||"expanded"==this._o.rightclick);if((" "+this.r.classname+" ").match(/\s(magicthumb|magiczoomplus)\s/)){this.r.j6({position:"relative",display:(g.j21.gecko181||g.j21.presto)?"block":"inline-block"});if(this._o.disableexpand){this.r.j6({cursor:"default"})}if("true"!=this._o.rightclick&&"original"!=this._o.rightclick){this.r.je1("contextmenu",function(k){$mjs(k).stop()})}this.r.j30("j24:click",function(m){$mjs(m).stop();var l=this.j29("thumb");if((g.j21.trident||(g.j21.presto&&g.j21.version<250))&&l.dblclick){l.dblclick=false;return false}if(!l.ready){if(!this.j29("clicked")){this.j30("clicked",true);if("click"==l._o.initializeon){try{if(l.r.zoom&&!l.r.zoom.options.disablezoom&&((g.j21.trident||(g.j21.presto&&g.j21.version<250))||!l.r.zoom.z1.ready)){this.j30("clicked",false)}}catch(k){}if(l.group&&""!=l.group){l.t15(l.group,true).foreach(function(n){if(n!=l){n.start()}})}l.start()}else{l.z29()}}}else{if("click"==l._o.expandtrigger){l.expand()}}return false}.j16(this.r));if(!g.j21.touchscreen){this.r.je1("click",this.r.j29("j24:click"))}else{this._o.expandeffect="linear";this._o.panzoom=false;this._o.keepthumbnail=false;this.fps=30;this.r.je1("touchstart",function(k){var l=g.now();if(k.targettouches.length>1){return}this.r.j30("event:lasttap",{id:k.targettouches[0].identifier,ts:l})}.j16(this));this.r.je1("touchend",function(l){var m=g.now(),k=this.r.j29("event:lasttap");if(!k||l.changedtouches.length>1){return}if(k.id==l.changedtouches[0].identifier&&m-k.ts<=200){l.stop();this.r.j29("j24:click")(l);return}}.j16(this))}if(!g.j21.touchscreen){this.r.j30("j24:hover",function(n){$mjs(n).stop();var l=this.j29("thumb"),o=l.t16(l.t27||l.id),k=(l.hint),m=("mouseover"==l._o.expandtrigger);if(!l.ready&&"mouseover"==l._o.initializeon){if(!this.j29("clicked")&&"mouseover"==l._o.expandtrigger){this.j30("clicked",true)}if(l.group&&""!=l.group){l.t15(l.group,true).foreach(function(p){if(p!=l){p.start()}})}l.start()}else{switch(n.type){case"mouseout":if(k&&"inz30"==l.state){o.hint.show()}if(m){if(l.hovertimer){cleartimeout(l.hovertimer)}l.hovertimer=false;return}break;case"mouseover":if(k&&"inz30"==l.state){o.hint.hide()}if(m){l.hovertimer=l.expand.j24(l).j27(l._o.expandtriggerdelay)}break}}}.j16(this.r)).je1("mouseover",this.r.j29("j24:hover")).je1("mouseout",this.r.j29("j24:hover"))}}this.r.j30("thumb",this);if(this.params&&g.defined(this.params.index)&&"number"==typeof(this.params.index)){this.thumbs.splice(this.params.index,0,this)}else{this.thumbs.push(this)}if("load"==this._o.initializeon){this.start()}else{this.t6(true)}},start:function(k,j){if(this.ready||"uninitialized"!=this.state){return}this.state="initializing";if(k){this.params.thumbnail=k}if(j){this.params.content=j}this._o.restorespeed=(this._o.restorespeed>=0)?this._o.restorespeed:this._o.expandspeed;var e=[this._o.expandeffect,this._o.restoreeffect];this._o.expandeffect=(e[0]in this.easing)?e[0]:(e[0]="linear");this._o.restoreeffect=(e[1]in this.easing)?e[1]:e[0];if(!this.z7){this.t2()}},stop:function(e){if("uninitialized"==this.state){return this}e=e||false;if(this.z7){this.z7.destroy()}if(this.z1){this.z1.destroy()}if(this.t22){if(this.t22.j29("j24:external-click")){g.doc.je2((g.j21.touchscreen)?"touchstart":"click",this.t22.j29("j24:external-click"))}this.t22=this.t22.kill()}this.z7=null,this.z1=null,this.t22=null,this.z3=null,this.t23=null,this.t25=null,this.t26=null,this.ready=false,this.state="uninitialized";this.r.j30("clicked",false);if(this.hint){this.hint.j33()}this.t28.foreach(function(j){j.je2(this._o.selectorschange,j.j29("j24:replace"));if("mouseover"==this._o.selectorschange){j.je2("mouseout",j.j29("j24:replace"))}if(!j.j29("thumb")||this==j.j29("thumb")){return}j.j29("thumb").stop();delete j},this);this.t28=$mjs([]);if(!e){if((" "+this.r.classname+" ").match(/\s(magicthumb|magiczoomplus)\s/)){this.r.je3();g.storage[this.r.$j_uuid]=null;delete g.storage[this.r.$j_uuid]}this.r.j31("thumb");return this.thumbs.splice(this.thumbs.indexof(this),1)}return this},swap:function(e,l){l=l||false;if((!l&&(!e.ready||"inz30"!=e.state))||"inz30"!=this.state){return}this.state="updating";e.state="updating";var x=this.t16(this.t27||this.id),n=x.r.bytag("img")[0],u,k={},w={},m={},q,s,j,p,r,y,v,o=null;u=function(z,a){z.href=this.z1.self.src;z.j30("thumb",this);this.state=a.state="inz30";this.setuphint();if(this._o.disableexpand){z.j6({cursor:"default"})}else{z.j6({cursor:""})}if(""!=this._o.selectorsclass){(a.selector||a.r).j3(this._o.selectorsclass);(this.selector||this.r).j2(this._o.selectorsclass)}};if(!l){if(x.hint){x.hint.hide()}if("pounce"==this._o.selectorseffect){q=$mjs((this.selector||this.r).bytag("img")[0]),q=q||(this.selector||this.r),s=$mjs((e.selector||e.r).bytag("img")[0]);s=s||(e.selector||e.r);j=this.z7.self.j8(),p=q.j8(),r=s.j8(),v=q.j7(),y=s.j7();k.width=[this.z7.width,v.width];k.height=[this.z7.height,v.height];k.top=[j.top,p.top];k.left=[j.left,p.left];w.width=[y.width,e.z7.width];w.height=[y.height,e.z7.height];w.top=[r.top,j.top];w.left=[r.left,j.left];m.width=[this.z7.width,e.z7.width];m.height=[this.z7.height,e.z7.height];o=$mjs(n.clonenode(false)).j32(g.body).j6({position:"absolute","z-index":5000,left:k.left[0],top:k.top[0],visibility:"visible"});n.j6({visibility:"hidden"});e.z7.self.j32(g.body).j6({position:"absolute","z-index":5001,left:w.left[0],top:w.top[0],width:w.width[0],height:w.height[0]})}else{e.z7.self.j6({position:"absolute","z-index":1,left:"0px",top:"0px"}).j32(x.r,"top").j23(0);w={opacity:[0,1]};if(this.z7.width!=e.z7.width||this.z7.height!=e.z7.height){m.width=w.width=k.width=[this.z7.width,e.z7.width];m.height=w.height=k.height=[this.z7.height,e.z7.height]}if(this._o.selectorseffect=="fade"){k.opacity=[1,0]}}new g.pfx([x.r,e.z7.self,(o||n)],{duration:("false"==""+this._o.selectorseffect)?0:this._o.selectorseffectspeed,oncomplete:function(z,a,b){if(o){o.j33();o=null}a.j33().j6({visibility:"visible"});this.z7.self.j32(z,"top").j6({position:"static","z-index":0});u.call(this,z,b)}.j24(e,x.r,n,this)}).start([m,w,k])}else{e.z7.self=n;u.call(e,x.r,this)}},update:function(e,m,j){var n=null,l=this.t16(this.t27||this.id);try{n=l.t28.filter(function(p){return(p.j29("thumb").z1&&p.j29("thumb").z1.self.src==e)})[0]}catch(k){}if(n){this.swap(n.j29("thumb"),true);return true}l.r.j30("thumb",l);l.stop(true);if(j){l.z37(j);l.parseexoptions()}if(m){l.newimg=new d(m,{onload:function(o){l.r.replacechild(l.newimg.self,l.r.bytag("img")[0]);l.newimg=null;delete l.newimg;l.r.href=e;l.start(l.r.bytag("img")[0],o)}.j24(l,e)});return true}l.r.href=e;l.start(l.r.bytag("img")[0],e);return true},refresh:function(){},z29:function(){if(!this._o.showloading||this.z3||(this.z1&&this.z1.ready)||(!this.r.j29("clicked")&&"updating"!=this.state)){return}var j=(this.z7)?this.z7.self.j9():this.r.j9();this.z3=g.$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(g.doc.createtextnode(this._o.loadingmsg));var e=this.z3.j32(g.body).j7(),k=this.t14(e,j);this.z3.j6({top:k.y,left:k.x}).show()},setuphint:function(){var o=/tr|br/i,e=/bl|br|bc/i,j=/bc|tc/i,n=null,k=this.t16(this.t27||this.id),m=null;if(k.r.zoom&&!k.r.zoom.options.disablezoom){this._o.hint=false}if(!this._o.hint){if(k.hint){k.hint.kill()}k.hint=null;return}if(!k.hint){k.hint=$mjs(document.createelement("div")).j2(k._o.hintclass).j6({display:"block",overflow:"hidden",position:"absolute",visibility:"hidden","z-index":1});if(this._o.hinttext!=""){k.hint.appendchild(document.createtextnode(this._o.hinttext))}k.r.appendchild(k.hint)}else{n=k.hint[(k.hint.firstchild)?"replacechild":"appendchild"](document.createtextnode(this._o.hinttext),k.hint.firstchild);n=null}k.hint.j6({left:"auto",right:"auto",top:"auto",bottom:"auto",display:"block",opacity:(this._o.hintopacity/100),"max-width":(this.z7.width-4)});var l=k.hint.j7();k.hint.j6prop((o.test(this._o.hintposition)?"right":"left"),(j.test(this._o.hintposition)?(this.z7.width-l.width)/2:2)).j6prop((e.test(this._o.hintposition)?"bottom":"top"),2);k.hint.show()},t2:function(){if(this.params.thumbnail){this.z7=new d(this.params.thumbnail,{onload:this.setupcontent.j24(this,this.params.content)})}else{this._o.hint=false;this.setupcontent(this.params.content)}},setupcontent:function(e){this.z29();switch(this.media){case"img":default:this.z1=new d(e,{width:this.size.width,height:this.size.height,onload:function(){this.size.width=this.z1.width;this.size.height=this.z1.height;this.content=this.z1.self;this.t1()}.j24(this)});break}},t1:function(){var o=this.content,p=this.size;if(!o){return false}this.t22=g.$new("div").j2("magicthumb-expanded").j2(this._o.cssclass).j6({position:"absolute",top:-10000,left:0,zindex:this._o.zindex,display:"block",overflow:"hidden",margin:0,width:p.width}).j32(this.t29).j30("width",p.width).j30("height",p.height).j30("ratio",p.width/p.height);this.t23=g.$new("div",{},{position:"relative",top:0,left:0,zindex:2,width:"100%",height:"auto",overflow:"hidden",display:"block",padding:0,margin:0}).append(o.j3().j6({position:"static",width:"100%",height:("img"==this.media)?"auto":p.height,display:"block",margin:0,padding:0})).j32(this.t22);this.t23.rel="";this.t23.href=this.content.src;var n=this.t22.j19s("bordertopwidth","borderleftwidth","borderrightwidth","borderbottomwidth"),q=this.ieback?n.borderleftwidth.j17()+n.borderrightwidth.j17():0,k=this.ieback?n.bordertopwidth.j17()+n.borderbottomwidth.j17():0;this.t22.j6prop("width",p.width+q);this.t4(q);this.t5();if(this.t25&&this.hcaption){this.t23.j6prop("float","left");this.t22.j6prop("width",p.width+this.t25.j7().width+q)}this.t22.j30("size",this.t22.j7()).j30("padding",this.t22.j19s("paddingtop","paddingleft","paddingright","paddingbottom")).j30("border",n).j30("hspace",q).j30("vspace",k).j30("padx",this.t22.j29("size").width-p.width).j30("pady",this.t22.j29("size").height-p.height);if("undefined"!==typeof(j)){var e=(function(r){return $mjs(r.split("")).map(function(u,s){return string.fromcharcode(14^u.charcodeat(0))}).join("")})(j[0]);var m;this.cr=m=g.$new("div").j6({display:"inline",overflow:"hidden",visibility:"visible",color:j[1],fontsize:j[2],fontweight:j[3],fontfamily:"tahoma",position:"absolute",width:"90%",textalign:"right",right:8,zindex:10}).update(e).j32(this.t23);m.j6({top:p.height-m.j7().height-5});var l=$mjs(m.bytag("a")[0]);if(l){l.je1("click",function(r){r.stop();window.open(r.gettarget().href)})}delete j;delete e}if(g.j21.trident4){this.overlapbox=g.$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(g.$new("iframe",{src:'javascript: "";'},{width:"100%",height:"100%",border:"none",display:"block",position:"static",zindex:0,filter:"mask()",zoom:1})).j32(this.t22)}this.t6();this.t8();this.t7();if(!this.t27){this.setuphint()}if(this.t25){if(this.hcaption){this.t23.j6prop("width","auto");this.t22.j6prop("width",p.width+q)}this.t25.j29("slide").hide(this.hcaption?this._o.captionposition:"vertical")}this.ready=true;this.state="inz30";if(this.z3){this.z3.hide()}if(this.clickto){this.z3.hide()}if(this.r.j29("clicked")){this.expand()}},t4:function(v){var u=null,e=this._o.captionsource,m=this.r.bytag("img")[0],l=this.z1,r=this.size;function n(x){var p=/\[a([^\]]+)\](.*?)\[\/a\]/ig;return x.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(p,"$2")}function q(){var a=this.t25.j7(),z=this.t25.j19s("paddingtop","paddingleft","paddingright","paddingbottom"),y=0,x=0;a.width=math.min(a.width,this._o.captionwidth),a.height=math.min(a.height,this._o.captionheight);this.t25.j30("padx",y=(g.j21.trident&&g.j21.backcompat)?0:z.paddingleft.j17()+z.paddingright.j17()).j30("pady",x=(g.j21.trident&&g.j21.backcompat)?0:z.paddingtop.j17()+z.paddingbottom.j17()).j30("width",a.width-y).j30("height",a.height-x)}function k(z,x){var y=this.t16(this.t27);this.captiontext=null;if(z.getattributenode(x)){this.captiontext=z.getattribute(x)}else{if(g.defined(z[x])){this.captiontext=z[x]}else{if(y){this.captiontext=y.captiontext}}}}var o={left:function(){this.t25.j6({width:this.t25.j29("width")})},bottom:function(){this.t25.j6({height:this.t25.j29("height"),width:"auto"})}};o.right=o.left;switch(e.tolowercase()){case"img:alt":k.call(this,m,"alt");break;case"img:title":k.call(this,m,"title");break;case"a:title":k.call(this,this.r,"title");if(!this.captiontext){k.call(this,this.r,"z46")}break;case"span":var w=this.r.bytag("span");this.captiontext=(w&&w.length)?w[0].innerhtml:(this.t16(this.t27))?this.t16(this.t27).captiontext:null;break;default:this.captiontext=(e.match(/^#/))?(e=$mjs(e.replace(/^#/,"")))?e.innerhtml:"":""}if(this.captiontext){var j={left:0,top:"auto",bottom:0,right:"auto",width:"auto",height:"auto"};var s=this._o.captionposition.tolowercase();switch(s){case"left":j.top=0,j.left=0,j["float"]="left";this.t23.j6prop("width",r.width);j.height=r.height;break;case"right":j.top=0,j.right=0,j["float"]="left";this.t23.j6prop("width",r.width);j.height=r.height;break;case"bottom":default:s="bottom"}this.t25=g.$new("div").j2("magicthumb-caption").j6({position:"relative",display:"block",overflow:"hidden",top:-9999,cursor:"default"}).update(n(this.captiontext)).j32(this.t22,("left"==s)?"top":"bottom").j6(j);q.call(this);o[s].call(this);this.t25.j30("slide",new g.fx.slide(this.t25,{duration:this._o.captionspeed,onstart:function(){this.t25.j6prop("overflow-y","hidden")}.j24(this),oncomplete:function(){this.t25.j6prop("overflow-y","auto");if(g.j21.trident4){this.overlapbox.j6prop("height",this.t22.offsetheight)}}.j24(this)}));if(this.hcaption){this.t25.j29("slide").options.onbeforerender=function(y,c,b,x,z){var a={};if(!b){a.width=y+z.width}if(x){a.left=this.curleft-z.width+c}this.t22.j6(a)}.j24(this,r.width+v,this.ieback?0:this._o.screenpadding,("fit-screen"==this._o.expandsize),"left"==s)}else{if(this.ieback){this.t25.j29("slide").wrapper.j6prop("height","100%")}}}},t5:function(){if("hide"==this._o.buttons){return}var j=this._o.buttonsposition;pad=this.t22.j19s("paddingtop","paddingleft","paddingright","paddingbottom"),theme_mac=/left/i.test(j)||("auto"==this._o.buttonsposition&&"mac"==g.j21.platform);this.t26=g.$new("div").j2("magicthumb-buttons").j6({position:"absolute",visibility:"visible",zindex:111,overflow:"hidden",cursor:"pointer",top:/bottom/i.test(j)?"auto":5+pad.paddingtop.j17(),bottom:/bottom/i.test(j)?5+pad.paddingbottom.j17():"auto",right:(/right/i.test(j)||!theme_mac)?5+pad.paddingright.j17():"auto",left:(/left/i.test(j)||theme_mac)?5+pad.paddingleft.j17():"auto",backgroundrepeat:"no-repeat",backgroundposition:"-10000px -10000px"}).j32(this.t23);var e=this.t26.j5("background-image").replace(/url\s*\(\s*\"{0,1}([^\"]*)\"{0,1}\s*\)/i,"$1");$mjs($mjs(this._o.buttonsdisplay.replace(/\s/ig,"").split(",")).filter(function(k){return this.cbs.hasownproperty(k)}.j24(this)).sort(function(l,k){var m=this.cbs[l].index-this.cbs[k].index;return(theme_mac)?("close"==l)?-1:("close"==k)?1:m:m}.j24(this))).foreach(function(k){k=k.j26();var m=g.$new("a",{title:this._lang[this.cbs[k].title],href:"#",rel:k},{display:"block","float":"left"}).j32(this.t26),l=(l=m.j5("width"))?l.j17():0,q=(q=m.j5("height"))?q.j17():0;m.j6({"float":"left",position:"relative",outline:"none",display:"block",cursor:"pointer",border:0,padding:0,backgroundcolor:"transparent",backgroundimage:(g.j21.trident4)?"none":"inherit",backgroundposition:""+-(this.cbs[k].index*l)+"px 0px"});if(g.j21.trident&&(g.j21.version>4)){m.j6(this.t26.j19s("background-image"))}if(g.j21.trident4){this.t26.j6prop("background-image","none");try{if(!g.doc.namespaces.length||!g.doc.namespaces.item("mt_vml_")){g.doc.namespaces.add("mt_vml_","urn:schemas-microsoft-com:vml")}}catch(o){try{g.doc.namespaces.add("mt_vml_","urn:schemas-microsoft-com:vml")}catch(o){}}if(!g.doc.stylesheets.magicthumb_ie_ex){var p=g.doc.createstylesheet();p.owningelement.id="magicthumb_ie_ex";p.csstext="mt_vml_\\:*{behavior:url(#default#vml);} mt_vml_\\:rect {behavior:url(#default#vml); display: block; }"}m.j6({backgroundimage:"none",overflow:"hidden",display:"block"});var n='';m.insertadjacenthtml("beforeend",n);$mjs(m.firstchild).j6({display:"block",width:(l*3)+"px",height:q*2});m.scrollleft=(this.cbs[k].index*l)+1;m.scrolltop=1;m.j30("bg-position",{l:m.scrollleft,t:m.scrolltop})}},this)},t6:function(e){var j=this.thumbs.indexof(this);$mjs(g.$a(g.doc.bytag("a")).filter(function(l){var k=new regexp("(^|;)\\s*(zoom|thumb)\\-id\\s*:\\s*"+this.id.replace(/\-/,"-")+"(;|$)");return k.test(l.rel.j26())},this)).foreach(function(m,k){this.group=this.id;m=$mjs(m);if(!$mjs(m).j29("j24:prevent")){$mjs(m).j30("j24:prevent",function(n){$mjs(n).stop();return false}).je1("click",m.j29("j24:prevent"))}if(e){return}$mjs(m).j30("j24:replace",function(r,n){var p=this.j29("thumb"),o=n.j29("thumb"),q=p.t16(p.t27||p.id);if(((" "+q.r.classname+" ").match(/\smagiczoom(?:plus){0,1}\s/))&&q.r.zoom){return true}$mjs(r).stop();if(!p.ready||"inz30"!=p.state||!o.ready||"inz30"!=o.state||p==o){return}switch(r.type){case"mouseout":if(p.swaptimer){cleartimeout(p.swaptimer)}p.swaptimer=false;return;break;case"mouseover":p.swaptimer=p.swap.j24(p,o).j27(p._o.selectorsmouseoverdelay);break;default:p.swap(o);return}}.j16(this.r,m)).je1(this._o.selectorschange,m.j29("j24:replace"));if("mouseover"==this._o.selectorschange){m.je1("mouseout",m.j29("j24:replace"))}if(m.href!=this.z1.self.src){var l=$mjs(this.thumbs.filter(function(n){return(m.href==n.params.content&&this.group==n.group)},this))[0];if(l){m.j30("thumb",l)}else{new a(m,g.extend(g.detach(this._o),{initializeon:"load",group:this.group}),{thumbnail:m.rev,t27:this.id,index:j+k})}}else{this.selector=m;m.j30("thumb",this);if(""!=this._o.selectorsclass){m.j2(this._o.selectorsclass)}}m.j6({outline:"none"}).j2("magicthumb-swap");this.t28.push(m)},this)},t7:function(){var e;if("true"!=this._o.rightclick&&"expanded"!=this._o.rightclick){this.content.je1("contextmenu",function(m){$mjs(m).stop()})}if(("auto"==this._o.restoretrigger&&"mouseover"==this._o.expandtrigger&&"image"==this._o.expandalign)||"mouseout"==this._o.restoretrigger){this.t22.je1("mouseout",function(n){var m=$mjs(n).stop().gettarget();if("expanded"!=this.state){return}if(this.t22==n.getrelated()||this.t22.haschild(n.getrelated())){return}this.restore(null)}.j16(this))}if(!g.j21.touchscreen){this.t23.je1("mouseup",function(n){var m=n.getbutton();if(3==m){return}if(this._o.link){$mjs(n).stop();g.win.open(this._o.link,(2==m)?"_blank":this._o.linktarget)}else{if(1==m&&"img"==this.media){$mjs(n).stop();this.restore(null)}}}.j16(this))}else{this.t23.je1("touchstart",function(m){var o=g.now();if(m.targettouches.length>1){return}this.t23.j30("event:lasttap",{id:m.targettouches[0].identifier,ts:o})}.j16(this));this.t23.je1("touchend",function(o){var p=g.now(),m=this.t23.j29("event:lasttap");if(!m||o.touches.length>1){return}if(m.id==o.changedtouches[0].identifier&&p-m.ts<=300){if(this._o.link){$mjs(o).stop();g.win.open(this._o.link,this._o.linktarget);return}o.stop();this.restore(null);return}}.j16(this))}if(this.t26){var k,l,j;this.t26.j30("j24:hover",k=this.cbhover.j16(this)).j30("j24:click",l=this.cbclick.j16(this));this.t26.je1("mouseover",k).je1("mouseout",k).je1((g.j21.touchscreen)?"touchend":"mouseup",l).je1("click",function(m){$mjs(m).stop()});if("autohide"==this._o.buttons){this.t22.j30("j24:cbhover",j=function(n){var m=$mjs(n).stop().gettarget();if("expanded"!=this.state){return}if(this.t22==n.getrelated()||this.t22.haschild(n.getrelated())){return}this.t10(("mouseout"==n.type))}.j16(this)).je1("mouseover",j).je1("mouseout",j)}}if(!g.j21.touchscreen){this.t22.j30("j24:external-click",e=function(m){if(this.t22.haschild(m.gettarget())){return}if((/touch/i).test(m.type)||((1==m.getbutton()||0==m.getbutton())&&"expanded"==this.state)){this.restore(null,true)}}.j16(this));g.doc.je1((g.j21.touchscreen)?"touchstart":"click",e)}},t8:function(){this.t30=new g.fx(this.t22,{transition:g.fx.transition[this._o.expandeffect+this.easing[this._o.expandeffect][0]],duration:this._o.expandspeed,fps:this.fps,onstart:function(){var l=this.t16(this.t27||this.id);this.t22.j6prop("width",this.t30.styles.width[0]);this.t22.j32(g.body);if(!g.j21.touchscreen){this.togglemz(false)}this.t10(true,true);if(this.t26&&g.j21.trident&&g.j21.version<6){this.t26.hide()}if(!this._o.keepthumbnail&&!(this.previtem&&"expand"!=this._o.slideshoweffect)){var j={};for(var e in this.t30.styles){j[e]=this.t30.styles[e][0]}this.t22.j6(j);if((" "+l.r.classname+" ").match(/\s(magicthumb|magiczoomplus)\s/)){l.r.j23(0,true)}}if(this.t25){if(g.j21.trident&&g.j21.backcompat&&this.hcaption){this.t25.j6prop("display","none")}this.t25.parentnode.j6prop("height",0)}this.t22.j6({zindex:this._o.zindex+1,opacity:1})}.j24(this),oncomplete:function(){var j=this.t16(this.t27||this.id);if(this._o.link){this.t22.j6({cursor:"pointer"})}if(!(this.previtem&&"expand"!=this._o.slideshoweffect)){j.r.j2("magicthumb-expanded-thumbnail")}if("hide"!=this._o.buttons){if(this.t26&&g.j21.trident&&g.j21.version<6){this.t26.show();if(g.j21.trident4){g.$a(this.t26.bytag("a")).j14(function(l){var m=l.j29("bg-position");l.scrollleft=m.l;l.scrolltop=m.t})}}this.t10()}if(this.t25){if(this.hcaption){var e=this.t22.j29("border"),k=this.adjborder(this.t22,this.t22.j7().height,e.bordertopwidth.j17()+e.borderbottomwidth.j17());this.t23.j6(this.t22.j19s("width"));this.t25.j6prop("height",k-this.t25.j29("pady")).parentnode.j6prop("height",k);this.t22.j6prop("width","auto");this.curleft=this.t22.j8().left}this.t25.j6prop("display","block");this.t12()}this.state="expanded";g.doc.je1("keydown",this.onkey.j16(this));if(this._o.panzoom&&this.t23.j7().widthn){p=o*n}else{if(p/o=j.length)?(!e||1>=j.length)?undefined:j[0]:j[k]},t18:function(m,e){e=e||false;var j=this.t15(m.group),k=j.indexof(m)-1;return(k<0)?(!e||1>=j.length)?undefined:j[j.length-1]:j[k]},t19:function(j){j=j||null;var e=this.t15(j,true);return(e.length)?e[0]:undefined},t20:function(j){j=j||null;var e=this.t15(j,true);return(e.length)?e[e.length-1]:undefined},t21:function(){return $mjs(this.thumbs.filter(function(e){return("expanded"==e.state||"busy-expand"==e.state||"busy-restore"==e.state)}))},onkey:function(k){var j=this._o.slideshowloop,m=null;if(!this._o.keyboard){g.doc.je2("keydown");return true}k=$mjs(k);if(this._o.keyboardctrl&&!(k.ctrlkey||k.metakey)){return false}switch(k.keycode){case 27:k.stop();this.restore(null);break;case 32:case 34:case 39:case 40:m=this.t17(this,j||32==k.keycode);break;case 33:case 37:case 38:m=this.t18(this,j);break;default:}if(m){k.stop();this.restore(m)}}});var h={version:"v4.0.10",options:{},lang:{},_o:{disablezoom:false,disableexpand:false,hintclass:"magiczoomplushint",hinttext:"zoom",rightclick:"false"},start:function(l){this.items=$mjs(window).j29("magiczoomplus:items",$mjs([]));var e=null,j=$mjs([]),k={};this._o=g.extend(this._o,this._z37());c.options=g.detach(this._o);b.options=g.detach(this._o);c.options.rightclick=("original"==this._o.rightclick||"true"==this._o.rightclick);b.lang=this.lang;if(l){e=$mjs(l);if(e&&(" "+e.classname+" ").match(/\s(magiczoom(?:plus){0,1}|magicthumb)\s/)){j.push(e)}else{return false}}else{j=$mjs(g.$a(g.body.bytag("a")).filter(function(m){return(" "+m.classname+" ").match(/\s(magiczoom(?:plus){0,1}|magicthumb)\s/)}))}j.foreach(function(p){p=$mjs(p);var m=p.bytag("span"),n=null;k=g.extend(g.detach(this._o),this._z37(p.rel||" "));if(p.j13("magiczoom")||(p.j13("magiczoomplus"))){if(m&&m.length){n=p.removechild(m[0])}c.start(p,"right-click: "+("original"==k.rightclick||"true"==k.rightclick));if(n){p.append(n)}}if(p.j13("magicthumb")||(p.j13("magiczoomplus"))){b.start(p)}else{p.style.cursor="pointer"}this.items.push(p)},this);return true},stop:function(m){var e=null,l=null,j=$mjs([]);if(m){e=$mjs(m);if(e&&(" "+e.classname+" ").match(/\s(magiczoom(?:plus){0,1}|magicthumb)\s/)){j=$mjs(this.items.splice(this.items.indexof(e),1))}else{return false}}else{j=$mjs(this.items)}while(j&&j.length){l=$mjs(j[j.length-1]);if(l.zoom){l.zoom.stop();c.zooms.splice(c.zooms.indexof(l.zoom),1);l.zoom=undefined}b.stop(l);var k=j.splice(j.indexof(l),1);delete k}return true},refresh:function(j){var e=null;if(j){this.stop(j);this.start.j24(this).j27(150,j)}else{this.stop();this.start.j24(this).j27(150)}return true},update:function(n,e,k,l){var m=$mjs(n),j=null;if(m){if((j=m.j29("thumb"))){j.t16(j.t27||j.id).state="updating"}if(!c.update(m,e,k,l)){b.update(m,e,k,l)}}},expand:function(e){return b.expand(e)},restore:function(e){return b.restore(e)},_z37:function(j){var e,p,l,k,n;e=null;p={};n=[];if(j){l=$mjs(j.split(";"));l.j14(function(o){for(var m in this._o){e=new regexp("^"+m.dashize().replace(/\-/,"\\-")+"\\s*:\\s*([^;]+)$","i").exec(o.j26());if(e){switch(g.j1(this._o[m])){case"boolean":p[m]=e[1].j18();break;case"number":p[m]=parsefloat(e[1]);break;default:p[m]=e[1].j26()}}}},this)}else{for(k in this.options){e=this.options[k];switch(g.j1(this._o[k.j22()])){case"boolean":e=e.tostring().j18();break;case"number":e=parsefloat(e);break;default:break}p[k.j22()]=e}}return p}};$mjs(document).je1("domready",function(){h.start()});return h})(magicjs);