// JavaScript Document
var InitScroll = 0;
function scrollNext(){
	var toScroll = InitScroll + $('ListImages').getSize().x;
	var maxScroll = $('ListImages').getScrollSize().x - $('ListImages').getSize().x;
	if (toScroll > maxScroll){
		toScroll = maxScroll;
	}
	InitScroll = toScroll;
	var myScroll = new Fx.Scroll('ListImages', {
		wait: false,
		duration: 1500,
		transition: Fx.Transitions.Cubic.easeInOut
		//transition: Fx.Transitions.linear
	});
	myScroll.start(toScroll, false);
}
function scrollPrev(){
	var toScroll = InitScroll - $('ListImages').getSize().x;
	if(toScroll < 0){toScroll = 0};
	InitScroll = toScroll;
	var myScroll = new Fx.Scroll('ListImages', {
		wait: false,
		duration: 2500,
		transition: Fx.Transitions.Cubic.easeInOut
	});
	myScroll.start(toScroll, false);
}

