// *** 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);
	}
}

function fitWindowSize2() {
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 = 673; }

	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 ariesOver() {
	document.circle.src = ("images/main.01.aries.jpg");
	document.aries.src = ("images/main.03.on.jpg");
}
function ariesOut() {
	document.circle.src = ("images/main.01.empty.jpg");
	document.aries.src = ("images/main.03.off.jpg");
}

function taurusOver() {
	document.circle.src = ("images/main.01.taurus.jpg");
	document.taurus.src = ("images/main.04.on.jpg");
}
function taurusOut() {
	document.circle.src = ("images/main.01.empty.jpg");
	document.taurus.src = ("images/main.04.off.jpg");
}

function geminiOver() {
	document.circle.src = ("images/main.01.gemini.jpg");
	document.gemini.src = ("images/main.05.on.jpg");
}
function geminiOut() {
	document.circle.src = ("images/main.01.empty.jpg");
	document.gemini.src = ("images/main.05.off.jpg");
}

function cancerOver() {
	document.circle.src = ("images/main.01.cancer.jpg");
	document.cancer.src = ("images/main.06.on.jpg");
}
function cancerOut() {
	document.circle.src = ("images/main.01.empty.jpg");
	document.cancer.src = ("images/main.06.off.jpg");
}

function wtbOver() {
	document.circle.src = ("images/main.01.wtb.jpg");
	document.wtb.src = ("images/main.08.on.jpg");
}
function wtbOut() {
	document.circle.src = ("images/main.01.empty.jpg");
	document.wtb.src = ("images/main.08.off.jpg");
}

function downloadsOver() {
	document.circle.src = ("images/main.01.downloads.jpg");
	document.downloads.src = ("images/main.09.on.jpg");
}
function downloadsOut() {
	document.circle.src = ("images/main.01.empty.jpg");
	document.downloads.src = ("images/main.09.off.jpg");
}

