window.onload = function()
{
	igualarAlturas();
	//cargaFTP();
}


function igualarAlturas()
{	
	var colIzq = document.getElementById('colizq');
	var colIzq2 = document.getElementById('contenido');
    var colDer = document.getElementById('colder');
	
	hColIzq = colIzq.offsetHeight;
	hColIzq2 = colIzq2.offsetHeight;
    hColDer = colDer.offsetHeight;
	
	Izq = Math.max( hColIzq, hColDer ) +"px";
	Izq2 = Math.max( hColIzq, hColDer )-100 +"px";
	Der = Math.max( hColIzq, hColDer ) +"px";

	if(hColIzq >= hColDer)
	{
		colDer.style.height = Der;
		colIzq2.style.height = Izq2;
	}
	else	
	{
		colIzq.style.height = Izq;
		colIzq2.style.height = Izq2;
	}
}

function submenu(objeto)
{
	
	/*$(submen).animate({height: 'toggle', opacity: 'toggle'}, "fast");*/
	
	$(objeto).slideToggle({duration: 500});
	igualarAlturas();
}

function cargaFTP()
{
	document.getElementById('progress').style.visibility = 'hidden';
	document.getElementById('prog_text').style.visibility = 'hidden';
}


function dispProgress() 
{
	document.getElementById('progress').style.visibility = 'visible';
	document.getElementById('prog_text').style.visibility = 'visible';
}
