// Declare Client Variables
var agt = navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);

var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
             && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
             && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_nav6up = (is_nav && (is_major >= 5));

var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie4up = (is_ie && (is_major >= 4));
    
var is_win = ((agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1));
var is_mac = (agt.indexOf("mac")!=-1);

// Determine Client Type - Advanced (adv) or Standard (std)
if (is_nav6up || is_ie4up)
{
	var client = 'adv';
}
else
{
	var client = 'std';
}


// Screen Clients
function init()
{
	if (client == 'std')
	{
		alert("This site is optimised for Internet Explorer v4+ and Netscape Navigator v6+.\n\nYou may wish to consider visiting the site using one of these web browsers.")
	}
	
	if (document.form)
	{
		document.form.reset();
	}
}

function formHandler(form)
{
	var URL = document.form.site.options[document.form.site.selectedIndex].value;
	if (URL.substr(0,4) == 'http') { window.open(URL); }
	else { alert(URL); }
}

function swapImage(numb)
{
	if (numb > 0) numb = numb - 1;
	else numb = 1;
	
	var imageList = new Array('remake-01.jpg', 'zero-01.jpg', '3-nemesis-01.jpg', 'veronica-x.jpg', 'outbreak.jpg', 're4.jpg', 'outbreak2.jpg', 'resevilds.jpg');
	if (document.images)
	{
		eval('featureImage = new Image()');
    		eval('featureImage.src = "img/splash/'+imageList[numb]+'";');
		document.images["feature"].src = featureImage.src;
	}
}

/********************************************************************************
Copyright (C) 1999 Thomas Brattli
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts. This may be used freely as long as this msg is intact!
I will also appriciate any links you could give me.
********************************************************************************/
//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}

bw=new checkBrowser()

//Shows the div
function show(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='visible'
}

//Hides the div
function hide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='hidden'
}


