/*// moves the cursor to next when length is reached in elt
function next_field(elt, next, length){
	if(elt.value.length >=length){
		document.getElementById(next).focus();
	}
}
*/

sfHover = function() {
	var nav=document.getElementById("nav");
	var sfEls = nav.getElementsByTagName("LI");
	selEls = document.getElementsByTagName("SELECT");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	nav.onmouseover=function() {
		if(selEls.length!=0){
			for (j in selEls){
				try {
					selEls[j].style.visibility='hidden';
				} 
				catch(e) {}
			}
		}
	}
	nav.onmouseout=function() {
		if(selEls.length!=0){
			for (j in selEls){
				try {
					selEls[j].style.visibility='visible';
				} 
				catch(e) {}
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
