function navHover() {
	var navLi = document.getElementById("nav").getElementsByTagName("li");
	
	for ( x in navLi ) {
		navLi[x].onmouseover = function () {
			this.className += " navHover";
		};
		navLi[x].onmouseout = function () {
			this.className = this.className.replace(new RegExp(" navHover\\b"), "");
		};
	}
}

function rollovers() {
	var getbtn = document.getElementById("get_started");
	var sendbtn = document.getElementById("send_btn");
	var searchbtn = document.getElementById("search_btn");
	getbtn.onmouseover = function () {
		getbtn.setAttribute("src", "images/btn_get_started_over.png");
	}
	getbtn.onmouseout = function () {
		getbtn.setAttribute("src", "images/btn_get_started.png");
	}
	searchbtn.onmouseover = function () {
		searchbtn.setAttribute("src", "images/btn_search_over.gif");
	}
	searchbtn.onmouseout = function () {
		searchbtn.setAttribute("src", "images/btn_search.gif");
	}
	sendbtn.onmouseover = function () {
		sendbtn.setAttribute("src", "images/btn_send_over.gif");
	}
	sendbtn.onmouseout = function () {
		sendbtn.setAttribute("src", "images/btn_send.gif");
	}
}

if(window.addEventListener) {
	window.addEventListener('load', rollovers, false);
}else if(window.attachEvent) {
	window.attachEvent('onload', navHover);
	window.attachEvent('onload', rollovers);
}