var arrNav	 = ["#n_02", "#n_03", "#n_04", "#n_05", "#n_06", "#n_07", "#n_08", "#n_09"];
var arrMenu	 = ["#nm_02", "#nm_03", "#nm_04", "#nm_05", "#nm_06", "#nm_07", "#nm_08", "#nm_09"];
var tmp = new Array();
function copyArr(arr){
  for(var i=0; i<arrMenu.length; i++){
    arr[i] = arrMenu[i];
  }
  return arr;
}
function show(id){
	  tmp = copyArr(tmp);
	  tmp.splice(id, 1);
	  for(var i=0; i<tmp.length; i++){
	    //alert(tmp[i]);
		$(tmp[i]).hide("slow");
	  }
}

$(function(){
	// Document is ready
	$(arrNav[1]).hover(function(){
	  $(arrMenu[1]).show("slow");
	  //$(arrMenu[1]).addClass("alpha");
	  show(1);
	},function(){
	  //$("#nm_02").hide("slow");;
	});
	$(arrNav[2]).hover(function(){
	  $(arrMenu[2]).show("slow");
	  show(2);
	},function(){
	  //$("#nm_02").hide("slow");;
	});
	$(arrNav[3]).hover(function(){
	  $(arrMenu[3]).show("slow");
	  show(3);
	},function(){
	  //$("#nm_02").hide("slow");;
	});
	$(arrNav[4]).hover(function(){
	  $(arrMenu[4]).show("slow");
	  show(4);
	},function(){
	  //$("#nm_02").hide("slow");;
	});
	$(arrNav[5]).hover(function(){
	  $(arrMenu[5]).show("slow");
	  show(5);
	},function(){
	  //$("#nm_02").hide("slow");;
	});
	$(arrNav[6]).hover(function(){
	  $(arrMenu[6]).show("slow");
	  show(6);
	},function(){
	  //$("#nm_02").hide("slow");;
	});
	$(arrNav[7]).hover(function(){
	  $(arrMenu[7]).show("slow");
	  show(7);
	},function(){
	  //$("#nm_02").hide("slow");;
	});	
});
