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