 function startlist() {
	if (document.all && document.getElementById) {
		var navRoot = document.getElementById("TopMenuUl");
		if (navRoot != null){
			for (i=0; i<navRoot.childNodes.length; i++) {
				 node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
						}
					node.onmouseout=function() {
						this.className=this.className.replace
						(" over", "");
						}
				}
			}
		}
	}
}

function newImage(arg) {
	if (document.images) {
		var rslt = new Image(); 
		
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var sidetabs_01_contact_over,sidetabs_01_careers_over,sidetabs_01_ftp_over;
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		sidetabs_01_contact_over = newImage("images/sidetabs_01-contact_over.gif");
		sidetabs_01_careers_over = newImage("images/sidetabs_01-careers_over.gif");
		sidetabs_01_ftp_over = newImage("images/sidetabs_01-ftp_over.gif");
		preloadFlag = true;
	}
	if ( document.all && navigator.platform != "MacPPC"  )
startlist();
}
function showSub(id){

	var sub = document.getElementById(id);
	sub.style.visibility = "visible";
}
function hideSub(id){
	var sub = document.getElementById(id);
	sub.style.visibility = "hidden";
}

// makes the dropdown menu nav work in IE6

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	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"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);