function altezze() {
	offset = 219;
	co1 = document.getElementById('left').offsetHeight;
	co2 = document.getElementById('right').offsetHeight;
	altok = co1;
	if (co2 > altok) altok = co2;
	altokok = co1;
	if (co2 < altokok) altokok = co2;
	document.getElementById('left').style.height = altok + 'px';
	document.getElementById('right').style.height = altok + 'px';
	altall = altok + offset;
	document.getElementById('wrap').style.height = altall + 'px';
}

function launchCenteredWin(url, name, width, height, otherfeatures) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  newwin = window.open(url, name, str + ',' + otherfeatures);
  if(parseInt(navigator.appVersion) >= 4)
  {
	//delay a bit here because IE4 encounters errors
	//when trying to focus a recently opened window
 	setTimeout('newwin.focus();',250);
  }
}


$(function() {
	$('#right a[rel=mod]').nyroModal();
	
	// $('#top').click
	
});

