onload = function() {

var e, i = 0;
while (e = document.getElementById('navigation').getElementsByTagName ('li') [i++]) {
	e.onmouseover = function () {
		clearTimeout(t);
		getEls = document.getElementById('navigation').getElementsByTagName('li');
		if (this.className.indexOf('current') == -1) {
			for (var z=0; z<getEls.length; z++) {
			getEls[z].className = '';
			}
		this.className = 'current';
			}
		}
	e.onmouseout = function () {
			t=setTimeout("timedCount()",timeOut);
		}	
	}
}

c=0;
timeOut = 8000;
var t;
t=setTimeout("timedCount()",8000);

function timedCount() {
var getImage = document.getElementById('navigation').getElementsByTagName('li');
	for (var a=0; a<getImage.length; a++) {
		if (getImage[a].className.indexOf("current") == 0) {
				getImage[a].className = '';
				c = a;
		}
	}
	c++;
	if (c>3) {c=0;}
	getImage[c].className = 'current';
	t=setTimeout("timedCount()",timeOut);
}

