// *** popup window scripts *** //

function openResizableWindow(page) {
	window.open(page, "featureWindowResizable", "width=616,innerwidth=616,height=450,innerheight=450,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

function openNonResizableWindow(page) {
	window.open(page, "featureWindowNonResizable", "width=600,innerwidth=600,height=450,innerheight=450,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=no,resizable=no");
}

function openAutoResizingWindow(page) {
	window.open(page, "featureAutoResizingWindow", "width=620,innerwidth=620,height=450,innerheight=450,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

var isNav, isIE;

if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
	isNav = (navigator.appName == "Netscape") ? 1 : 0;
	isIE = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}

function fitWindowSize() {
if (isNav) {
	}

if (isIE) {
	var screen_width = screen.width;
	var screen_height = screen.height;

	width = 630;

	if (screen_height > 480) { height = 600; }
	if (screen_height > 600) { height = 768; }
	if (screen_height > 768) { height = 930; }

	window.resizeTo(width, height);
	}
}

function fitWindowSize2() {
if (isNav) {
	}

if (isIE) {
	var screen_width = screen.width;
	var screen_height = screen.height;

	width = 612;

	if (screen_height > 480) { height = 600; }
	if (screen_height > 600) { height = 768; }
	if (screen_height > 768) { height = 861; }

	window.resizeTo(width, height);
	}
}

function fitWindowSize3() {
if (isNav) {
	}

if (isIE) {
	var screen_width = screen.width;
	var screen_height = screen.height;

	width = 612;

	if (screen_height > 480) { height = 540; }

	window.resizeTo(width, height);
	}
}

// *** image preload script *** //

function MM_preloadImages() { //v3.0
	var d = document;
	if(d.images) {
		if(!d.MM_p) {
			d.MM_p=new Array();
		}
	}

	var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
	for (i = 0; i < a.length; i++) {
		if (a[i].indexOf("#") != 0) {
			d.MM_p[j] = new Image; d.MM_p[j++].src = a[i];
		}
	}
}

// *** main page mouseover scripts *** //

function homeTAOver() {
	document.mainTA.src = ("images/main.ta.on.jpg");
	document.mainLogo.src = ("images/main.logo.cowboys.jpg");
}

function homeTAOut() {
	document.mainTA.src = ("images/main.ta.off.jpg");
	document.mainLogo.src = ("images/main.logo.nfl.jpg");
}

function homeJUOver() {
	document.mainJU.src = ("images/main.ju.on.jpg");
	document.mainLogo.src = ("images/main.logo.colts.jpg");
}

function homeJUOut() {
	document.mainJU.src = ("images/main.ju.off.jpg");
	document.mainLogo.src = ("images/main.logo.nfl.jpg");
}

function homeJEOver() {
	document.mainJE.src = ("images/main.je.on.jpg");
	document.mainLogo.src = ("images/main.logo.broncos.jpg");
}

function homeJEOut() {
	document.mainJE.src = ("images/main.je.off.jpg");
	document.mainLogo.src = ("images/main.logo.nfl.jpg");
}

function homeBSOver() {
	document.mainBS.src = ("images/main.bs.on.jpg");
	document.mainLogo.src = ("images/main.logo.lions.jpg");
}

function homeBSOut() {
	document.mainBS.src = ("images/main.bs.off.jpg");
	document.mainLogo.src = ("images/main.logo.nfl.jpg");
}

function homeFHOver() {
	document.mainFH.src = ("images/main.fh.on.jpg");
	document.mainLogo.src = ("images/main.logo.steelers.jpg");
}

function homeFHOut() {
	document.mainFH.src = ("images/main.fh.off.jpg");
	document.mainLogo.src = ("images/main.logo.nfl.jpg");
}

function homeLTOver() {
	document.mainLT.src = ("images/main.lt.on.jpg");
	document.mainLogo.src = ("images/main.logo.giants.jpg");
}

function homeLTOut() {
	document.mainLT.src = ("images/main.lt.off.jpg");
	document.mainLogo.src = ("images/main.logo.nfl.jpg");
}

function homeCommunityOver() { document.mainCommunity.src = ("images/main.community.on.jpg"); }
function homeCommunityOut() { document.mainCommunity.src = ("images/main.community.off.jpg"); }

function homeWTBOver() { document.mainWTB.src = ("images/main.wtb.on.jpg"); }
function homeWTBOut() { document.mainWTB.src = ("images/main.wtb.off.jpg"); }

function homeMcFarlaneComOver() { document.mainMcFarlaneCom.src = ("images/main.mcfarlanecom.on.jpg"); }
function homeMcFarlaneComOut() { document.mainMcFarlaneCom.src = ("images/main.mcfarlanecom.off.jpg"); }


// *** figure page mouseover scripts *** //

function allLegendsOver() {
	document.allLegends.src = ("images/all.legends.on.jpg");
}

function allLegendsOut() {
	document.allLegends.src = ("images/all.legends.off.jpg");
}

// John Elway

function jeTAOver() {
	document.allTA.src = ("images/all.ta.on.jpg");
	document.jeLogo.src = ("images/je.logo.cowboys.jpg");
}

function jeTAOut() {
	document.allTA.src = ("images/all.ta.off.jpg");
	document.jeLogo.src = ("images/je.logo.nfl.jpg");
}

function jeJUOver() {
	document.allJU.src = ("images/all.ju.on.jpg");
	document.jeLogo.src = ("images/je.logo.colts.jpg");
}

function jeJUOut() {
	document.allJU.src = ("images/all.ju.off.jpg");
	document.jeLogo.src = ("images/je.logo.nfl.jpg");
}

function jeJEOver() {
	document.allJE.src = ("images/all.je.on.jpg");
	document.jeLogo.src = ("images/je.logo.broncos.jpg");
}

function jeJEOut() {
	document.allJE.src = ("images/all.je.off.jpg");
	document.jeLogo.src = ("images/je.logo.nfl.jpg");
}

function jeBSOver() {
	document.allBS.src = ("images/all.bs.on.jpg");
	document.jeLogo.src = ("images/je.logo.lions.jpg");
}

function jeBSOut() {
	document.allBS.src = ("images/all.bs.off.jpg");
	document.jeLogo.src = ("images/je.logo.nfl.jpg");
}

function jeFHOver() {
	document.allFH.src = ("images/all.fh.on.jpg");
	document.jeLogo.src = ("images/je.logo.steelers.jpg");
}

function jeFHOut() {
	document.allFH.src = ("images/all.fh.off.jpg");
	document.jeLogo.src = ("images/je.logo.nfl.jpg");
}

function jeLTOver() {
	document.allLT.src = ("images/all.lt.on.jpg");
	document.jeLogo.src = ("images/je.logo.giants.jpg");
}

function jeLTOut() {
	document.allLT.src = ("images/all.lt.off.jpg");
	document.jeLogo.src = ("images/je.logo.nfl.jpg");
}

// Troy Aikman

function taTAOver() {
	document.allTA.src = ("images/all.ta.on.jpg");
	document.taLogo.src = ("images/ta.logo.cowboys.jpg");
}

function taTAOut() {
	document.allTA.src = ("images/all.ta.off.jpg");
	document.taLogo.src = ("images/ta.logo.nfl.jpg");
}

function taJUOver() {
	document.allJU.src = ("images/all.ju.on.jpg");
	document.taLogo.src = ("images/ta.logo.colts.jpg");
}

function taJUOut() {
	document.allJU.src = ("images/all.ju.off.jpg");
	document.taLogo.src = ("images/ta.logo.nfl.jpg");
}

function taJEOver() {
	document.allJE.src = ("images/all.je.on.jpg");
	document.taLogo.src = ("images/ta.logo.broncos.jpg");
}

function taJEOut() {
	document.allJE.src = ("images/all.je.off.jpg");
	document.taLogo.src = ("images/ta.logo.nfl.jpg");
}

function taBSOver() {
	document.allBS.src = ("images/all.bs.on.jpg");
	document.taLogo.src = ("images/ta.logo.lions.jpg");
}

function taBSOut() {
	document.allBS.src = ("images/all.bs.off.jpg");
	document.taLogo.src = ("images/ta.logo.nfl.jpg");
}

function taFHOver() {
	document.allFH.src = ("images/all.fh.on.jpg");
	document.taLogo.src = ("images/ta.logo.steelers.jpg");
}

function taFHOut() {
	document.allFH.src = ("images/all.fh.off.jpg");
	document.taLogo.src = ("images/ta.logo.nfl.jpg");
}

function taLTOver() {
	document.allLT.src = ("images/all.lt.on.jpg");
	document.taLogo.src = ("images/ta.logo.giants.jpg");
}

function taLTOut() {
	document.allLT.src = ("images/all.lt.off.jpg");
	document.taLogo.src = ("images/ta.logo.nfl.jpg");
}

// Johnny Unitas

function juTAOver() {
	document.allTA.src = ("images/all.ta.on.jpg");
	document.juLogo.src = ("images/ju.logo.cowboys.jpg");
}

function juTAOut() {
	document.allTA.src = ("images/all.ta.off.jpg");
	document.juLogo.src = ("images/ju.logo.nfl.jpg");
}

function juJUOver() {
	document.allJU.src = ("images/all.ju.on.jpg");
	document.juLogo.src = ("images/ju.logo.colts.jpg");
}

function juJUOut() {
	document.allJU.src = ("images/all.ju.off.jpg");
	document.juLogo.src = ("images/ju.logo.nfl.jpg");
}

function juJEOver() {
	document.allJE.src = ("images/all.je.on.jpg");
	document.juLogo.src = ("images/ju.logo.broncos.jpg");
}

function juJEOut() {
	document.allJE.src = ("images/all.je.off.jpg");
	document.juLogo.src = ("images/ju.logo.nfl.jpg");
}

function juBSOver() {
	document.allBS.src = ("images/all.bs.on.jpg");
	document.juLogo.src = ("images/ju.logo.lions.jpg");
}

function juBSOut() {
	document.allBS.src = ("images/all.bs.off.jpg");
	document.juLogo.src = ("images/ju.logo.nfl.jpg");
}

function juFHOver() {
	document.allFH.src = ("images/all.fh.on.jpg");
	document.juLogo.src = ("images/ju.logo.steelers.jpg");
}

function juFHOut() {
	document.allFH.src = ("images/all.fh.off.jpg");
	document.juLogo.src = ("images/ju.logo.nfl.jpg");
}

function juLTOver() {
	document.allLT.src = ("images/all.lt.on.jpg");
	document.juLogo.src = ("images/ju.logo.giants.jpg");
}

function juLTOut() {
	document.allLT.src = ("images/all.lt.off.jpg");
	document.juLogo.src = ("images/ju.logo.nfl.jpg");
}

// Barry Sanders

function bsTAOver() {
	document.allTA.src = ("images/all.ta.on.jpg");
	document.bsLogo.src = ("images/bs.logo.cowboys.jpg");
}

function bsTAOut() {
	document.allTA.src = ("images/all.ta.off.jpg");
	document.bsLogo.src = ("images/bs.logo.nfl.jpg");
}

function bsJUOver() {
	document.allJU.src = ("images/all.ju.on.jpg");
	document.bsLogo.src = ("images/bs.logo.colts.jpg");
}

function bsJUOut() {
	document.allJU.src = ("images/all.ju.off.jpg");
	document.bsLogo.src = ("images/bs.logo.nfl.jpg");
}

function bsJEOver() {
	document.allJE.src = ("images/all.je.on.jpg");
	document.bsLogo.src = ("images/bs.logo.broncos.jpg");
}

function bsJEOut() {
	document.allJE.src = ("images/all.je.off.jpg");
	document.bsLogo.src = ("images/bs.logo.nfl.jpg");
}

function bsBSOver() {
	document.allBS.src = ("images/all.bs.on.jpg");
	document.bsLogo.src = ("images/bs.logo.lions.jpg");
}

function bsBSOut() {
	document.allBS.src = ("images/all.bs.off.jpg");
	document.bsLogo.src = ("images/bs.logo.nfl.jpg");
}

function bsFHOver() {
	document.allFH.src = ("images/all.fh.on.jpg");
	document.bsLogo.src = ("images/bs.logo.steelers.jpg");
}

function bsFHOut() {
	document.allFH.src = ("images/all.fh.off.jpg");
	document.bsLogo.src = ("images/bs.logo.nfl.jpg");
}

function bsLTOver() {
	document.allLT.src = ("images/all.lt.on.jpg");
	document.bsLogo.src = ("images/bs.logo.giants.jpg");
}

function bsLTOut() {
	document.allLT.src = ("images/all.lt.off.jpg");
	document.bsLogo.src = ("images/bs.logo.nfl.jpg");
}


// Franco Harris

function fhTAOver() {
	document.allTA.src = ("images/all.ta.on.jpg");
	document.fhLogo.src = ("images/fh.logo.cowboys.jpg");
}

function fhTAOut() {
	document.allTA.src = ("images/all.ta.off.jpg");
	document.fhLogo.src = ("images/fh.logo.nfl.jpg");
}

function fhJUOver() {
	document.allJU.src = ("images/all.ju.on.jpg");
	document.fhLogo.src = ("images/fh.logo.colts.jpg");
}

function fhJUOut() {
	document.allJU.src = ("images/all.ju.off.jpg");
	document.fhLogo.src = ("images/fh.logo.nfl.jpg");
}

function fhJEOver() {
	document.allJE.src = ("images/all.je.on.jpg");
	document.fhLogo.src = ("images/fh.logo.broncos.jpg");
}

function fhJEOut() {
	document.allJE.src = ("images/all.je.off.jpg");
	document.fhLogo.src = ("images/fh.logo.nfl.jpg");
}

function fhBSOver() {
	document.allBS.src = ("images/all.bs.on.jpg");
	document.fhLogo.src = ("images/fh.logo.lions.jpg");
}

function fhBSOut() {
	document.allBS.src = ("images/all.bs.off.jpg");
	document.fhLogo.src = ("images/fh.logo.nfl.jpg");
}

function fhFHOver() {
	document.allFH.src = ("images/all.fh.on.jpg");
	document.fhLogo.src = ("images/fh.logo.steelers.jpg");
}

function fhFHOut() {
	document.allFH.src = ("images/all.fh.off.jpg");
	document.fhLogo.src = ("images/fh.logo.nfl.jpg");
}

function fhLTOver() {
	document.allLT.src = ("images/all.lt.on.jpg");
	document.fhLogo.src = ("images/fh.logo.giants.jpg");
}

function fhLTOut() {
	document.allLT.src = ("images/all.lt.off.jpg");
	document.fhLogo.src = ("images/fh.logo.nfl.jpg");
}


// Lawrence Taylor

function ltTAOver() {
	document.allTA.src = ("images/all.ta.on.jpg");
	document.ltLogo.src = ("images/lt.logo.cowboys.jpg");
}

function ltTAOut() {
	document.allTA.src = ("images/all.ta.off.jpg");
	document.ltLogo.src = ("images/lt.logo.nfl.jpg");
}

function ltJUOver() {
	document.allJU.src = ("images/all.ju.on.jpg");
	document.ltLogo.src = ("images/lt.logo.colts.jpg");
}

function ltJUOut() {
	document.allJU.src = ("images/all.ju.off.jpg");
	document.ltLogo.src = ("images/lt.logo.nfl.jpg");
}

function ltJEOver() {
	document.allJE.src = ("images/all.je.on.jpg");
	document.ltLogo.src = ("images/lt.logo.broncos.jpg");
}

function ltJEOut() {
	document.allJE.src = ("images/all.je.off.jpg");
	document.ltLogo.src = ("images/lt.logo.nfl.jpg");
}

function ltBSOver() {
	document.allBS.src = ("images/all.bs.on.jpg");
	document.ltLogo.src = ("images/lt.logo.lions.jpg");
}

function ltBSOut() {
	document.allBS.src = ("images/all.bs.off.jpg");
	document.ltLogo.src = ("images/lt.logo.nfl.jpg");
}

function ltFHOver() {
	document.allFH.src = ("images/all.fh.on.jpg");
	document.ltLogo.src = ("images/lt.logo.steelers.jpg");
}

function ltFHOut() {
	document.allFH.src = ("images/all.fh.off.jpg");
	document.ltLogo.src = ("images/lt.logo.nfl.jpg");
}

function ltLTOver() {
	document.allLT.src = ("images/all.lt.on.jpg");
	document.ltLogo.src = ("images/lt.logo.giants.jpg");
}

function ltLTOut() {
	document.allLT.src = ("images/all.lt.off.jpg");
	document.ltLogo.src = ("images/lt.logo.nfl.jpg");
}

// Community / Where to Buy

function allTAOver() {
	document.allTA.src = ("images/all.ta.on.jpg");
	document.allLogo.src = ("images/all.logo.cowboys.jpg");
}

function allTAOut() {
	document.allTA.src = ("images/all.ta.off.jpg");
	document.allLogo.src = ("images/all.logo.nfl.jpg");
}

function allJUOver() {
	document.allJU.src = ("images/all.ju.on.jpg");
	document.allLogo.src = ("images/all.logo.colts.jpg");
}

function allJUOut() {
	document.allJU.src = ("images/all.ju.off.jpg");
	document.allLogo.src = ("images/all.logo.nfl.jpg");
}

function allJEOver() {
	document.allJE.src = ("images/all.je.on.jpg");
	document.allLogo.src = ("images/all.logo.broncos.jpg");
}

function allJEOut() {
	document.allJE.src = ("images/all.je.off.jpg");
	document.allLogo.src = ("images/all.logo.nfl.jpg");
}

function allBSOver() {
	document.allBS.src = ("images/all.bs.on.jpg");
	document.allLogo.src = ("images/all.logo.lions.jpg");
}

function allBSOut() {
	document.allBS.src = ("images/all.bs.off.jpg");
	document.allLogo.src = ("images/all.logo.nfl.jpg");
}

function allFHOver() {
	document.allFH.src = ("images/all.fh.on.jpg");
	document.allLogo.src = ("images/all.logo.steelers.jpg");
}

function allFHOut() {
	document.allFH.src = ("images/all.fh.off.jpg");
	document.allLogo.src = ("images/all.logo.nfl.jpg");
}

function allLTOver() {
	document.allLT.src = ("images/all.lt.on.jpg");
	document.allLogo.src = ("images/all.logo.giants.jpg");
}

function allLTOut() {
	document.allLT.src = ("images/all.lt.off.jpg");
	document.allLogo.src = ("images/all.logo.nfl.jpg");
}

