function initnav(obj) {
	navRoot = $(obj);
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.offsetLeft > 775) {
			var adjust = 775-node.offsetLeft;
			for (var j=0; j<node.childNodes.length; j++) {
				if (node.childNodes[j].nodeName.toUpperCase() == 'UL') {
					node.childNodes[j].style.left = adjust+'px';
				}
			}
		}
		node.onmouseover = function() {
			if (this.className.indexOf('lo') != -1) {
				if (this.className.indexOf('solid') != -1) {
					this.className = 'hi solid';
				} else if(this.className.indexOf('last') != -1){
					this.className = 'hi last';
				} else {
					this.className = 'hi';
				}
			}
		}
		node.onmouseout = function() {
			if (this.className.indexOf('hi') != -1) {
				if ((this.className.indexOf('solid') != -1)) {
					this.className = 'lo solid';
				} else if(this.className.indexOf('last') != -1){
					this.className = 'lo last'
				} else {
					this.className = 'lo'
				}
			}
		}
		
	}
}
window.addEvent('domready', function(){
	initnav('nav1');
});