function initialize() {
	checkBrowserWidth();
	window.onresize = checkBrowserWidth;
}



function hpchocolatemenu() {
	var chocolatemenu=document.getElementById("chocolatemenu");
	if (chocolatemenu) { 
		var LIs=chocolatemenu.getElementsByTagName("li");
		for (i=0; i<LIs.length; i++) {
			LIs[i].onmouseover = function() {
				var LIs=this.parentNode.getElementsByTagName("li");
				for (j=0; j<LIs.length; j++) {
					if (LIs[j] != this) {
						LIs[j].className="inactive";
					}
				}
			}
			LIs[i].onmouseout = function() {
				var LIs=this.parentNode.getElementsByTagName("li");
				for (j=0; j<LIs.length; j++) {
					if (LIs[j] != this) {
						LIs[j].className="";
					}
				}
			}
		}
	}
}

addLoadEvent(initialize);
addLoadEvent(hpchocolatemenu);
