var pause = false;

function autoscroll(tabs)
{
	if(!pause)
	{
		if (tabs.getIndex() < 4)
		{
			tabs.next();
		}
		else
		{
			tabs.click(0);
		}
	}
}

if ($('ul.css-tabs').length > 0)
{
	var api = $('ul.css-tabs').tabs('div.css-panes > div', {event:'mouseover', api: true});
	$(".css-panes").hover(function(){pause = true;}, function(){pause = false;});
	setInterval('autoscroll(api);', 20000);
}
