	//SET DEFAULT VALUES
	var child = 0;
	var NS4 = 0;
	var IE4 = 0;
	var MacIE = 0;
	var Gen4 = 0;
	var WindowEnabled = 1;
	
	//SET GLOBAL VARIABLES FOR BROWSER
	bName = navigator.appName;
	bVer = parseInt(navigator.appVersion);
	NS4 = (document.layers)? 1 : 0;
	MacIE = ( (navigator.userAgent.indexOf("IE 4")  > -1) && (navigator.userAgent.indexOf("Mac")  > -1) )? 1 : 0;
	IE4 = (document.all && !MacIE)? 1 : 0;
	Gen4 = (document.all || document.layers)? 1 : 0;
	//WindowEnabled = ((navigator.userAgent.indexOf("MSIE 4.0") >= 1))? 0 : 1;



	//OPEN WINDOW JS
	// takes all attributes in direct format
	function popUp(URL, ATTRIBUTES)  {
		DEF_ATTRIB = 'width=200,height=200,top=100,left=100,resizable=yes,scrollbars';
		if (ATTRIBUTES == null) {
			ATTRIBUTES = DEF_ATTRIB;
		}
		child = window.open(URL, "spawn", ATTRIBUTES);
		child.opener = self;
		if	(navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) == '2') {
			// Do Nothing
		} else {
			child.focus();
		}
	}

	
	function emailafriend(URL, ATTRIBUTES)
	//OPEN WINDOW JS
	// takes all attributes in direct format
{
	ATTRIBUTES = 'width=450,height=225,top=100,left=100,resizable=yes,scrollbars';
	MYURL = "http://weather.channel4000.com/services/toafriend/index.cfm?page=" + window.location;
	
	if (WindowEnabled){
		child = window.open(MYURL, "spawn", ATTRIBUTES);
		child.opener = self;
		if	(navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) == '2') {
			// Do Nothing
		} else {
			child.focus();
		}
	} else {
		document.location = MYURL;
	}
}

	
	//This function is specific for the Cream Their Team pages-- written by :pT:
	function creamThe(teamname)
	{
		var popuptop = 100, popupleft = 100, team_arguments, total_href, wideness=590;
		if(top.screen)
		{
			if(screen.width == 800) wideness=660;
			else if(screen.width >= 1024) wideness=740;
			popuptop = screen.height/2-225;
			popupleft = screen.width/2-(wideness/2);
		}
		team_arguments = "resizable=yes,width=" + wideness + ",height=440,top=" + popuptop + ",left=" + popupleft;
		total_href = "http://weather.channel4000.com/services/creamteam/ct-framer.cfm?site=channel4000&team=" + teamname;
		popUp(total_href,team_arguments);
	}
	
	//Function closes Health Daily tips window and redirects user to archive
	function health_archive(day){
			window.opener.location=("/sh/health/dailytips/"+day+"-archive.html");
			window.close();
	}
