$(function(){

 $("li.level_1").each(function(){
	if($(this).attr("id")=="current" || $(this).find("#current").size()>0){
		$(this).prependTo($(this).parent("ul.catalog_menu"));
	}
 });

});
