var w=(screen.availWidth - 10); var h=(screen.availHeight - 25)
function fullscreen(theURL,winName) {
	window.open(theURL,winName, "width="+w+",height="+h+",top=0,left=0");
}
function popup(indirizzo,nome,larghezza,altezza) {
	window.open(indirizzo,nome,"location=no,status=yes,resizable=no,width="+larghezza+",height="+altezza+",top="+(h-altezza)/2+",left="+(w-larghezza)/2);
}

var popupTimerHandle = null;
function showBox(div) {
	if (div != 'lay-zine'){
		reallyHideBox('lay-zine');
	}
	if (div != 'lay-perspective'){
		reallyHideBox('lay-perspective');
	}
	if (div != 'lay-news'){
		reallyHideBox('lay-news');
	}
	if (div != 'lay-events'){
		reallyHideBox('lay-events');
	}
	
	if (popupTimerHandle != null) {
		clearTimeout(popupTimerHandle);
		popupTimerHandle = null;
	}

	divObj = document.getElementById(div);
	divObj.style.display = 'block';
}

function hideBox(div) {
	popupTimerHandle = setTimeout("reallyHideBox('" + div + "');", 150);
}

function reallyHideBox(div) {
	divObj = document.getElementById(div);
	divObj.style.display = 'none';
}
