var scroll_item_count;
var scroll_item_interval;
var old_scroll_item = 0;
var current_scroll_item = 0;
jQuery(document).ready(function(){
 scroll_item_count = jQuery("#scroller .list").size();
 scroll_item_interval = setInterval(scroll_item_rotate,8000);
 //$('#scroller li.active').hover(function() {
	//clearInterval(scroll_item_interval);
	//$("#scroller li").removeClass("active");
	//$(this).parent("li").addClass("active");
	//$(this).get($n);
 //}, function() {
	//scroll_item_interval = setInterval(scroll_item_rotate,5000);
	//scroll_item_rotate();
 //});
});
function scroll_item_rotate() {
 current_scroll_item = (old_scroll_item + 1) % scroll_item_count;
 jQuery("#scroller li").removeClass("active");
 jQuery("#scroller .list:eq(" + current_scroll_item +
")").parent("li").addClass("active");
 old_scroll_item = current_scroll_item;
}