var t = null
jQuery(function() {
	jQuery("#nav li.right").hover(function() {
		try {clearTimeout(t)} catch (e) {}
		jQuery(this).find('ul').addClass('open')		
	},function() {
		var submenu = jQuery(this).find('ul');
		t = setTimeout(function() {
			submenu.removeClass('open')
		},500)
	})
})
