var a;function AN(d){if(d){this.ENG={zoom:zIOE,fade:fIOE,slide:sIOE};if(this.engine=this.ENG[d]){this.run=false;this._uWA=this._uMF=this._uME=this.target=null;this.state=0;this.config={};this.config.name=this.engine._name;this.config.h_v=this.engine._maximum||1;this.config.lowest_val=this.engine._minimum||0;this.config.base_step=this.engine.step||0.1;this.config.base_time=this.engine._time||10;this.config.curve=null;this.dpnd=new AA;this.lastReportedValue=0}}}a=AN.prototype;
a.attachTo=function(d){this.target=d;this._uME=typeof this.target.style.zoom=="string"?true:false;this._uMF=typeof this.target.filters!="undefined"?true:false;this._uWA=typeof this.target.style.opacity=="string"?true:false};a.relateTo=function(d){this.relation=d};a.detachFrom=function(){this.target=null};a.registerStartCallback=function(d){this.onStartCallback=d};a.registerCompleteCallback=function(d){this.onCompleteCallback=d};
a.registerDependant=function(d){if(this.dpnd!==null){var b=new AN(this.config.name);b.dpnd=null;b.registerStartCallback=null;b.registerCompleteCallback=null;b.attachTo(d);this.dpnd.push(b)}};a.registerCurveGenerator=function(d){this.config.curve=d};
a._start=function(d){if(this.engine){var b;if(this.state)if(d)if(this.state==-1)b=true;else{if(this.state==1)b=false}else if(this.state==1)b=true;else{if(this.state==-1)b=false}else b=true;if(b){this.run=true;this.engine(d);if(this.dpnd&&this.dpnd.length){var g=this;this.dpnd.each(function(e){e.__parent=g;e.run=true;e.engine(d)})}}}};a._stop=function(){this.run=false;this.dpnd&&this.dpnd.length&&this.dpnd.each(function(d){d.run=true})};
function zIOE(d){var b=this;typeof b.onStartCallback=="function"&&b.onStartCallback();var g=b.target;if(!b._uME){var e=function(c){var i={},p=gCP(c,"width","number"),q=gCP(c,"height","number");if(!p||!q)var r=getLayout(c);i.width=p?p:r.width;i.height=q?q:r.height;return i};if(typeof b.orig=="undefined")if(typeof b.__parent!="undefined"){if(typeof b.__parent.orig!="undefined")b.orig={width:b.__parent.orig.width,height:Math.ceil(b.__parent.orig.height/b.__parent.dpnd.length)}}else b.orig=e(g);if(b.dpnd&&
!b.dpnd.length){var f=_getOwnChildrenOnly(g);if(f.length){var o=["br"];_Ae(f,function(c){_Ai(o,c.nodeName.toLowerCase())==-1&&b.registerDependant(c)})}else b.dpnd=null}}f=b.config.base_step;var j,k,m,l;if(d){d=b.config.lowest_val+f;j=b.config.h_v;k=function(c,i){return c<i?true:false};m=f;l=1}else{d=b.config.h_v-f;j=b.config.lowest_val+f;k=function(c,i){return c>i?true:false};m=-1*f;l=-1}f=function(){this.target=g};f.prototype.get=function(){if(b._uME)return gCP(this.target,"zoom","number");else{var c=
e(this.target);return c=c.width/b.orig.width}};f.prototype.set=function(c){if(b._uME)this.target.style.zoom=c;else{response_width=c*b.orig.width;response_height=c*b.orig.height;this.target.style.width=response_width+"px";this.target.style.height=response_height+"px";c=Math.floor(100*c)+"%";if(typeof b.origLineHeight=="undefined")b.origLineHeight=gCP(this.target,"line-height");this.target.style.lineHeight=c;if(typeof b.origFontSize=="undefined")b.origFontSize=gCP(this.target,"fontsize");this.target.style.fontSize=
c;if(c=="100%"){this.target.style.lineHeight=b.origLineHeight;this.target.style.fontSize=b.origFontSize}c=c!="100%"?"rect(0px "+Math.round(response_width+2)+"px "+Math.round(response_height+2)+"px 0px)":"rect(0px 1000px 1000px 0px)";this.target.style.clip=c}};var h=new f;h.set(d);var n=function(){if(b.run){var c=h.get();if(k(c,j)){n_v=c+m;if(k(j,n_v)){h.set(j);g=null;b.state=l;typeof b.onCompleteCallback=="function"&&b.onCompleteCallback()}else{h.set(n_v);c=10;window.setTimeout(function(){n()},c)}}}};
n()}zIOE._name="zoom";zIOE._minimum=0.01;zIOE._maximum=1;zIOE._time=10;zIOE.step=0.08;
function fIOE(d){var b=this;typeof b.onStartCallback=="function"&&b.onStartCallback();var g=b.target;if(b._uMF){this.target.style.filter="";this.target.style.filter="progid:DXImageTransform.Microsoft.Alpha()";this.target.filters.item("DXImageTransform.Microsoft.Alpha").Enabled=true;this.target.filters.item("DXImageTransform.Microsoft.Alpha").Style=0;this.target.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=1}else g.style.opacity=0.01;var e=b.config.base_step,f,o,j,k;if(d){d=b.config.lowest_val+
e;f=b.config.h_v;o=function(h,n){return h<n?true:false};j=e;k=1}else{d=b.config.h_v-e;f=b.config.lowest_val+e;o=function(h,n){return h>n?true:false};j=-1*e;k=-1}e=function(){this.target=g};e.prototype.get=function(){if(b._uMF)try{var h=this.target.filters.item("DXImageTransform.Microsoft.Alpha").Opacity/100;return b.lastReportedValue=h}catch(n){return b.lastReportedValue}else{if(b._uWA)return gCP(this.target,"opacity","number");return f}};e.prototype.set=function(h){if(b._uMF){try{this.target.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=
h*100}catch(n){}if(h==1)this.target.style.filter=""}else if(b._uWA)this.target.style.opacity=h};var m=new e,l=function(){if(b.run){var h=m.get();if(o(h,f)){n_v=h+j;if(o(f,n_v)){m.set(f);g=null;b.state=k;typeof b.onCompleteCallback=="function"&&b.onCompleteCallback()}else{m.set(n_v);h=20;window.setTimeout(function(){l()},h)}}}};l()}fIOE._name="fade";fIOE._minimum=0.01;fIOE._maximum=1;fIOE._time=10;fIOE._step=0.08;
function sIOE(d){var b=this;typeof b.onStartCallback=="function"&&b.onStartCallback();var g=b.relation,e=b.target;if(typeof b.orig=="undefined")b.orig={};g=b.orig.rel_box||(b.orig.rel_box=getLayout(g));var f=b.orig.targ_box||(b.orig.targ_box=getLayout(e));g=b.orig.disp_delta||(b.orig.disp_delta=gBD(g,f));var o=b.orig.slide_dir||(b.orig.slide_dir=Math.abs(g.x)>Math.abs(g.y)?"horz":"vert");g="rect("+f.height+"px "+f.width+"px "+f.height+"px "+f.width+"px)";e.style.clip=g;g=b.config.base_step;var j,
k,m,l;if(d){d=b.config.lowest_val+g;j=b.config.h_v;k=function(c,i){return c<i?true:false};m=g;l=1}else{d=b.config.h_v-g;j=b.config.lowest_val+g;k=function(c,i){return c>i?true:false};m=-1*g;l=-1}d=function(){this.target=e};d.prototype.get=function(){var c=gCP(e,"clip");c=c.match(/\d{1,4}px/g);if(o=="vert"){c=parseInt(c[0]);c=Math.round(c*100/f.height)}else{c=parseInt(c[3]);c=Math.round(c*100/f.width)}c=100-c;return c=c/100};d.prototype.set=function(c){c=100-Math.round(c*100);if(o=="vert"){var i=Math.round(c*
f.height/100);c="rect("+i+"px "+f.width+"px "+f.height+"px 0px)";e.style.clip=c;e.style.marginTop=-1*i+"px"}else{i=Math.round(c*f.width/100);c="rect(0px "+f.width+"px "+f.height+"px "+i+"px)";e.style.clip=c;e.style.marginLeft=-1*i+"px"}};var h=new d,n=function(){if(b.run){var c=h.get();if(k(c,j)){n_v=c+m;if(k(j,n_v)){e.style.clip="rect(0px 1000px 1000px 0px)";e.style.marginTop="0px";e.style.marginLeft="0px";e=null;b.state=l}else{h.set(n_v);if(n_v>=j){e.style.clip="rect(0px 1000px 1000px 0px)";e.style.marginTop=
"0px";e.style.marginLeft="0px";e=null;b.state=l;typeof b.onCompleteCallback=="function"&&b.onCompleteCallback()}else{c=10;window.setTimeout(function(){n()},c)}}}else{e.style.clip="rect(0px 1000px 1000px 0px)";e.style.marginTop="0px";e.style.marginLeft="0px";e=null;b.state=l}}};n()}sIOE._name="fade";sIOE._minimum=0.01;sIOE._maximum=1;sIOE._time=10;sIOE._step=0.08;
