var navegador = window.navigator.appName;
var temp1;
function sobre(opcion){
  var este=window.document.getElementById(opcion);
  if(este.className != "botonC"){
  	if(navegador == "Microsoft Internet Explorer"){
  		este.className="botonO";
  	}else{
  		este.setAttribute("class","botonO");
  	}
  }
} 

function fuera(opcion){
  var este=window.document.getElementById(opcion);    
  if(este.className != "botonC"){
  	if(navegador == "Microsoft Internet Explorer"){
    		este.className="boton";
  	}else{
  		este.setAttribute("class","boton");
  	}
  }
}

function click(este){
   var opcion=window.document.getElementById(este);
  	if(navegador == "Microsoft Internet Explorer"){
  		opcion.className="botonC";
  	}else{
  		opcion.setAttribute("class","botonC");
  	}
}

function campos_obligatorios(q){
var campo_z;
	for(var i=0;i<q;i++){
		campo_z=window.document.getElementById("obligatorio"+i);
		//alert(campo_z.value);
		if(campo_z.value=="" || campo_z.length==0 || campo_z.value=="#"){
			alert("El campo " +campo_z.name+" es obligatorio.");
			campo_z.focus();
			return false;
			break;
		}
	}
	if(i==3){
		return true;
  }
}


function blurit()
  {
    window.clearInterval(temp1);
    oo=0;
    temp1=window.setInterval('toBlur()',100);
  }
function toBlur()
  {
  imgB=window.document.getElementById("imgfondo");
  if(window.navigator.appName != "Microsoft Internet Explorer")
  {
    if(imgB.style.opacity <1){
      oo +=0.1;
      imgB.style.opacity =oo;
    }else{
      window.clearInterval(temp1);
    }
  }else{
    if(imgB.filters.alpha.opacity<100){
      imgB.filters.alpha.opacity +=10;
    }else{
      window.clearInterval(temp1);      
    }
  }
  }
  
  
  
function unblurit()
  {
    window.clearInterval(temp1);
    oo=1;
    temp1=window.setInterval('noBlur()',100);  
  }
function noBlur()
  {
  imgB=window.document.getElementById("imgfondo");
  if(window.navigator.appName != "Microsoft Internet Explorer")
  {
    if(imgB.style.opacity >0){
      oo -=0.1;
      imgB.style.opacity =oo;
    }else{
      window.clearInterval(temp1);
    }
  }else{
    if(imgB.filters.alpha.opacity>0){
      imgB.filters.alpha.opacity -=10;
    }else{
      window.clearInterval(temp1);      
    }
  }
  }
  
  function verFlyer(){
  var popup=window.open("flyer.html","popup","location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes,width=650, height=650,Top=10,Left=450");
  popup.focus();
  }
