var eL = document.epl_layer;
function startShow() {
	eL.div = document.getElementById(eL.divId);
	if ((eL.pos_inicial_top != null) && (eL.pos_inicial_left != null)) {
		eL.div.style.top = eL.pos_inicial_top;
		eL.div.style.left = eL.pos_inicial_left;
	}
	eL.div.style.visibility="visible"; 
	if (eL.tiempo_visualizacion > 0) {
		setTimeout('eL.div.style.visibility="hidden"', eL.tiempo_visualizacion*1000);
	}
}
function startEpl() {
	if (eL.imagen.complete) {
		startShow();
	} else {
		setTimeout('startEpl()', 100);
	}
}
function eplHideLayer() {
	eL.div.style.visibility = 'hidden';
}

if (eL.imagen) {
	if (eL.delay_inicial) {
		setTimeout('startEpl()', eL.delay_inicial*1000);
	} else {
		startEpl();
	}
} else {
	setTimeout('startShow()', eL.delay_inicial ? (eL.delay_inicial*1000 + 1000) : 1000);
}