// =========================
// onload event
// =========================
document.observe("dom:loaded", function() {
	// get the ul inside li
	$$("#leftNav li > ul").invoke("hide");
	
	// get the current menu
	var current_menu = $$("li.current").first();
	if (current_menu) {
		// show the child
		var menu = current_menu.down("ul");
		if (menu) { menu.show(); }
		
		// get the first ul
		var first_ul = $$("#leftNav > ul").first();
		
		// show all parent menu's above
		var menu = current_menu.up("ul");
		while (menu) {
			menu.show();
			if (menu == first_ul) break;
			
			menu = menu.up("ul");
		}
	}
});

