// JavaScript Document

function open_box_filetto(div_blocco,dim_min,dim_max){
	
	var div_top = $('top_'+div_blocco+'');
	var div_cont = $(''+div_blocco+'');
	
	//Effect.toggle(div_blocco, 'appear');
	showhide_div(div_blocco)
	
	if(div_top.style.height==dim_min) {
		div_top.style.height = dim_max;
	}else{
		div_top.style.height = dim_min;
	}
	
}

function showhide_div(name) {	
	
	var stato = document.getElementById(name).style.display;
	var tipo = '';
	if(stato=='block'){
		tipo = 'none';
	}else{
		tipo = 'block';	
	}
	
	
   	document.getElementById(name).style.display = tipo;
}
