/******************************************************************************************************************/
// NEWS TICKER FUNCTIONS
/******************************************************************************************************************/

function TickerHoverHandle(){
	$('.ticker .item').hover(function(){
		clearTimeout(TickerTimerId);
		index = $('.ticker .item').index(this);
	}, function(){
		TickerRun(index);
	});
}

function TickerShow(i){
	$('.ticker .item').hide();
	$('.ticker .item:eq('+ i +')').fadeIn();
}

function TickerRun(i){
	num = $('.ticker .item').size();
	if (num > 1) {
		TickerShow(i)
		i++;
		if (i == num) i = 0;
		TickerTimerId = window.setTimeout('TickerRun('+ i +')', 5000);
	}
}

/******************************************************************************************************************/
// On document load...
/******************************************************************************************************************/

$(function(){

});