var act_sub = '';

function color_top_out(id){
	if (act_sub != ''){
		if (document.getElementById('sub'+id) != document.getElementById(act_sub)){
			document.getElementById('top'+id).style.background = color1;
		}	
	}else{
		document.getElementById('top'+id).style.background = color1;
	}
	
}

function show_hide_sub(id){
	if (document.getElementById(id) == document.getElementById(act_sub)){
		document.getElementById(id).style.display = 'none';
		act_sub = '';
	}else{
		if (act_sub != ''){
			document.getElementById(act_sub).style.display = 'none';
			document.getElementById(id).style.display = 'inline';
			act_sub = id;	
		}else{
			document.getElementById(id).style.display = 'inline';
			act_sub = id;	
		}
	}
//	alert(document.getElementById('ultop').style.top);
//	document.getElementById('menubottom').style.bottom = document.getElementById('menudiv').style.height + 10;
//	document.getElementById('menudiv').style.height = document.getElementById('menudiv').style.height - 10;
	//document.getElementById(id).style.background = color2;
	return true;
}
	

function color_top_over(id){
	color1 = document.getElementById(id).style.background;
	document.getElementById(id).style.background = color2;
}

function color_me(id){
	document.getElementById(id).style.background = color2;
}

