function detectVersion()
{
	version = parseInt(navigator.appVersion);
	return version;
}
function detectOS()
{
	if(navigator.userAgent.indexOf('Win') == -1) 
	{
	OS = 'Macintosh';
	} 
	else 
	{
	OS = 'Windows';
	}
	return OS;
}
function detectBrowser()
{
	if(navigator.appName.indexOf('Netscape') == -1) 
	{
		browser = 'IE';
	} 
	else 
	{
		browser = 'Netscape';
	}
	return browser;
}
function fullScreen()
{
	var adjWidth;
	var adjHeight;

	if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) 
	{
		adjWidth = 8;
		adjHeight = 25;
	}
	if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) 
	{
		adjWidth = 8;
		adjHeight = 25;
		winOptions = 'fullscreen=yes';
	}
	if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) 
	{
		adjWidth = 6;
		adjHeight = 26;
	}
	if((detectOS() == 'Windows') && (detectBrowser() == 'IE'))
	{
		adjWidth = 10;
		adjHeight = 35;
		//window.open('s5_master.html','main','fullscreen=yes');
	}
	if(detectVersion() < 4) 
	{
		self.location.href = 's5_master.html';
	} 
	else 
	{
		var winWidth = screen.availWidth - adjWidth;
		var winHeight = screen.availHeight - adjHeight;
		var winSize = 'width=' + winWidth + ',height=' + winHeight;
		var thewindow = window.open('s5_master.html', 'springfive', winSize);
		thewindow.moveTo(0,0);
	}
}
function tonight()
{
	var winWidth = 500;
	var winHeight = 600;
	var winSize = 'width=' + winWidth + ',height=' + winHeight + ',resizable=yes';
	var thewindow = window.open('contentimage/tonight.html', 'Tonight', winSize);
	thewindow.focus();
	thewindow.moveTo(0,0);
}
function renderChecker()
{
	var so = new SWFObject("s5_checker.swf", "checker", "100%", "100%", "7", "#ffffff");
	so.addParam("menu", "false");
	so.addParam("quality", "high");
	so.write("main");
}
function renderMain()
{
	var so = new SWFObject("s5_loader.swf", "checker", "100%", "100%", "7", "#ffffff");
	so.addParam("menu", "false");
	so.addParam("quality", "high");
	so.write("main");
}
function tonight()
{
	var winWidth = 500;
	var winHeight = 600;
	var winSize = 'width=' + winWidth + ',height=' + winHeight + ',resizable=yes';
	var thewindow = window.open('contentimage/tonight.html', 'Tonight', winSize);
	thewindow.focus();
	thewindow.moveTo(0,0);
}
function popItUp(thefile)
{
	var winWidth = 810;
	var winHeight = 550;
	var winSize = 'width=' + winWidth + ',height=' + winHeight + ',scrollbars=1';
	var thewindow = window.open(thefile, 'Tochter', winSize, scrollbars='yes');
	thewindow.focus();
	//thewindow.moveTo(0,0);
}
window.status = "springfive festival for electronic art and music";
