
function popUp(URL,width,height)
{
	day = new Date();
	id = day.getTime();
	var winLeft = (screen.width - width) / 2;
	var winUp = (screen.height - height) / 2;
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+width+',height='+height+',left='+winLeft+',top='+winUp);");
}

function contact_by_mail(user, domain, suffix, content) {
	if (!content) {
		document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
	} 
	else {
		document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + content + '</a>');
	}
	return true;
}

function resizeColumns() {
	var left = document.getElementById('left').offsetHeight;
	var right = document.getElementById('right').offsetHeight;
	var center_hor = document.getElementById('center_hor').offsetHeight;
	var popup_overlay = document.getElementById('popup_overlay').offsetHeight;
	
	if(left >= right ) {
		document.getElementById('right').style.height = left + "px";			
	}
	else if(right >= left) {
		document.getElementById('left').style.height = right + "px";
	}

	/* shadows */
	document.getElementById("shadow_left").style.height = center_hor - 11 + "px";
	document.getElementById("shadow_right").style.height = center_hor - 11 + "px";
}
