// this script adds class named "over" on every li element inside ul named "nav"
// it is used for imitating :hover state on li elements
over = function() {
	var arrLi = document.getElementById("primary-nav").getElementsByTagName("LI");
	for (var i=0; i<arrLi.length; i++) {
		arrLi[i].onmouseover=function() {
			this.className="over";
		}
		arrLi[i].onmouseout=function() {
			this.className="";
		}
	}
}
window.onload=over;