	durtToRead = 1000; // home pg scroll
	callNext = 8000;	 // home pg scroll
		
 window.addEvent('domready',function() {
 	
	i=1;
	slideCount = $$('.scrollSlide').length;
	// cntHt = slideCount*217;
	// $('scrollContainer').setStyle('height',cntHt);
	
 	var myScroll = new Fx.Scroll('scrollFrame', {
		wait: false,
		duration: durtToRead,
		offset: { x:0 } 
	});

	autoScroll = function() {
 		$$('.scrollSlide').each(function(element, index) {
 			if(index==i)
 				myScroll.toElement(element);
 		}); // foreach of scrollSlide array

 		// reset
 		if(i==slideCount) {
 			i=0;
 			myScroll.cancel();
 			myScroll.set(0,0);
 			// myScroll.toTop();
 			// $('scrollFrame').scrollTo(0,0);
 		}
		i++;		
	} // autoScroll
	thePeriodicalCaller = autoScroll.periodical(callNext,this);

}); // DOM
