var ELM = (document.getElementById);
var IE5 = ((ELM) && (navigator.userAgent.toLowerCase().indexOf('msie')!=-1) && (! window.opera));
var GKO = (navigator.userAgent.toLowerCase().indexOf('gecko')!=-1);
var Contador=0;
var Accion=0;
var Temporizador;

function FuncionEf() {
if (!GKO && !IE5) {
	alert ('Este script se basa en características propietarias no soportadas por tu navegador.');
	return false;
	}
if (Accion==0) {
	Temporizador=setInterval('Efecto()', 25);
	document.getElementById('BotonEf').value='Detener';
	Accion=1;
	return false;
	}
else {
	clearInterval(Temporizador);
	document.getElementById('BotonEf').value='Activar';
	Accion=0;
	return false;
	}
}

function Efecto() {
	if (GKO) document.getElementById('pEfecto').style.MozOpacity = .5*(1+Math.cos(Contador));
	if (IE5) document.getElementById('pEfecto').style.filter = 'alpha(opacity='+(50*(1+Math.cos(Contador)))+')'; 
	Contador+=0.1;
}
