function galeriaZOOM()
{
	this.frames=[];
	this.images=[];
	this.alpha=90;
	this.interval=40;
	this.minSize=0.5;
	this.numberOfTransitionSteps=10;
	this.offsetSize=50;
	this.container=null;
	this.timer=null;
	galeriaZOOM.prototype.buildImage=function(H)
	{
		var E,C,L,F,K,B,J,A,G,D;C=Math.floor(this.numberOfFrames/2)+1;A=H.originalHeight-(K=H.originalHeight*this.minSize);
		G=H.originalWidth-(B=H.originalWidth*this.minSize);
		H.frames=[];
		
		for(var I=0;I<this.numberOfFrames;I++)
		{
			E=this.frames[I];
			L=K+A*(E.zindex/C);
			J=(this.container.offsetHeight/2)-(L/2) - 35;
			D=B+G*(E.zindex/C);
			F=E.left-(D/2);
			H.frames[I]={height:L+"px",left:F+"px",top:(J)+"px",width:D+"px"}
		}
	};
	
	galeriaZOOM.prototype.build=function(M)
	{
		var F,E=[],I,K=[],H,B,D,G,L,J,C,A=[],N;
		L=this.images.length;
		J=(M-1)*this.numberOfTransitionSteps+1;
		B=Math.floor(J/2)+1;I=-1*this.offsetSize;
		H=(this.container.offsetWidth+2*this.offsetSize)/J;
		
		for(G=0;G<J;G++)
		{
			C=(G%J)+1;
			N=C-((C%B)*2)*parseInt(C/B,10);
			F=N/(B*this.alpha);K[G]={filter:"alpha(opacity="+parseInt(F*100,10)+")",left:I,opacity:F,zindex:N};
			I+=H
		}
	
		this.frames=K;
		this.numberOfFrames=J;
		for(G=0;G<M;G++)
		{
			D=this.images[G];
			D.position=G*this.numberOfTransitionSteps;
			this.buildImage(D);
			this.container.appendChild(D);
			this.displayImage(D);
			E.push(D)
		}
		
		for(;G<L;G++)
		{
			D=this.images[G];
			D.position=0;
			this.buildImage(D);
			this.container.appendChild(D);
			D.style.visibility="hidden";
			A.push(D)
		}
		this.displayedImages=E;
		this.undisplayedImages=A;
		this.currentFrame=0;
		this.middleOfImages=Math.floor(E.length/2)
	};
	
	galeriaZOOM.prototype.displayImage=function(B)
	{
		var C=this.frames[B.position];
		B.style.filter=C.filter;
		B.style.opacity=C.opacity;
		B.style.zIndex=C.zindex;
		
		var A=B.frames[B.position];
		B.style.left=A.left;
		B.style.height=A.height;
		B.style.top=A.top;
		B.style.width=A.width
	};
	
	galeriaZOOM.prototype.move=function(A,F)
	{
		if(this.timer===null)
		{
			var B=this;
			var D=function()
			{
				var G=0;
				if(A===0)
				{
					window.clearInterval(B.timer);
					B.timer=null;
					if(B.onChange&&B.onChange.constructor===Function)
					{
						B.onChange()
					}
					return
				}
				else
				{
					if(A>0)
					{
						G=-1
					}
					else
					{
						if(A<0)
						{
							G=+1
						}
					}
				}
				
				A+=G;
				B.selectedFrame+=G;
				B.move(G,F)
			};
			
			F=window.setInterval(D,this.interval);
			this.timer=F
		}
		else
		{
			if(this.timer===F)
			{
				var E;
				if(this.currentFrame%this.numberOfTransitionSteps===0)
				{
					if(A<0)
					{
						this.undisplayedImages.unshift(E=this.displayedImages.shift());
						E.style.visibility="hidden"
					}
					else
					{
						if(A>0)
						{
							this.undisplayedImages.push(E=this.displayedImages.pop());
							E.style.visibility="hidden"
						}
					}
				}
				
				for(var C=0;C<this.displayedImages.length;C++)
				{
					E=this.displayedImages[C];
					E.position+=A;
					this.displayImage(E)
				}
				this.currentFrame=this.currentFrame+A%this.numberOfTransitionSteps;
				
				if(this.currentFrame%this.numberOfTransitionSteps===0)
				{
					if(A<0)
					{
						this.displayedImages.push(E=this.undisplayedImages.pop());
						E.style.visibility="visible";
						E.position=this.numberOfFrames-1;
						this.displayImage(E)
					}
					else
					{
						if(A>0)
						{
							this.displayedImages.unshift(E=this.undisplayedImages.shift());
							E.style.visibility="visible";
							E.position=0;
							this.displayImage(E)
						}
					}
				}
			}
		}
		
		return true
	};
	
	galeriaZOOM.prototype.next=function(A)
	{
		if(isNaN(A=parseInt(A,10)))
		{
			A=1
		}
		
		this.move(-1*A*this.numberOfTransitionSteps)
	};
	
	galeriaZOOM.prototype.previous=function(A)
	{
		if(isNaN(A=parseInt(A,10)))
		{
			A=1
		}
		this.move(A*this.numberOfTransitionSteps)
	};
	
	galeriaZOOM.prototype.setAlpha=function(A)
	{
		this.alpha=A
	};
	
	galeriaZOOM.prototype.setMinSize=function(A)
	{
		this.minSize=A
	};
	
	galeriaZOOM.prototype.setInterval=function(A)
	{
		this.interval=A
	};
	
	galeriaZOOM.prototype.setNumberOfTransitionSteps=function(A)
	{
		this.numberOfTransitionSteps=A
	};
	
	galeriaZOOM.prototype.setOffsetSize=function(A)
	{
		this.offsetSize=A
	};
	
	galeriaZOOM.prototype.setContainer=function(A)
	{
		this.container=A
	};
	
	galeriaZOOM.prototype.getSelectedImage=function()
	{
		return this.displayedImages[this.middleOfImages]
	};
	
	galeriaZOOM.prototype.addImage=function(D,A,C)
	{
		if((D.constructor!==undefined||D.constructor!==null)&&D.constructor===String)
		{
			var B=D;D=new Image();
			D.src=B;
			document.body.appendChild(D)
		}
		
		D.style.position="absolute";
		D.originalHeight=isNaN(A=parseFloat(A))?parseFloat(D.offsetHeight):A;
		D.originalWidth=isNaN(C=parseFloat(C))?parseFloat(D.offsetWidth):C;
		
		if(D.originalHeight>this.maxImageHeight)
		{
			this.maxHeight=D.originalHeight
		}
		
		if(D.originalWidth>this.maxImageWidth)
		{
			this.maxWidth=D.originalWidth
		}
		this.images.push(D)
	};
	
	galeriaZOOM.prototype.clearImages=function()
	{
		this.images=[]
	}
}

function ggg(B,A){if(A){if(B.value===""){B.style.backgroundImage="url()"}else{B.style.backgroundImage="none"}}else{B.style.backgroundImage="none"}}function yhmnclr(D,C,B,A){if(C===true){D.style.backgroundColor=B;D.style.textDecoration="none";D.style.color=A}else{D.style.color=B;D.style.textDecoration="none";D.style.backgroundColor=A}}function ybdgmrshow(A){var C=document.getElementById(A);var B=document.getElementById(A+"a");if(C.style.display==="block"){B.style.backgroundImage="url(arrow_right.gif)";C.style.display="none"}else{B.style.backgroundImage="url(arrow_down.gif)";C.style.display="block"}}function ycpclpbrd(D){var A=document.createElement("textarea");A.value=D;var B="yflshcp";if(!document.getElementById(B)){var E=document.createElement("div");E.id=B;document.body.appendChild(E)}document.getElementById(B).innerHTML="";var C='<embed src="clipboard.swf" AllowScriptAccess="never" FlashVars="clipboard='+A.value+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';document.getElementById(B).innerHTML=C}function ymsvr(A,B){A.style.textDecoration=(B?"underline":"none")};