function muestaImg (seleccion) { 
	if (document.getElementById) { 
		document.getElementById('despliegue').src = seleccion.scr; 
		if (seleccion.title) { 
			document.getElementById('eltexto').childNodes[0].nodeValue = seleccion.title; 
		} else { 
			document.getElementById('eltexto').childNodes[0].nodeValue = seleccion.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}
function pviiClassNew(obj, new_style) {
    obj.className = new_style;
}
function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}

function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}

//This script changes the graphic on mouse over and a graphic in
//another part of the screen

{
alt0 = new Image();
alt0.src = "images/BannerBase.gif";

alt1 = new Image();
alt1.src = "images/BannerBoton1.gif";

alt2 = new Image();
alt2.src = "images/BannerBoton2.gif";

alt3 = new Image();
alt3.src = "images/BannerBoton3.gif";

graphic1= new Image();
graphic1.src = "images/Boton1.jpg";
graphic1on = new Image();
graphic1on.src = "images/Boton1over.jpg";

graphic2= new Image();
graphic2.src = "images/Boton2.jpg";
graphic2on = new Image();
graphic2on.src = "images/Boton2over.jpg";

graphic3= new Image();
graphic3.src = "images/Boton3.jpg";
graphic3on = new Image();
graphic3on.src = "images/Boton3over.jpg";

}
function imageChange(imageID,imageName,imageID2,imageName2) {


{
document.images[imageID].src = eval(imageName + ".src");
document.images[imageID2].src = eval(imageName2 + ".src");
}

}



    setMouseOver = function() {
    	var items  = document.getElementById("Gminiatura");
    if (items == null) return;
    else items = items.getElementsByTagName("img");  
    	var titles = document.getElementById("Gminiatura").getElementsByTagName("p"); 
      var itemActual = document.getElementById("itemActual");   
      var itemTitle   = document.getElementById("title");     
      
      for (var i=0; i<items.length; i++) { 
          items[i].onmouseover=function() { 
               itemActual.src=this.src;
               for (var j=0; j<items.length; j++)
                   if (items[j] == this)  
                      itemTitle.innerHTML = titles[j].innerHTML;
          } 
      }
    }

function procomm() { 
var name = "ventas"; 
var address = "0800colchon.com"; 
var link = "Env&iacute;enos &nbsp; un email"; 
var subject = "Informaci&oacute;n"; 
document.write('<a class="email" href=mailto:' + name + '@' + address + '?subject=' + subject + '>' + link + '</a>'); 
} 
function procommimg() { 
var name = "ventas"; 
var address = "0800colchon.com"; 
var subject = "Informaci&oacute;n"; 
document.write('<a class="email" href=mailto:' + name + '@' + address + '?subject=' + subject + '>' +  '<div style="margin: 5px 0 0 80px"><img src="imagenes\/es\/sitio\/SobreD.gif" border="0" alt="Env&iacute;enos un email"></div></a>'); 
} 
function titulosite() { 
document.write('0800colchon'); 
} 
