
function appletReady() {
	var i=document.cookie.indexOf("SlimePrevGame=");
	if (i!=-1) {
		document.applets[0].setPrevGame(document.cookie.substring(14,34));
	}
}

function recordGame(str) {
	var now = new Date();
	now.setTime(now.getTime() + 1000 * 60 * 60 * 24 * 7); // 7 days
	document.cookie="SlimePrevGame="+str+"; expires="+now.toGMTString();
}

function showHighScores(id) {
	alert("High Scores can be viewed from 3DSlime.com's main page.");
	opener.location.href="../../highscore.jsp?id="+id;
	opener.focus();
}

function topScorer(id) {
	alert("Congrats on being a top 5 scorer of the day!");
}
