// *** popup window scripts *** //

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 = 628;

	if (screen_height > 480) { height = 600; }
	if (screen_height > 600) { height = 768; }
	if (screen_height > 768) { height = 973; }

	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 creechOver() { document.main.src = ("images/main.char.creech.jpg"); }
function squadronOver() { document.main.src = ("images/main.char.squadron.jpg"); }
function ravenOver() { document.main.src = ("images/main.char.raven.jpg"); }
function tremorOver() { document.main.src = ("images/main.char.tremor.jpg"); }
function spawnblueOver() { document.main.src = ("images/main.char.spawnblue.jpg"); }
function agent8Over() { document.main.src = ("images/main.char.agent8.jpg"); }
function commandoOver() { document.main.src = ("images/main.char.commando.jpg"); }
function brothersOver() { document.main.src = ("images/main.char.brothers.jpg"); }
