// Copyright 2008-9 Richard W. Adams

if (window != top)
	top.location.href = location.href
var announcementWidth = 750; 
var announcementHeight = 600; 
if (screen.width > 800) 
{ 
	var announcementWidth	= 950; 
	var announcementHeight	= 700; 
}

var AUTOSTART_ID = "autostart"

//----------------------------------------------------
function checkSystem()
{
//	document.write("<p class='notice'> navigator.appName : " + navigator.appName  + ', appVersion : ' + navigator.appVersion + " " + navigator.appMinorVersion + "</p>") 
	if (screen.width < 800)
		document.write("<p class='notice'>Your screen resolution is currently " + screen.width + "x" + screen.height + "&#151;we recommend you set it to 800x600 or higher.</p>")
	if (navigator.appName.indexOf("Microsoft") != -1 && navigator.appVersion.indexOf("MSIE 6") != -1)
		document.write("<p class='notice'>We strongly recommend you to upgrade your browser to version 7 or later, for the best experience with this site. You can download it for free from <a href='http://www.microsoft.com/windows/downloads/ie/getitnow.mspx' target='_blank'>here</a>.</p>")
}
//----------------------------------------------------
function onLoad()
{
	var checkbox = document.getElementById(AUTOSTART_ID)
	checkbox.checked = getAutostartCookie() == "true"
}
//----------------------------------------------------
function setAutoStart()
{
	var checkbox = document.getElementById(AUTOSTART_ID)
	setAutostartCookie(checkbox.checked)
}
//----------------------------------------------------
