Rolo.initializeGamePage = function(){
	$("#game_sub_header li").click(function(){
		var selectedli = $("#game_sub_header li.selected");
		var selectedid = '';
		if(selectedli.length) {
			selectedid = $(selectedli[0]).attr("id");
		}
		var navid= $(this).attr("id");
		if(selectedid && selectedid == navid) {
			return;
		}
		var sectionid = "#content_" + navid;
		if( $(sectionid).length ) {
			$("#game_sub_header li.selected").removeClass("selected");
			$(this).addClass("selected");
			$("#game_content_panel").children(":visible").hide();
			$("body").css({"overflow-x":"hidden"});
			$(sectionid).show("drop",{"direction": "right"}, function() {
				$("body").css({"overflow-x":"auto"});
			});
		}
	});
	
	$("#game_thumbnails li").click(function(){
		var navid= $(this).attr("id");
		var bannerid = "#" + navid.replace("thumb","banner");
		if( $(bannerid).length ) {
			$("#game_thumbnails li.selected").removeClass("selected");
			$(this).addClass("selected");
			$("#game_banner").children(":visible").hide();
			$(bannerid).fadeIn();
		}
	});
};
