function InitMenus(id) {
  // get all list elements
  if ($(id)) {
    $A($(id).childNodes).each(function(child) {
			Event.observe(child, 'mouseover', function() {
				child.addClassName('over');
				$(child).select('li.flyout').each(function(grandchild) {
					Event.observe(grandchild, 'mouseover',  function(){
						grandchild.addClassName('over');
					});
				});
			});
			Event.observe(child, 'mouseout',  function() {
				child.removeClassName('over');
				$(child).select('li.flyout').each(function(grandchild) {
					grandchild.removeClassName('over');
				});
			});
    });
  }
}