function screenSize() {
	var w, h;
	w = (window.innerWidth ? window.innerWidth : (document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.offsetWidth));
	h = (window.innerHeight ? window.innerHeight : (document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.offsetHeight));
	return {w:w, h:h};
}
document.write('<style type="text/css">#sst {height:'+(screenSize().h-330)+'px;}</style>');
if (window != top) { top.location.href = location.href; }
function gp() {
	var today = new Date();
	var year = today.getFullYear();
	document.write('-'+year);
}
function ttime() {
	var objDate = new Date();
	var time_loc = objDate.getHours();
	var time_min = objDate.getUTCMinutes();
	var gmt = Math.round(0-objDate.getTimezoneOffset()/60);

	if(gmt > 0) { var gmt = ' +'+gmt; }
	else if(gmt < 0) { var gmt = ' '+gmt; }
	else { var gmt = ''; }

	if(time_loc < 10) { var time_loc = '0'+time_loc; }

	if(time_min < 10) { var time_min = '0'+time_min; }

	document.write('<div id="ttime">All times are GMT'+gmt+'. The time now is <span>'+time_loc+':'+time_min+'</span>.</div>');
}

function login() {
	document.write('<form id="login_menu" action="/login.php?do=login" method="post"><div class="headbg">Log In <img src="/f/ct.gif" alt="" onclick="menu(\'login\');"/></div><div><span>User Name</span><input type="text" name="username" size="10" value="User Name" class="tx_p" /> <input type="checkbox" name="cookieuser" value="1" /> Remember Me?</div><div><span>Password</span><input type="password" name="password" class="tx_p" /> <input type="submit" value="Log in" title="Enter your username and password in the boxes provided to login, or click the \'register\' button to create a profile for yourself." id="bt_lg" /></div></form>');
	document.getElementById('login_menu').style.display = 'none';
}

function menu(id) {
	var blk = document.getElementById(id + '_menu');
	if(blk) {
		if(blk.style.display != 'none') { blk.style.display = 'none'; }
		else { blk.style.display = 'block'; }
		return false;
	}
}
