hIniz = 0;
hMax = 144;
hMin = 0;
passo = 6;
function bottoneAttivo(){
	document.getElementById(btAtv).style.backgroundColor = "#1B8915";
}
//per compatibilità con vecchi browser...
if(!document.getElementById){
	if(document.all){
		document.getElementById = function(id){
			return document.all[id];
		} 
	} else if(document.layers){
		document.getElemById = function(id) {
			return document.layers[id];
		}
	}
} 
function vis(div, v){
	divAtv = div;
	if (v==1){
    	document.getElementById(div).style.visibility = "visible";
		direz="su";
		ripeti = setTimeout('muoviMenu()', 20);
	} else {
		direz="giu";
		ripeti = setTimeout('muoviMenu()', 20);
	}
}
function muoviMenu(){
	if(direz=="su"){
		if (hIniz < hMax){
			hIniz+=passo;
			document.getElementById(divAtv).style.height = hIniz+"px";
			ripeti = setTimeout('muoviMenu()', 15);
		} else {
			document.getElementById(divAtv).style.height = hIniz+"px";
			clearInterval(ripeti);
		}
	} else {
		if (hIniz > hMin){
			hIniz-=passo;
			document.getElementById(divAtv).style.height = hIniz+"px";
			ripeti = setTimeout('muoviMenu()', 15);
		} else {
			document.getElementById("btSec").style.visibility = "hidden";
			clearInterval(ripeti);
		}
	}
}
function apriMenu(){
	if (hIniz < hMax){
		hIniz+=passo;
		document.getElementById("btSec").style.height = hIniz+"px";
		ripeti = setTimeout('apriMenu()', 15);
	} else {
		clearInterval(ripeti);
	}
}
function chiudiMenu(){
	if (hIniz > hMin){
		hIniz-=passo;
		document.getElementById("btSec").style.height = hIniz+"px";
		ripeti = setTimeout('chiudiMenu()', 15);
	} else {
		document.getElementById("btSec").style.visibility = "hidden";
		clearInterval(ripeti);
	}
}