window.addEvent('domready', function(){
	var url = Array("verytop.html","footer.html");
	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'
					}
				}
			}
			
		}
	}
	initnav('nav1');
	initnav('nav2');
	new Ajax(url[0], {
		method: 'get',
		update: $('verytop')
	}).request()
	new Ajax(url[1], {
		method: 'get',
		update: $('footer')
	}).request()
});