//			var navColor = "00437e";
			var freeWheelSectionID = "cn.com_games_homepage";

			var activeGenreSection = "centerSection";
			var activeGenreLink = "";
			function swapAllGenreSet (targetSection, targetScroll, targetLinkTxt) {
				self.scrollTo(0, 700)
				
				if (targetSection == "centerSection") {
					document.getElementById(activeGenreLink).className = "allGenresHdrText";
					document.getElementById('allGenresSection').style.display = "none";
					activeGenreLink = "";
				} else {
					document.getElementById('allGenresSection').style.display = "block";
					if (activeGenreLink != "") {
						document.getElementById(activeGenreLink).className = "allGenresHdrText";
					}
					document.getElementById(targetLinkTxt).className = "allGenresHdrTextOn";
					activeGenreLink = targetLinkTxt;
				}
				document.getElementById(activeGenreSection).style.display = "none";
				document.getElementById(targetSection).style.display = "block";
				if (targetScroll != undefined) {
					if (targetScroll.className) {
						targetScroll.className = "makeScroll";
					} else {
						document.getElementById(targetScroll).className = "makeScroll";
					}
					Scroller.reset(targetScroll);
				}
				activeGenreSection = targetSection;
			}

// get stars for the Game Creator hover/tool tip cards
			function getBGCStars (region, lookupFunc) {
				var starString = "";
				var starLimit = 0;
				tempNum = parseFloat(lookupFunc("{ben10GCStatSet::rating}"));
				if (isNaN(tempNum)) {
					tempNum = 0;
				}
				roundedBase = Math.floor(tempNum);
				if (roundedBase <= 5) {
					starLimit = roundedBase;
				} else {
					starLimit = 5;
				}
				for (i = 1; i <= starLimit; i++) {
					starString += '<div class="ratingFullHover"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></div>';
				}
				extraStar = true;
				if ((tempNum > (roundedBase + .4)) && (tempNum < (roundedBase + .6))){
					starString += '<div class="ratingHalfHover"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></div>';
					extraStar = false;
				}
				emptyNum = 5 - roundedBase;
				emptyLimit = Math.round(5 - tempNum);
				for (i = 1; i <= emptyLimit; i++) {
					starString += '<span class="ratingStars"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></span>';
					if (extraStar == false) {
						i += 1;
					}
				}
				return starString;
			}
			function getBMGCStars (region, lookupFunc) {
				var starString = "";
				var starLimit = 0;
				tempNum = parseFloat(lookupFunc("{batmanGCStatSet::rating}"));
				if (isNaN(tempNum)) {
					tempNum = 0;
				}
				roundedBase = Math.floor(tempNum);
				if (roundedBase <= 5) {
					starLimit = roundedBase;
				} else {
					starLimit = 5;
				}
				for (i = 1; i <= starLimit; i++) {
					starString += '<div class="ratingFullHover"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></div>';
				}
				extraStar = true;
				if ((tempNum > (roundedBase + .4)) && (tempNum < (roundedBase + .6))){
					starString += '<div class="ratingHalfHover"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></div>';
					extraStar = false;
				}
				emptyNum = 5 - roundedBase;
				emptyLimit = Math.round(5 - tempNum);
				for (i = 1; i <= emptyLimit; i++) {
					starString += '<span class="ratingStars"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></span>';
					if (extraStar == false) {
						i += 1;
					}
				}
				return starString;
			}
			function getSWCWGCStars (region, lookupFunc) {
				var starString = "";
				var starLimit = 0;
				tempNum = parseFloat(lookupFunc("{starwarsGCStatSet::rating}"));
				if (isNaN(tempNum)) {
					tempNum = 0;
				}
				roundedBase = Math.floor(tempNum);
				if (roundedBase <= 5) {
					starLimit = roundedBase;
				} else {
					starLimit = 5;
				}
				for (i = 1; i <= starLimit; i++) {
					starString += '<div class="ratingFullHover"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></div>';
				}
				extraStar = true;
				if ((tempNum > (roundedBase + .4)) && (tempNum < (roundedBase + .6))){
					starString += '<div class="ratingHalfHover"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></div>';
					extraStar = false;
				}
				emptyNum = 5 - roundedBase;
				emptyLimit = Math.round(5 - tempNum);
				for (i = 1; i <= emptyLimit; i++) {
					starString += '<span class="ratingStars"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></span>';
					if (extraStar == false) {
						i += 1;
					}
				}
				return starString;
			}
			
			// ===== return read-only stars =====
			function getStarsHomeCcard (id,myNum) {
				if(myNum == "")
				
					return "";
					
					var starString = "";
					var starLimit = 0;
					
					tempNum = parseFloat(myNum);
					roundedBase = Math.floor(tempNum);
					
					if (roundedBase <= 5) {
						starLimit = roundedBase;
					} else {
						starLimit = 5;
					}
					
					for (i = 1; i <= starLimit; i++) {
						starString += '<div class="ratingFullHover"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></div>';
					}
				
					extraStar = true;
				
					if ((tempNum > (roundedBase + .4)) && (tempNum < (roundedBase + .6))){
					
						starString += '<div class="ratingHalfHover"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></div>';
						extraStar = false;
					}
				
					emptyNum = 5 - roundedBase;
					emptyLimit = Math.round(5 - tempNum);
					
					for (i = 1; i <= emptyLimit; i++) {
						starString += '<span class="ratingStars"><img src="http://i.cdn.turner.com/toon/tools/img/pixel.gif" width="17" height="17" alt=""></span>';
				
						if (extraStar == false) {
							i += 1;
						}
					}
				
					document.getElementById("stars"+id).innerHTML=starString;
			}
 

/*
			var showXMLObs = {
				onPostUpdate:function (notifier,data) {
					if (activeRevealID != "") {
						document.getElementById(activeRevealID).innerHTML = document.getElementById('singleShowLoader').innerHTML;
					}
				}
			}
*/

