function tyrOver() {
	document.tyr.src = "images/main.05.on.jpg";
	document.text.src = "images/main.10.tyr.jpg";
}

function tyrOut() {
	document.tyr.src = "images/main.05.jpg";
	document.text.src = "images/main.10.jpg";
}

function windgardOver() {
	document.windgard.src = "images/main.04.on.jpg";
	document.text.src = "images/main.10.windgard.jpg";
}

function windgardOut() {
	document.windgard.src = "images/main.04.jpg";
	document.text.src = "images/main.10.jpg";
}

function basiliskOver() {
	document.basilisk.src = "images/main.03.on.jpg";
	document.text.src = "images/main.10.basilisk.jpg";
}

function basiliskOut() {
	document.basilisk.src = "images/main.03.jpg";
	document.text.src = "images/main.10.jpg";
}

function ogreOver() {
	document.ogre.src = "images/main.08.on.jpg";
	document.text.src = "images/main.10.ogre.jpg";
}

function ogreOut() {
	document.ogre.src = "images/main.08.jpg";
	document.text.src = "images/main.10.jpg";
}

function draakoOver() {
	document.draako.src = "images/main.12.on.jpg";
	document.text.src = "images/main.10.draako.jpg";
}

function draakoOut() {
	document.draako.src = "images/main.12.jpg";
	document.text.src = "images/main.10.jpg";
}

function downloadsOver() {
	document.downloads.src = "images/main.13.on.jpg";
	document.text.src = "images/main.10.downloads.jpg";
}

function downloadsOut() {
	document.downloads.src = "images/main.13.jpg";
	document.text.src = "images/main.10.jpg";
}

function wtbOver() {
	document.wtb.src = "images/main.14.on.jpg";
	document.text.src = "images/main.10.wtb.jpg";
}

function wtbOut() {
	document.wtb.src = "images/main.14.jpg";
	document.text.src = "images/main.10.jpg";
}

/* */

function wallpaperOver() {
	document.wallpaper.src = "images/downloads.02.on.jpg";
	document.symbol.src = "images/downloads.07.wallpaper.jpg";
}

function wallpaperOut() {
	document.wallpaper.src = "images/downloads.02.jpg";
	document.symbol.src = "images/downloads.07.jpg";
}

function storiesOver() {
	document.stories.src = "images/downloads.04.on.jpg";
	document.symbol.src = "images/downloads.07.stories.jpg";
}

function storiesOut() {
	document.stories.src = "images/downloads.04.jpg";
	document.symbol.src = "images/downloads.07.jpg";
}

/* */

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 openDetailWindow(page) {
	window.open(page, "featureWindowDetail", "width=616,innerwidth=616,height=430,innerheight=430,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

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];
		}
	}
}

function openAutoResizingWindow(page, verticalSize) {
	window.open(page, "featureAutoResizingWindow", "width=620,innerwidth=620,height=450,innerheight=450,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

function openAutoResizingWindow2(page, verticalSize) {
	window.open(page, "featureAutoResizingWindow2", "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 = 973; }

	window.resizeTo(width, height);
	}
}

