
	function popupmenu(id, value, obj) {
		if (obj != null) {
			obj.className = value == 'none' ? 'menu_out' : 'menu_over';
		}
		var submenu = document.getElementById(id);
		if (submenu != null) {
			if (submenu.getElementsByTagName("a").length == 0)
				return;
			submenu.style.display = value;
		}
	}
	$('div.menu').find('div.menu_out').each(function() {
		$(this).width(parseInt($(this).find('span:first').html().length) * 7 + 10);
	});
