browser = navigator.appName;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";
os = navigator.platform;
mac = 'MacPPC'

if(browser == netscape) {
	document.write('<link rel=stylesheet type=text/css title=master href="http://espn.go.com/insertfiles/css/ncb/font_nn.css">');
} else {
	document.write('<link rel=stylesheet type=text/css title=master href="http://espn.go.com/insertfiles/css/ncb/font_ie.css">');
}

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
function target(page) {
	if (ns4) {
		document.ADspota.document.ADstore.src = page;
	} else if (ie4) {
		parent.ADstore.document.location = page;
	}
}

if(!window.saveInnerWidth) {
	window.onresize = resize;
	window.saveInnerWidth = window.innerWidth;
	window.saveInnerHeight = window.innerHeight;
}

function resize() {
	if (saveInnerWidth < window.innerWidth || saveInnerWidth > window.innerWidth || saveInnerHeight > window.innerHeight || saveInnerHeight < window.innerHeight ) {
		window.history.go(0)
	}
}

function donothing() {}

function gotosite(site) {            
	if (site != "") {                    
		self.location=site; 
	}
}

function launchWindow (url, name, width, height) {
	var x = 0;
	var y = 0;
	if (navigator.appVersion.length > 0 && navigator.appVersion.charAt(0) > '3' && navigator.appVersion.charAt(0) <= '9') {
		if(width > screen.availWidth - 12) {
			width = screen.availWidth - 12;
		}
		if(height > screen.availHeight - 48) {
			height = screen.availHeight - 48;
		}
		x = (screen.availWidth - 12 - width) / 2;
		y = (screen.availHeight - 48 - height) / 2;
	}
	var params =  "status=1,scrollbars=1,resizable=1,screenX=" + x + ",screenY=" + y + ",width=" + width + ",height=" + height + ")";
	var windowvar = window.open(url, name, params);
}

