function selectCity(select) {
	var url = select.value;
	if (url) window.location = url;
}

function initMenu() {
$("#menu .mpopup").prev(".item").mouseenter(function() {
	var overlay = $(this).next(".moverlay");
	if (overlay.length == 0) overlay = $(this).clone().addClass("moverlay").insertAfter(this);
	var popup = overlay.show().next(".mpopup");
	var list = $("ul", popup).hide();
	popup.width(Math.max(200, overlay.width() + 72)).show();
	list.slideDown(list.children().length * 10 + 100);
});
$("#menu .mpopup").closest("td").mouseleave(function(event) {
	$(".mpopup", this).hide();
	$(".moverlay", this).hide();
});
}

function initCrumbs() {
$("#crumbs .item").mouseover(function(event) {
	var popup = $(this).next(".cpopup");
	if (popup.length) {
		var list = $("ul", popup).hide();
		$(".cpoverlay", popup).width($(this).width() + 2);
		event.preventDefault();
		popup.show();
		list.slideDown(list.children().length * 10 + 100);
	}
});
$(".cpopup").mouseleave(function() {
	$("ul", this).hide();
	$(this).hide();
});
}
