var activeNum = 0;
var tmo;
function mouseover(){
	if(!document.all)return;
	thing = window.event;

	elem = thing.srcElement;
	
	var num = 0;
	var pulldown;
	
	if(elem.id.substr(0,4) == "pull"){
		var arr = elem.id.split("_");	
		num = arr[1];
			
		if(num > 0){
			if(activeNum > 0 && activeNum != num){
				document.getElementById("pulldown_" + activeNum).style.display = "none";
			}
	
			pulldown = document.getElementById("pulldown_" + num);	
			if(pulldown){
				if(tmo)window.clearTimeout(tmo);
				pulldown.style.display = "block";
				activeNum = num;
			}
		}
	}
}

function mouseout(){
	if(activeNum == num)return;
	if(!document.all)return;
	thing = window.event;
	
	elem = thing.srcElement;
	
	var num = 0;
	var pulldown;
	
	if(elem.id.substr(0,4) == "pull"){
		var arr = elem.id.split("_");	
		num = arr[1];
	
		if(num > 0){
			if(tmo)window.clearTimeout(tmo);
			tmo = window.setTimeout("hide(" + num + ")", 1000)
		}
	}
}

function hide(num){
	if(activeNum != num)return;
	activeNum = 0;
	var pulldown;
	pulldown = document.getElementById("pulldown_" + num)
	pulldown.style.display = "none";
}

document.onmouseover = mouseover;
document.onmouseout = mouseout;