var curPhoto = 1;
var maxPhotos;

Effect.Transitions.exponential = function(pos) {
  return 1-Math.pow(1-pos,2);
}

function moveLeft() {
	if(curPhoto != (maxPhotos - 1)) {
		new Effect.MoveBy('mini_gallery_inner', 0, -64 , 
								{
								  duration: 0.4,  
								  transition: Effect.Transitions.exponential
								});
		
		new Effect.Morph(('imgc_' + curPhoto), {
							style:'width:50px;height:40px;margin:20px 5px 0px 5px;',
							duration:0.4
						});
		
		new Effect.Morph(('imgc_' + (curPhoto + 1)), {
							style:'width:120px;height:90px;margin:0px 5px 0px 5px',
							duration:0.4
						});
					
		curPhoto = curPhoto + 1;
	}
}

function moveRight() {
	if(curPhoto != 0) {
		new Effect.MoveBy('mini_gallery_inner', 0, 64 , 
								{
								  duration: 0.4,  
								  transition: Effect.Transitions.exponential
								});
		
		new Effect.Morph(('imgc_' + curPhoto), {
							style:'width:50px;height:40px;margin:20px 5px 0px 5px;',
							duration:0.4
						});
		
		new Effect.Morph(('imgc_' + (curPhoto - 1)), {
							style:'width:120px;height:90px;margin:0px 5px 0px 5px',
							duration:0.4
						});
		curPhoto = curPhoto - 1;
	}
}
