document.observe("dom:loaded", function() {
  // initially hide all containers for tab content
  //$$('div.tabcontent').invoke('hide');
//alert($('Col').getHeight());
	
equalCols();

});

function equalCols(){
	
	
	var heightMax = $('Col').getHeight();
	//var heightCol = $('Col').getHeight();
	var heightMain = $('Main').getHeight();
	var heightMainDx = $('Main-dx').getHeight();
	
	
	heightMax = (heightMax < heightMain)? heightMain : heightMax;
	heightMax = (heightMax < heightMainDx)? heightMainDx : heightMax;
	
	$('Col').setStyle({height: heightMax+61+'px'});
	$('Main').setStyle({height: heightMax+'px'});
	$('Main-dx').setStyle({height: heightMax+'px'});
	
	/*heightCol = heightCol-61 //sottraggo lo scostamento verso l'alto
	if( heightCol < heightMain ){
		$('Col').setStyle({height: heightMain+61+'px'});
	}
	else {
		$('Main').setStyle({height: (heightCol)+'px'});
	}*/
}
