﻿/// <reference path="jquery-1.3.2-vsdoc.js" />

$(document).ready(function() {
	if( $('#hero-player li').size() > 1 )
	{
		var active = 1;
		$('#hero-player li').hide();
		$('#hero-player li:first').addClass('active').show();;

		function switchBanner() {
			active++;
			if(active > $('#hero-player li').size())
				active = 1;

			$('#hero-player li').removeClass('active').hide();
			$('#hero-player li:eq(' + (active - 1) + ')').addClass('active').show();
		}

		setInterval( switchBanner, 3000 );
	}
});