function init(theUserId, theWebsiteId, theCachedWebsiteId) {
	$("body").addClass("hasJavascript");
	myNavigation = new Navigation();
	myPlayer = new Player(theUserId, theWebsiteId, theCachedWebsiteId);
	saveStats();
}

function saveStats() {
	var myReferrer = document.referrer;
	if (myReferrer != "") {
		$.post("data/admin/save_stats.php", { r: myReferrer }, function(theResponse){}, "text");
	}
}