// *** 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 = 612;

	if (screen_height > 480) { height = 600; }
	if (screen_height > 600) { height = 768; }
	if (screen_height > 768) { height = 931; }

	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 = 481; }

	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 = 600; }
	if (screen_height > 600) { height = 661; }

	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];
		}
	}
}


// *** downloads page mouseover scripts *** //

function dloadsSpawn9Over() { document.dloadsSymbol.src = ("images/downloads.13.spawn9.jpg"); }

function dloadsNinja2Over() { document.dloadsSymbol.src = ("images/downloads.13.ninja2.jpg"); }

function dloadsZeraOver() { document.dloadsSymbol.src = ("images/downloads.13.zera.jpg"); }

function dloadsThamuzOver() { document.dloadsSymbol.src = ("images/downloads.13.thamuz.jpg"); }

function dloadsDiscipleOver() { document.dloadsSymbol.src = ("images/downloads.13.disciple.jpg"); }

function dloadsMiraclesOver() { document.dloadsSymbol.src = ("images/downloads.13.miracles.jpg"); }

function dloadsSeries29Over() { document.dloadsSymbol.src = ("images/downloads.13.series29.jpg"); }

function dloadsSymbolOut() { document.dloadsSymbol.src = ("images/downloads.13.blank.jpg"); }
