var seat = new Array;

var cur_hint = new Array;
var hint_timeout;

function show_current_hint() {
	if (cur_hint[0]) {
		show_hint_real(cur_hint[0], cur_hint[1], cur_hint[2]);
	}
}

function show_delay_hint(hint_id,elem,url) {
	cur_hint[0] = hint_id;
	cur_hint[1] = elem;
	cur_hint[2] = url;
	hint_timeout = setTimeout( show_current_hint, 1000 );
}

function hide_delay_hint(hint_id) {
	clearTimeout(hint_timeout);
	if (cur_hint[0]) {
		hide_hint_real(cur_hint[0]);
	}
	cur_hint = new Array;
}

function select_page(page, page_class) {
	var divs = document.getElementsByTagName("div");
	var selected;
	for (var i=0, max=divs.length; i<max; i++) {
		if (divs[i].className == page_class) {
			if (divs[i].id == page) {
				divs[i].style.display = 'block';
				selected = divs[i];
			} else {
				divs[i].style.display = 'none';
			}
		}
	}
}

