var splashpage = {

	init: 0,
	autohidetimer: 15,
	checkWindows:function()
	{
		if (navigator.appVersion.indexOf("Win")!=-1) {
		
			return true;
		}
		else {
			
			return false;
		}
	},
	output:function(){
		
		this.splashshaderef=document.getElementById("splashshade");
		this.splashpageref=document.getElementById("splashpage");
		//this.splashiframeref=window.frames["splashpage-iframe"];
		
		this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
		if (!/safari/i.test(navigator.userAgent)) //if not Safari, disable document scrollbars
		this.standardbody.style.overflow="hidden"
		this.moveuptimer = setInterval("window.scrollTo(0,0)", 50);
		
	},
	closeit:function()
	{
		this.splashshaderef=document.getElementById("splashshade");
		this.splashpageref=document.getElementById("splashpage");
		this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
		
		clearInterval(this.moveuptimer);
		this.splashpageref.style.display = "none";
		this.standardbody.style.overflow="auto";
		this.splashshaderef.style.display="none";
		//this.splashiframeref.location.replace("about:blank");
		this.splashpageref.style.visibility="hidden";
		this.splashshaderef.style.visibility="hidden";
		
		this.init = 1;
	},
	init:function()
	{	
		this.output();
		if (this.init == 0) {
		
			if (parseInt(this.autohidetimer)>0) {
			
				setTimeout("splashpage.closeit()", parseInt(this.autohidetimer)*1000)
			}
			
			this.init = 1;
		}
	}
}

if (splashpage.checkWindows()) {
 
	$(document).ready(function () {splashpage.init()});
}
