function showSub(e) {
	var items = []
	e.each(function() {
	$(this).hide()
	items[items.length] = $(this)
	})
	var i = -1
	var ti = 10
	while(++i < items.length) {
		ti = 20*(i+1)
		items[i].animate({opacity:0},ti,"linear",function() {
			$(this).css('opacity',1)
			$(this).show();
		})
	}
}
jQuery(document).ready(function() {
	jQuery('#mainMenu li.submenu').each(function() {
		var s = $(this)
		var menu = s.find('ul.menu')
		s.hover(function() {
//			menu.show('fast')
//			showSub(menu.find('li'))
			menu.show()
		},function() {
			//menu.hide('fast')
			menu.hide()
		})
	})

});