miArray = new Array();

	function cargarImagenes(dir,subdir,indice,miArray) {
		document.getElementById("menuProductos").style.display = "none";
		if (parseInt(dir) < parseInt("10")) dir = "0" + dir;
		if (parseInt(subdir) < parseInt("10")) subdir = "0" + subdir;

		for (i=1; i <= 12; i++) {
			indice = parseInt(indice) + parseInt("1");
			if (parseInt(i) < parseInt("10")) img = "0" + i;
			else img = i;
			miArray[indice] = "/img/productos/botonera/" + dir + "/" + subdir + "/menu_" + img + ".png";
		}

		indice = parseInt(indice) + parseInt("1");
		miArray[indice] = "/img/productos/botonera/" + dir + "/" + subdir + "/barra1.png";
		indice = parseInt(indice) + parseInt("1");
		miArray[indice] = "/img/productos/botonera/" + dir + "/" + subdir + "/barra2.png";
		indice = parseInt(indice) + parseInt("1");
		miArray[indice] = "/img/productos/botonera/" + dir + "/" + subdir + "/fondo.jpg";
		indice = parseInt(indice) + parseInt("1");
		miArray[indice] = "/img/productos/botonera/" + dir + "/" + subdir + "/relleno.png";
		return miArray;
	}


	

	function cargarArrays(dir,subdir) {

			var indice = "0";
			var img = "";
			for (i=1; i <= 12; i++) {
					indice = parseInt(i) - parseInt("1");
					if (parseInt(i) < parseInt("10")) img = "0" + i;
					else img = i;
					miArray[indice] = "/img/productos/botonera/menu_" + img + ".gif";
			}
			
			for (i=1; i <= 12; i++) {
				indice = parseInt(indice) + parseInt("1");
				if (parseInt(i) < parseInt("10")) img = "0" + i;
				else img = i;
				miArray[indice] = "/img/productos/botonera/select_" + img + ".gif";
			}

			miArray = cargarImagenes(dir,subdir,indice,miArray);
			for (cont=0; cont< miArray.length;cont++) {
				eval ("imagenC" + cont + " = new Image();");
				eval ("imagenC" + cont + ".src = " + "\"" + miArray[cont] + "\";");
			}
			cont = 0;
			document.getElementById("menuProductos").style.display = "inline";
			document.getElementById("contentProductos").style.display = "inline";
			window.opener = this.window;
//			pruebaCarga();
	}
	
	
	


	cont=0;
	function pruebaCarga() {
			if (eval("imagenC"+cont).complete == true) {
				window.defaultStatus= "Cargando PortFolio de Productos ..."+ cont;
				cont++;
			}
			cont_final = parseInt(miArray.length) - parseInt("1");
			if (cont<cont_final) setTimeout("pruebaCarga()",100);
			else {
				window.defaultStatus= "Cargando PortFolio de Productos ..."+ cont;
				document.getElementById("menuProductosCargando").style.display = "none";
				document.getElementById("menuProductos").style.display = "inline";
				document.getElementById("contentProductos").style.display = "inline";
			}

	}


