var than = new Array();


function show_press(listId, index) {
	if (!ttog[index]) {
		mhan[index].style.visibility = "visible";
		do_expand(index);
		$("#bookings").fadeOut("normal");
	} else {
		clearTimeout(than[index]);
	}
}

function hide_press(listId, index, delay) {
	than[index] = setTimeout("dohide("+index+")", delay);
}

function cancel_hide(index) {
	clearTimeout(than[index]);
}

// called from within setTimeout
function dohide(index) {
	$("#bookings").fadeIn("normal");
	do_shrink(index);
}
