	//SET DEFAULT VALUES
	var child = 0;
	var NS4 = 0;
	var IE4 = 0;
	var MacIE = 0;
	var Gen4 = 0;
	var WindowEnabled = 1;
	var IBS_Sitekey = 'pit';
	var IS_IA = true;

	//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.thepittsburghchannel.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;
	}
}

// Function to open videoblast windows //
function openVideo(sUrl, sName, sOptions) {
	window.open(sUrl,sName,sOptions+',scrollbars=no,resizable=1,top=50,left=50,width=780,height=504');
}

// "smart" popup for xml sites
// djohnson 04 / 01
var args, urlstring;
var host = "html." + window.location.host.substring(window.location.host.indexOf(".") +1, window.location.host.length);

function getpopup() {
	args = getpopup.arguments;
	urlstring = "http://" + host + "/sh/scripts/popup_640.cfm?img=" + args[0] + "&sitekey=" + args[1];
	if(args.length == 3) urlstring += "&refresh=" + args[2];
	window.open(urlstring, "weather_640","width=655,height=615,scrollbars=0,toolbar=0,status=0");
}

siteinfo = new Object();

siteinfo.advertisingid='pit';siteinfo.trusteid='7300';siteinfo.matchcomid='505285';siteinfo.infospaceid='';siteinfo.ultraseekregion='eastern';siteinfo.timezone='EDT';siteinfo.affiliate='abc';siteinfo.state='pa';siteinfo.owner='hearst';siteinfo.region='east';siteinfo.is_ia='yes';siteinfo.is_v1='yes';
siteinfo.tld='com';


	siteinfo.sitekey = new Object();
	siteinfo.sitekey.lc='pit';siteinfo.sitekey.uc='PIT';
	siteinfo.sitename = new Object();
	siteinfo.sitename.lc='thepittsburghchannel';siteinfo.sitename.mx='ThePittsburghChannel';siteinfo.sitename.uc='THEPITTSBURGHCHANNEL';siteinfo.sitename.display='thepittsburghchannel.com';
	siteinfo.callletters = new Object();
	siteinfo.callletters.lc='wtae';siteinfo.callletters.uc='WTAE';
	siteinfo.statecode = new Object();
	siteinfo.statecode.uc='PA';siteinfo.statecode.lc='pa';
	siteinfo.statename = new Object();
	siteinfo.statename.uc='PENNSYLVANIA';siteinfo.statename.lc='pennsylvania';siteinfo.statename.mx='Pennsylvania';
	siteinfo.city = new Object();
	siteinfo.city.uc='PITTSBURGH';siteinfo.city.lc='pittsburgh';siteinfo.city.mx='Pittsburgh';
	siteinfo.video = new Object();
	siteinfo.video.playerversion='3';siteinfo.video.skin='blue';siteinfo.video.wxicons='hearst';siteinfo.video.headerlinks='#ffffff';
	siteinfo.thirdparty_info = new Object();
	siteinfo.thirdparty_info.matchmaker = new Object();siteinfo.thirdparty_info.matchmaker.text='Pittsburgh';siteinfo.thirdparty_info.matchmaker.clicktracker_id='3681';siteinfo.thirdparty_info.hotjobs = new Object();siteinfo.thirdparty_info.hotjobs.clicktracker_id='1899';siteinfo.thirdparty_info.homestore = new Object();siteinfo.thirdparty_info.homestore.clicktracker_id='3593';siteinfo.thirdparty_info.homestore.code='ib';

