function Menu() {}

function Menu_over() {
	Menu_set(this, true);
}
function Menu_out() {
	Menu_set(this, false );
}
function Menu_set(e, hover) {
	var hot = e.href == document.location;
	var h = (hot || hover) ? 'On' : 'Off';
	e.style.backgroundImage = 'url(' + Menu.pfx + e.safeId + h + '.gif)' ;
	
	e.className = 'section' + h;
	
	if (hot || hover) {
		e.style.backgroundColor = e.safeColor;
		e.style.color = e.safeColor;
	} else {
		e.style.backgroundColor ='#666666';
		e.style.color = '#666666';
	}
	
	if (hot) {
		var c = document.getElementById('contentBrochure');
		c.style.backgroundColor = e.safeColor;
	}
}

function Menu_section(name, color) {
	var s = new Object();
	s.name = name;
	s.color = color;
	return s;
}

function Menu_init(pfx) {
	Menu.pfx = pfx;
	
	for (var i = 1; i < arguments.length; i++) {
		var s = arguments[i];
		
		var e = document.getElementById(s.name);
		e.safeId = s.name;
		e.safeColor = s.color;
		e.onmouseover = Menu_over;
		e.onmouseout = Menu_out;
		Menu_set(e, false);
	}
}