// lazy shortcut

d=document;

// set up rollovers

sections = new Array("about","solutions","services","earthware","partners","clients","news","investor");
for (x=0;x<=sections.length-1;x++){
setup = sections[x]+'on = new Image();'+sections[x]+'on.src = "resources/img/nav/'+sections[x]+'_on.gif";'+sections[x]+'off = new Image();'+sections[x]+'off.src = "resources/img/nav/'+sections[x]+'_off.gif";';
eval(setup);
}

// rollover functions
function on(which) {if (d.images) {document[which].src = eval(which+"on.src");}}
function off(which) {if (d.images) {document[which].src = eval(which+"off.src");}}

// status bar set

window.status=d.title;

// window popper

function popwin(url,width,height){
window.open(url,'popup','width='+width+',height='+height+',location=0,address=0,scrollbars=0,status=0,noresize');
}

sfHover = function() {
	if(document.getElementById("mainMenuContents")) {
		 var sfEls = document.getElementById("mainMenuContents").getElementsByTagName("LI");
		 if(sfEls) {
			 for (var i=0; i<sfEls.length; i++) {
				sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
					 if(document.all.quickjump) { document.all.quickjump.style.visibility='hidden'; }
				 }
				 sfEls[i].onmouseout=function() {
					 this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
					 if(document.all.quickjump) {document.all.quickjump.style.visibility='visible'; }
				 }
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);