function sleep(delay)
{
    var start = new Date().getTime();
    while (new Date().getTime() < start + delay);
}

function hide_aero_menu(item)
{
	$(item).slideUp('fast');
}

function aero_slidemenu(tabs_items, content_items)
{
	content_items.hide();

	tabs_items.each(function(i){
		var this_tab = $(this);



		this_tab.hover(
			function () {
				$(content_items[i]).slideDown('fast');
			},
			function () {
				setTimeout(hide_aero_menu, 300, $(content_items[i]));
				//$(content_items[i]).slideUp('fast');
			}
		);
	});
}
