// JavaScript Document
window.addEvent('domready',function(){

	var scroll = new Fx.Scroll2('imageSlotsContainer', {
		wait: false,
		duration: 600,
		offset: {'x': 0, 'y': 0},
		transition: Fx.Transitions.Quad.easeInOut
	});


	$('prevBt').addEvent('click', function(event){	
		event = new Event(event).stop();

	if(currImageSlot>1){ currImageSlot--; }
		scroll.toElement('image'+currImageSlot);
		}
	)

	$('nextBt').addEvent('click', function(event){	
		event = new Event(event).stop();
		
		if(currImageSlot<=(maxSlots-slotWidth)){currImageSlot++;}
		scroll.toElement('image'+currImageSlot);

		}
	)
}
)

