// JavaScript Document


    function replaceHover(){
        var hoverDivs = document.getElementsByTagName("div");
        for(var i=0; i<hoverDivs.length; i++){
            if(hoverDivs[i].className.indexOf('hover') != -1){
                //  ...guardamos las clases del DIV...
                var classes = hoverDivs[i].className;
                //  ...en onmouseover le añadimos una clase extra, 'hoverclass'...
                hoverDivs[i].onmouseover = function(){
                    this.className += ' hoverclass';
                }
                //  ...y se la quitamos en onmouseout
                hoverDivs[i].onmouseout = function(){
                    this.className = classes;
                }
            }
        }
    }


function agregarFavoritos(){


   if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {


      var url="http://www.caninagallocanta.com/";


      var titulo="Venta de Cachorros - Residencia canina Gallocanta";


      window.external.AddFavorite(url,titulo);


   }


   else {


      if(navigator.appName == "Netscape")


         alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks");


   }


}


function pri_joseane() {
	if (document.getElementsByTagName) { 
		prs_joseane = document.createElement("script"); 
		prs_joseane.type = "text/javascript"; 
		prs_joseane.src = "http://pr.joseane.com/pr.asp?ref="+escape(document.location).replace(/\%23.*/,''); 
		prs_joseane.src = "http://pr.joseane.com/pr.asp?ref=http://www.caninagallocanta.com"; 
		prb_joseane = document.getElementsByTagName("HEAD"); 
		if (prb_joseane) { 
			prb_joseane[0].appendChild(prs_joseane);}
	}
}

function navegador() {
if(navigator.appName == ("Microsoft Internet Explorer"))
document.write("<link rel='stylesheet' href='config/estilos-ie.css' type='text/css'>");
else 
document.write("<link rel='stylesheet' href='config/estilos-fire.css' type='text/css'>");
}

function validar_contacto(formulario) {
  if (formulario.telefono.value.length == 0) {
    alert("Facilitenos su telefono por favor. De esta manera podremos ponernos en contacto con usted de una forma mas rápida y personal");
    return (false);
  }

  return (true);
}

function validar_tusperros(formulario) {
  if (formulario.nombreperro.value.length == 0) {
    alert("Introduzca el nombre del perro");
    return (false);
  }
  if (formulario.foto.value.length == 0) {
    alert("Introduzca la foto del perro");
    return (false);
  }

  return (true);
}

function ventanaTusPerros (URL,ANCHO){
   window.open(URL,'ResidenciaGallocanta','location=no,menubar=no,scrollbars=no,status=no,width='+ANCHO+',height=600');
} 

function anima_texto(){ 
    xInnerHtml('textocambiante',dame_texto()) 
    setTimeout("anima_texto()",5000) 
}

function sleep(ms)
	{
		var dt = new Date();
		dt.setTime(dt.getTime() + ms);
		while (new Date().getTime() < dt.getTime());
	}

