$(document).ready(function() {
	
	/* menu */
	var al = $("a[href*='/catalog/"+catid+"/']");
	$(al).css("fontWeight","bold");
	var f_container = $(al).parents(".first");
	$(f_container).children(".second").show();
	var s_container = $(al).parents(".second");
	$(s_container).children(".third").show();
	$(al).parents(".third").show();
	
	$("div.first > div#mainGrp_plus").toggle(function() {
		var c = $(this).parent(".first").children(".second").length;
		if (c > 0) {
			$(this).parent(".first").children(".second").show();
			return false;
		} else {
			loc = $(this).children("a").attr("href");
			document.location = loc;
		}
	}, function() {
		$(this).parent(".first").children(".second").hide();
		return false;
	});
	
	$("div.second > div#mainGrp_plus").toggle(function() {
		var c = $(this).parent(".second").children(".third").length;
		if (c > 0) {
			$(this).parent(".second").children(".third").show();
			return false;
		}
	}, function() {
		$(this).parent(".second").children(".third").hide();
		return false;
	});
	/* /menu */
	
	$("#tooltip").fadeOut(9000);
	
});