isDOM = (document.getElementById ? true : false);
isIE = (document.all ? true : false);

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function getObjectName(strObjectName) {
	var objObjectName;
	if (isDOM)
		objObjectName = document.getElementById(strObjectName);
	else if (isIE)
		objObjectName = document.all[strObjectName];
	else{
		if (document[strObjectName]) 
			objObjectName = document[strObjectName];
		else{ 
			for (i = 0; i < document.layers.length; i++){
				if (document.layers[i].document[strObjectName]){
					objObjectName = document.layers[i].document[strObjectName];
					break;
				}
			}
		}
	}
	return objObjectName;
}

function Mostrar(cual){
	var d=getObjectName('nada');
	d.style.display='none';
	d=getObjectName('layer1');
	d.style.display=((cual==1) ? 'block' : 'none');
	d=getObjectName('layer2');
	d.style.display=((cual==2) ? 'block' : 'none');
	d=getObjectName('layer3');
	d.style.display=((cual==3) ? 'block' : 'none');
	d=getObjectName('layer4');
	d.style.display=((cual==4) ? 'block' : 'none');
	d=getObjectName('layer5');
	d.style.display=((cual==5) ? 'block' : 'none');
	d=getObjectName('layer6');
	d.style.display=((cual==6) ? 'block' : 'none');
	d=getObjectName('layer7');
	d.style.display=((cual==7) ? 'block' : 'none');
	d=getObjectName('layer8');
	d.style.display=((cual==8) ? 'block' : 'none');
	d=getObjectName('layer9');
	d.style.display=((cual==9) ? 'block' : 'none');
	d=getObjectName('layer10');
	d.style.display=((cual==10) ? 'block' : 'none');
	d=getObjectName('layer11');
	d.style.display=((cual==11) ? 'block' : 'none');
	d=getObjectName('layer12');
	d.style.display=((cual==12) ? 'block' : 'none');
}


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}



/* Popups */
function AbrirPopUp (iNumero,sector) {

	var sNombre = '';
	var sScroll = 'no';
	var sWidth = '556';
	var sHeight= '450';
	switch (iNumero) {
		case 1:
			sNombre = 'm_bolsitoportatil.html';
			sWidth = '536';
			sHeight= '500';
			sScroll = 'yes';
			break;
		case 2:
			sNombre = 'm_bolsitoclasico.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 3:
			sNombre = 'm_bolsoclasico.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 4:
			sNombre = 'b_mantaalgodon.html';
			sWidth = '411';
			sScroll = 'yes';
			break;
		case 5:
			sNombre = 'm_babita.html';
			sWidth = '411';
			sScroll = 'yes';
			break;
		case 6:
			sNombre = 'b_mantaporteenfant.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 7:
			sNombre = 'm_cambiadorfuncional.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 8:
			sNombre = 'm_portapanal.html';
			sWidth = '411';
			sScroll = 'yes';
			break;
		case 9:
			sNombre = 'b_sabanapintadas.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 10:
			sNombre = 'b_sabanadulcesuenos.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 11:
			sNombre = 'b_manta_polar.html';
			sScroll = 'yes';
			sWidth = '536';
			break;
		case 12:
			sNombre = 'b_toallitas.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 13:
			sNombre = 'b_manta_telar.html';
			sWidth = '394';	
			sHeight= '462';
			sScroll = 'no';
			break;
		case 14:
			sNombre = 'b_toallonytoallitas.html';
			sScroll = 'no';
			sWidth = '513';
			sHeight= '460';
			break;
		case 15:
			sNombre = 'd_marcostela.html';
			sWidth = '516';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 16:
			sNombre = 'a_sonajeros.html';
			sScroll = 'no';
			sWidth = '516';
			sHeight= '475';
			break;
		case 17:
			sNombre = 'a_dormir.html';
			sScroll = 'yes';
			sWidth = '536';
			break;
		case 18:
			sNombre = 'a_musicales.html';
			sScroll = 'no';
			sWidth = '516';
			sHeight= '475';
			break;
		case 19:
			sNombre = 'm_portachupete.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 20:
			sNombre = 'm_cubrecochecito.html';
			sWidth= '411';
			sScroll = 'yes';
			break;
		case 21:
			sNombre = 'b_toallonsapo.html';
			sScroll = 'no';
			sWidth = '396';
			sHeight= '500';
			break;
		case 22:
			sNombre = '1hijo_1.html';
			sScroll = 'no';
			sWidth = '550';
			sHeight= '450';
			break;
		case 23:
			sNombre = '1hijo_2.html';
			sScroll = 'no';
			sWidth = '550';
			sHeight= '450';
			break;
		case 24:
			sNombre = '1hijo_3.html';
			sScroll = 'no';
			sWidth = '550';
			sHeight= '450';
			break;
		case 25:
			sNombre = 'seagrando_1.html';
			sScroll = 'no';
			sWidth = '550';
			sHeight= '450';
			break;
		case 26:
			sNombre = 'seagrando_2.html';
			sScroll = 'no';
			sWidth = '550';
			sHeight= '450';
			break;
		case 27:
			sNombre = 'm_cambiador.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 28:
			sNombre = 'promociones.html';
			sScroll = 'no';
			sWidth = '386';
			sHeight= '340';
			break;
		case 29:
			sNombre = 'seagrando_3.html';
			sScroll = 'no';
			sWidth = '550';
			sHeight= '450';
			break;
		case 30:
			sNombre = 'bano_1.html';
			sScroll = 'no';
			sWidth = '550';
			sHeight= '450';
			break;
		case 31:
			sNombre = 'bano_2.html';
			sScroll = 'no';
			sWidth = '550';
			sHeight= '450';
			break;
		case 32:
			sNombre = 'b_manta_hilo.html';
			sWidth = '394';			
			sHeight= '475';
			sScroll = 'no';
			break;
		case 33:
			sNombre = 'm_babero_pique.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 34:
			sNombre = 'm_babero_comer.html';
			sWidth = '411';
			sScroll = 'yes';
			break;
		case 35:
			sNombre = 'm_bolso_bandolera.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 36:
			sNombre = 'b_ponchitotoalla.html';
			sWidth = '512';
			sHeight= '460';
			sScroll = 'no';
			break;
		case 37:
			sNombre = 'd_acolchado_cuna.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 38:
			sNombre = 'a_aromatizador.html';
			sWidth = '394';
			sHeight= '420';
			sScroll = 'no';
			break;
		case 39:
			sNombre = 'd_perchas.html';
			sWidth = '516';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 40:
			sNombre = 'a_colgantes.html';
			sScroll = 'no';
			sWidth = '516';
			sHeight= '475';
			break;
		case 41:
			sNombre = 'm_portacosmeticos.html';
			sWidth = '516';
			sHeight= '475'
			break;
		case 42:
			sNombre = 'd_cuadros.html';
			sWidth = '516';
			sHeight= '470';
			sScroll = 'no';
			break;
		case 43:
			sNombre = 'd_sillitas.html';
			sScroll = 'no';
			sWidth = '430';
			sHeight= '415';
			break;
		case 44:
			sNombre = 'a_redes.html';
			sWidth = '394';
			sHeight= '455';
			sScroll = 'no';
			break;
		case 45:
			sNombre = 'm_mochila_portabebe.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 46:
			sNombre = 'd_acolchado_moises.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 47:
			sNombre = 'd_acolchado_cama.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 48:
			sNombre = 'm_babero_algodon.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 49:
			sNombre = 'm_babero_personalizado.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 50:
			sNombre = 'm_amamantar.html';
			sWidth = '411';
			sScroll = 'yes';
			break;
		case 51:
			sNombre = 'm_babita_algodon.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 52:
			sNombre = 'd_mesasysillas.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 53:
			sNombre = 'd_mecedoras.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 54:
			sNombre = 'd_tocador.html';
			sWidth = '411';
			sScroll = 'yes';
			break;
		case 55:
			sNombre = 'd_jugueteros.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 56:
			sNombre = 'd_escaleritas.html';
			sWidth = '516';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 57:
			sNombre = 'd_mesasdeluz.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 58:
			sNombre = 'd_repisas.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 59:
			sNombre = 'd_medidor.html';
			sWidth = '516';
			sHeight= '480';
			sScroll = 'no';
			break;
		case 60:
			sNombre = 'd_almohadon_bordado.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 61:
			sNombre = 'd_almohadon_patchwork.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 62:
			sNombre = 'd_almohadon_apliques.html';
			sWidth = '516';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 63:
			sNombre = 'd_perchas_tela.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 64:
			sNombre = 'm_mantapiso.html';
			sWidth = '516';
			sHeight= '470';
			sScroll = 'no';
			break;
		case 65:
			sNombre = 'a_manoplas.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 66:
			sNombre = 'a_productos.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
		case 67:
			sNombre = 'm_mochila.html';
			sWidth = '536';
			sScroll = 'yes';
			break;
		case 68:
			sNombre = 'd_almohadon_elefante.html';
			sWidth = '394';
			sHeight= '475';
			sScroll = 'no';
			break;
}
window.open (sNombre, 'ventana', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=' + sScroll + ',width=' + sWidth + ',height=' + sHeight + ',left=' + (screen.availWidth - sWidth) / 2 + ',top=' + (screen.availHeight - sHeight) / 2 + '');
}
