﻿$(function(){
	var oldObj;
	var oldA;
	$("#list tr.mainMenu").each(function(){
		$(this).css("font-weight","bold");
		$(this).css("cursor","hand");
		$(this).parent().children(":not(.mainMenu):not(.head)").css("display","none");
	})

	//set event
	$("#list tr.mainMenu").bind("mouseover",function(){
		if(oldObj)
		{
			//if(oldA!=this)
			//{
				oldObj.hide();
			//}
		}
		var newObj=$(this).next("not(.mainMenu)");
		newObj.toggle();
		oldObj=newObj;
		oldA=this;
		return false;
	})
})