document.cookie = 'TEGid=exp; expires=Mon, 31 Dec 2001 15:41:05 GMT; path=/; domain=www.cartoonnetwork.com';

<!--
//redirect for mobile browsers
	var sWidth = screen.width;
	var sHeight = screen.height;
	if (sWidth<=480) {
	document.location.href="http://cartoonnetwork.mobi";
	}
	
//variety of basic functions
function preLoad(preLoad_path,preLoad_suffix,preLoad_images) {
	var preLoadArray = new Array();
	var arrayLength = preLoad_images.length;
	for (var i = 0; i < arrayLength; i++) {
		var file = preLoad_path + preLoad_images[i] + preLoad_suffix + ".gif";
		preLoadArray[i] = new Image();
		preLoadArray[i].src = file;
	}
}

function swapImage(roll_name,roll_path,roll_suffix) {
	if(document.images){
    	document.images[roll_name].src = roll_path + roll_name + roll_suffix + '.gif';
	}
}

function swapMultiImage(roll_name,roll_id,roll_path,roll_suffix) {
	if(document.images){
    	document.images[roll_name+roll_id].src = roll_path + roll_name + roll_suffix + '.gif';
	}
}

function emailFriend(){
	window.open('/games/email/index.html','email','width=300,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}

function goHelp()
{
	
	if(location.href.indexOf("games") > -1){
		location.href = "/help/index.html?games";
	}else if (location.href.indexOf("tv_shows") > -1){
		location.href = "/help/index.html?tvshows";
	}else if (location.href.indexOf("orbit") > -1){
		location.href = "http://www.cartoonnetwork.com/help/index.html?Orbit_Help";
	}else if (location.href.indexOf("shop") > -1){
		location.href = "/help/index.html?shop";
	}else{
		location.href = "http://www.cartoonnetwork.com/help/index.html?general";
	}
}

//track custom links
function trackLink(type,trackItem){
	s=s_gi('carnetnmcom');
	s.tl(this,type,trackItem);
}

//assorted popups
function globalWindowOpen(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function shopPopUnder() {
	cookieName = "NoShopPopup";
	if(document.cookie.lastIndexOf(cookieName) < 0)	{
		expireDate =  new Date();
	    expireDate.setDate(expireDate.getDate()+1); 
		setCookie(cookieName, expireDate);
		document.cookie = name + '=true;';		
	globalWindowOpen('/gen/popads/general_exclude.html','ShopPopUnder','width=320,height=240,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}
}

function setCookie(name, date) {
  document.cookie = name + '=true; expires=' + date.toGMTString();
}

function tvPopUp() {
	globalWindowOpen('/gen/popads/general_exclude.html','tvPopUp','width=1044,height=788,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}

function ttPopUp() {
	cookieName = "NoTTPopup";
	if(document.cookie.lastIndexOf(cookieName) < 0)	{
		expireDate =  new Date();
	    expireDate.setDate(expireDate.getDate()+1); 
		setCookie(cookieName, expireDate);
	globalWindowOpen('/gen/popads/tt_exclude.html','ttPopUp','width=320,height=240,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}
}
function launchToonflash()
{
	locString = location.href;
	aqs = location.search.substr(1);
	subaqstrings = aqs.split("&");
	if ((locString.indexOf('?') > -1) && (subaqstrings == "newsletter"))
	{
		window.open('/gen/toonflash/cartoon/verify_age.html','ToonFlash','width=300,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}
}

function launchVidPlayer(vidStage, vidShow, vidClip) {
window.open('/tv_shows/video/index.html?'+vidStage+"&"+vidShow+"&"+vidClip,'video_player','width=615,height=390,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}

function test(){
	alert("Working");
}


// rollover controls for the html footer include
function rollRow(cellID,newStyle,imgID,imgSrc){
	cellID.className = newStyle;
	document[imgID].src = imgSrc;
}

function rightNavLink(){
	location.href="http://awesomehouseparty.com/house/";
}


//-->
