jQuery(function($) {
				
	var flag = false;
	
	jQuery("div.main_menu li").bind("mouseover", function() {
														  
		var curTitle = 	jQuery(this).attr('id');	
		
		if (jQuery(this).hasClass(curTitle)) {
			
			flag = true;
			
		}
		else {
			
			jQuery(this).addClass(curTitle);
			flag = false;
			
		}
		

	});
	
	jQuery("div.main_menu li").bind("mouseout", function() {
														  
		var curTitle = 	jQuery(this).attr('id');	
		
		if (!flag) {
			
			jQuery(this).removeClass(curTitle);
			
		}
		

	});
	
});
