currentpage = "home";
var time=-1;
//var lists;

function makeRandom () {
	theIndex = Math.floor(Math.random()*lists.length);
	document.getElementById("therandom").innerHTML=lists[theIndex][1];
	document.getElementById("therandom").setAttribute("href","/"+lists[theIndex][0]);
	return;
}

function homestart () {
	document.getElementById("howmany").innerHTML = num(lists.length);
	document.getElementById('menuplace').appendChild(optionlistMenu());
	makeRandom();
	populateNew();
}

function populateNew () {
	var newTitle;
	var newHref;
	var whichOne = 0;
	for (var i=lists.length-1; i > lists.length-10; i--) {
		newA = document.createElement("a");
		newLi = document.createElement("li");
		newA.setAttribute("href","/"+lists[i][0]);
		newA.innerHTML=lists[i][1];
		
		newLi.appendChild(newA);
		newLi.style.fontSize = (1-(whichOne*0.07))+"em";
		document.getElementById("newgames").appendChild(newLi);
		whichOne++;
	};
	
	//document.getElementById("newgames").childNodes[1].style.fontSize = "120px";
	
}