var ficlicked = false;
var indexcount = homecount;
window.addEvent('domready', function() {
//  var scroll = new Scroller('scrollerPlacement', {area: 250, velocity: 0.1});
//  $('scrollerPlacement').addEvent('mouseenter', scroll.start.bind(scroll));
//  $('scrollerPlacement').addEvent('mouseleave', scroll.stop.bind(scroll));

  var scrollfx = new Fx.Scroll('quoteWrapper', {
    wait: false,
    duration: 2000,
    offset: {'x': -20, 'y': 0},
    transition: Fx.Transitions.Cubic.easeInOut
  });//Fx.Transitions.Quad.easeOut  | Fx.Transitions.Bounce.easeOut

  scrollfx.toElement('quote' + (indexcount-1));
    
setInterval(function(){
	if(ficlicked == false){
		if(indexcount <= 0){
			indexcount = homecount - 1;
		}else{		
			indexcount = indexcount - 1;
		}
	    scrollfx.toElement('quote' + indexcount);
	}
}, 8000);

});



