Rolo.initializeInfoPanel = function() {
	$("#main_banner").nivoSlider({
		effect: 'fold', 
		slices: 10, animSpeed:500, 
		pauseTime: 10000, directionNav: false, directionNavHide: false, 
		pauseOnHover: false,
		afterChange: function() {
			var selected_img = $(".nivo-controlNav .active").html();
			$("#product_title img:visible").hide();
			$("#game_title"+selected_img).show();			
			$(".more_options ul:visible").hide();
			$("#game_info"+selected_img).show();
			$("#main_banner").css("background","none");
		},
		beforeChange: function() {
			$("#main_banner").css("background","none");
		}
	});
	
	setTimeout(Rolo.updateNews, 10000);
};

Rolo.updateNews = function() {
	var first_news_id = "news1";
	var visible_news = $("#news_panel_news li:visible");
	if(visible_news.length) {
		var id = $(visible_news[0]).attr("id");
		$(visible_news[0]).fadeOut("slow");
		var new_id = 'news' + ( parseInt(id.replace(/news/,''), 10) + 1 );
		if( !$("#" + new_id).length ) {
			new_id = first_news_id;
		}
	} else {
		new_id = first_news_id;
	}
	setTimeout(function() {
		$("#"+new_id).fadeIn("slow");
		setTimeout(Rolo.updateNews, 10000);
	}, 2000);
};