
function adjustLayout() {
	var lHeight = xHeight("sx");
	var rHeight = xHeight("dx");
	
	var maxHeight = Math.max(lHeight, rHeight);
	
	xHeight("sx", maxHeight);
	xHeight("dx", maxHeight);
	
	var Height1 = xHeight("box-home1");
	var Height2 = xHeight("box-home2");
	var Height3 = xHeight("box-home3");
	
	var maxHeight1 = Math.max(Height1, Math.max(Height2, Height3));
	
	xHeight("box-home1", maxHeight1);
	xHeight("box-home2", maxHeight1);
	xHeight("box-home3", maxHeight1);
}

function startList() {
	if (document.all&&document.getElementById) {
	navRoot = document.getElementById("menu");
		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", "");
		}
	}
	}
	}
}

window.onload = function() {
	xAddEventListener(window, "resize", adjustLayout, false);
	adjustLayout();
	startList();
}
