// Dropdown Menu
var now_index;
var now_subindex;
var timeout;

function showSubmenu(obj) {
	clearTimeout(timeout);
	var index = obj.id;
	index = index.substr(2);
	//alert (index);
	if (now_index != index) {
		hide ("si" + now_index);
		show ("si" + index);
		now_index = index;
	} else {
		show ("si" + now_index);
	}
	
}
function hideSubmenu(obj) {
	var index = obj.id;
	index = index.substr(2);
	//alert (index);
	timeout = setTimeout("hideByTime()", 500);  
}
function hideByTime(obj) {
	hide("si" + now_index);
}
function showshow() {
	show ("si" + now_index);
}
	

// ONLOAD
function start() {
	initDHTMLAPI();
}	


window.onload = start;