// JavaScript Document

function showLayer(nom) {
	document.getElementById(nom).style.visibility = "visible";
}

function hideLayer(nom) {
	document.getElementById(nom).style.visibility = "hidden";
}

function statusDiv(nom) {
	if (document.getElementById && document.getElementById( nom )) {
		Pdiv = document.getElementById( nom );
		PcH = true;
	} else if (document.all && document.all[ nom ]) {
		Pdiv = document.all[ nom ];
		PcH = true;
	} else if (document.layers && document.layers[ nom ]) {
		Pdiv = document.layers[ nom ];
		PcH = true;
	} else {
		PcH = false;
	}

	if ( PcH ) Pdiv.className = (Pdiv.className == 'cachediv') ? '' : 'cachediv';
}

function popupVideo(nom) {
	var left=(screen.width-400)/2;
	var top=(screen.height-392)/2;
	window.open(nom + '', '_blank', 'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=400,height=392,top=' + top + ',left=' + left);
}