// JavaScript Document
function HideShow_Menu(id,qtd) {
	var c;
	for(x = 1; x <= qtd; x++ ) {
		if 	( document.getElementById( 'Mnu' + x ).style.display != 'none'){
			c = x;
			Slide_Show('Mnu'+x,'c');
		}
	}
	if (c != id){
		Slide_Show('Mnu'+id,'o');
	}
}

function vertSlide_Close(id,h,alt){
	alt = alt-5;	
	if ( alt > 0){
		document.getElementById(id).style.height = alt+"px";
		setTimeout( "vertSlide_Close('"+id+"','"+h+"',"+alt+")", 0.1);
	} else {
//		alert ('id: '+id+', h: '+h+', alt: '+alt);
		document.getElementById(id).style.overflow = "visible";
		document.getElementById(id).style.height = h+"px";
		document.getElementById(id).style.display = 'none';
	}
}
function vertSlide_Open(id,h,alt){
	alt = alt+5;	
	if (alt < h){
		document.getElementById(id).style.height = alt+"px";
		setTimeout( "vertSlide_Open('"+id+"','"+h+"',"+alt+")", 0.1);
	} else {
		document.getElementById(id).style.height = h+"px";
	}
}

function Slide_Show(id,oc) {
	var tam = 0;
	document.getElementById(id).style.display="";
	tam = document.getElementById(id).offsetHeight;
	document.getElementById(id).style.overflow = "hidden";
	if (oc == 'o'){
		vertSlide_Open(id,tam,0);
	}
	if (oc == 'c'){
		vertSlide_Close(id,tam,tam);
	}
}