	var getEls = document.getElementById('noughts').getElementsByTagName("LI");
	var getLi = getEls;
	for (var i=0; i<getEls.length; i++) {
		getEls[i].onclick=function() {
		this.className += ' clicked';
			if ((this.className.indexOf('result'))!=-1) {
				window.location.reload()
			}
		}
		getEls[i].onmouseover=function() {
			if ((this.className.indexOf('p'))!=-1) {
			this.style.backgroundImage = "url(tictac/nought.gif)";
			}
		}
		getEls[i].onmouseout=function() {
			if ((this.className.indexOf('p'))!=-1) {
			this.style.backgroundImage = "";
			}
		}
	}

