/* Rollovers used by snav */
function imgOn(id,path,imgName){
	path ? path='/'+path+'/imgs/' : path='/imgs/home/';
	document.getElementById(id).src = '' +path + imgName + '';
	return;
}

function imgOff(id,path,imgName){
	path ? path='/'+path+'/imgs/' : path='/imgs/home/';
	document.getElementById(id).src = '' + path + imgName + '';
	return;
}



// Activate LI hover in IE
startList = function() {
if (document.all&&document.getElementById) {

/* nav */
var menus = document.getElementById("nav").getElementsByTagName("ul");
for (i = 0; menus[i]; i++) {
menus[i].parentNode.onmouseover = function() {
this.className += " over";
}
menus[i].parentNode.onmouseout = function() {
this.className = this.className.replace(" over", "");
}
}


/* snav */
var menus = document.getElementById("lnav").getElementsByTagName("a");
for (i = 0; menus[i]; i++) {
menus[i].parentNode.onmouseover = function() {
this.className += " overbox";
}
menus[i].parentNode.onmouseout = function() {
this.className = this.className.replace(" overbox", "");
}
}

}
}
window.onload=startList;

