// JavaScript Document
function setColorMenu(src,over)
{
	if ( over )
	{
		src.style.background = 'eeeeee';
		document.body.style.cursor = 'default'; /* Si pusiera 'hand' aparecería la típica mano de un hipervínculo */
	}
	else
	{
		document.body.style.cursor = 'default';
		src.style.background = 'ffffff';
	}
}


// La siguiente función permite verificar que no se han cometido errores al introducir el email:

function validarEmail () 
{
  var frm = document.forms["suscribe"];
  var tempArray = frm.email.value.split('@');
  if(tempArray[1].toLowerCase() == 'hotmail.com')
  {
	alert('Los correos de Hotmail.com no siempre permiten recibir nuestras guías. Disculpa las molestias.');
	return true;
  }
  else
  {
  	if(frm.email.value != frm.email2.value)
  	{
    	alert('¡Los e-mails introducidos no coinciden!');
    	return false;
  	}
  	else
  	{
    return true;
  	}
  }
}


function toggleObjectDisplay(objId)
	{
	obj = document.getElementById(objId);
	if (obj)
		{
		if (obj.style.display == "block") obj.style.display = "none";
		else obj.style.display = "block";
		}
	}
	
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}	

