	
	function getPageFromSwf(reqPage) {
		if (reqPage == "starwars") {
			location.href='http://www.cartoonnetwork.com/redirects/starwars/buffer_external.html?http://www.starwars.com';
		} else if (reqPage == "cn") {
			location.href='http://www.cartoonnetwork.com';
		} else if (reqPage == "game") {
				location.href='http://theclonewars.cartoonnetwork.com/games/game_02_ext.html';
			dimAd();
		} else if (reqPage == "message") {
			location.href='http://forums.cartoonnetwork.com/n/pfx/forum.aspx?tsn=1&nav=messages&webtag=cn-clonewars&tid=161';
		}
	}

	
	// determines if the browser is IE or other
	function isIE () {
		var hasMS = navigator.appName.indexOf("Microsoft") != -1;
		return hasMS;
	}
	
	// determines the DOM name of the swf object
	function thisMovie(movieName) {
		if (isIE ()) {
			return window[movieName];
		} else {
			return document[movieName];
		}
	}

//page level geo filtering	
function geoTest2() 
{
	if (document.cookie.indexOf('adDEmas') != -1) 
	{
		readingCookie = cnnad_readCookie('adDEmas');
		splitCookie = readingCookie.split('&');
		var geoLocation = splitCookie[4];

			if ((geoLocation == "usa")||(geoLocation == "none")||(geoLocation == "***"))
			{
				//alert(geoLocation);
				return false;
			} else {
				top.location.href="http://www.cartoonnetwork.com/help/international.html";
			}
		}

}

