var timer = null
changeTab = function() {
	var el = $('.polecamy li.active').eq(0);
	var next = el.next().length ? el.next() : el.parent().children('li:first-child')
	next.find('a').click()
}

$(document).ready(function(){
	timer = window.setTimeout('changeTab()', 10000)

	$('.polecamy li a').click(function(){
		window.clearTimeout(timer);
		timer = window.setTimeout('changeTab()', 10000)
	})
/*
	$('#menu li').mouseover(function(){
		$('#menu li').removeClass('hover').removeClass('active');
		$(this).addClass('hover')
	})
*/
})
