<!--

<!-- Esconde de los viejos Browsers

  message     = "Bienvenidos a la página Web de ::COMERCIALIZADORA JEAYBED, S.A.:: ^"+
                "^";
  scrollSpeed = 40;
  lineDelay   = 3000;

  txt         = ""

  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos);
      status = txt;
      pauze  = scrollSpeed;
    }
    else {
      pauze = lineDelay;
      txt   = "";
      if (pos == message.length-1) pos = -1;
    }
    pos++;
    setTimeout("scrollText('"+pos+"')",pauze);
  }

  // cierro script -->
scrollText(0);

//-->

<!--




//esconder este script de browsers antiguos.
	// Script para determinar la fecha.
function showDate() {
	var now = new Date();
	var days = new 	Array('Domingo','Lunes','Martes','Miercoles','Jueves','Viernes','Sábado');
	var months = new Array('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre');
	var string = days[now.getDay()] + ', '  + now.getDate() + ' '+ 'de '+ ' '+ months[now.getMonth()] + ' '+ 'de '+ ' ' + now.getFullYear() + '&nbsp;&nbsp;';
	document.writeln(string);
	return string;
}
// .
function thingy(number) {
	var thingy = '';
	if (number < '0') return false;
	var numberStr = '' + number;
	var numberLen = numberStr.length - 1;

	thingy = (thingy == '') ? '' : thingy;
	return (number.toString() + thingy);
}

function changeBckgrnd2(obj,colorRGB,on){
	
 eval( "if ( on ) { obj.style.background = '"+colorRGB+"';  } else { obj.style.background = 'transparent'; }");
	
}

function getParameter(parameter){
	// Obtiene la cadena completa de URL
	var url = location.href;
	// Obtiene la posicion donde se encuentra el signo ?, ahi es donde empiezan los parametros 
	var index = url.indexOf("?");
	// Obtiene la posicion donde termina el nombre del parametro el inicia el signo = 
	index = url.indexOf(parameter,index) + parameter.length;
	
	// Verifica que efectivamente el valor en la posicion actual es el signo = 
	if (url.charAt(index) == "="){
		// Obtiene el valor del parametro
		var result = url.indexOf("&",index);
		if (result == -1){
			result=url.length;
		}
		// Despliega el valor del parametro
		//alert(url.substring(index + 1,result));
		return url.substring(index + 1,result);
	}
}

function corroborar(){
	var nombre = navigator.appName;
	var version= navigator.appVersion;
	var versionNumber = parseFloat(version);
	document.write("<span class='Footer' style='margin-top: 2px; margin-bottom: 2px; '>Ud. est&aacute; utilizando <b>"+nombre+"</b>. Versi&oacute;n: <b>"+versionNumber +"</b></span><br>");
	document.write("<span class='Footer' style='margin-top: 4px; margin-bottom: 4px; '>Resoluci&oacute;n actual: <b>"+screen.width + " x " + screen.height+"</b> pixeles.</span>");
	if( screen.width < 1024 || screen.height < 768 ){
		document.write("<br><font face='Verdana' color='#000000' style='font-size: 10px'>");
		document.write("<span style='background-color: #FFFF00'><b>La resoluci&oacute;n &oacute;ptima para que los elementos se vean correctamente en su pantalla debe ser por lo menos de 1024 x 768 pixels.</b></span>");
		document.write("</font>");
	}
}


window.onload = f_init;
 
var oDiv  = null;
var hInt  = null;
var nDir  = 0;
 
function f_init() {
	var nCoordX = 0;
	var nMaxH   = 0;
	var nlDivs  = document.getElementsByTagName("div");
	for(i=0; i<nlDivs.length; i++) {
		var oDiv = nlDivs[i];
		if(oDiv.className=="st") {
			oDiv.onmouseover = f_mover;
			oDiv.onmousemove = f_mmove;
			oDiv.onmouseout  = f_mout;
			oDiv.move        = f_move;
			for(ii=0; ii<oDiv.childNodes.length; ii++) {
				var oImg = nlDivs[i].childNodes[ii];
				if(oImg.tagName=="IMG") {
					oImg.style.position = "absolute";
					oImg.style.left     = nCoordX+"px";
					nCoordX += oImg.width + 50;//+ 5
					nMaxH    = Math.max(nMaxH, oImg.height);
				}
			}
			oDiv.scrollLeft   = 0;
			oDiv.maxScrollW   = oDiv.scrollWidth - oDiv.offsetWidth;
			oDiv.centerX      = (oDiv.offsetWidth / 2);
			oDiv.style.height = nMaxH+"px";
		}
	}
}
function f_mover() {
	if(hInt != null) window.clearInterval(hInt);
	oDiv  = this;
	hInt  = window.setInterval(f_move, 2);//10
}
function f_mmove(event) {
	if(event == null) event = window.event;
	var x  = event.clientX - this.offsetLeft;
	if(x < this.centerX && this.scrollLeft>0              ) nDir = -1;
	if(x > this.centerX && this.scrollLeft<this.maxScrollW) nDir = +1;
}
function f_mout() {
	window.clearInterval(hInt);
	hInt = null;
	oDiv = null;
}
function f_move() {
	oDiv.scrollLeft += nDir;
}
