function gup(name)
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
  return results[1];
}
function escribirProductos(page)
{
	switch(page)
	{
		case '1':
			escribirPagina1(); break;
		case '2':
			escribirPagina2(); break;
		case '3':
			escribirPagina3(); break;
		case '4':
			escribirPagina4(); break;
		case 'informacion':
			escribirPaginaInformacion(); break;
	}
}
function escribirPagina1()
{
	var imagenes = new Array(4);
		imagenes[0] = "imagenes/aniquilador.gif";
		imagenes[1] = "imagenes/desengrasante-naranja.gif";
		imagenes[2] = "imagenes/multiusos-germicida.gif";
		imagenes[3] = "imagenes/quat-256.gif";
	var nombres = new Array(4);
		nombres[0] = "ANIQUILADOR";
		nombres[1] = "DESENGRASANTE NARANJA";
		nombres[2] = "MULTI-USOS GERMICIDA";
		nombres[3] = "QUAT 256";
	var links = new Array(4);
		links[0] = "../informacion/aniquilador.jpg";
		links[1] = "../informacion/desengrasante-naranja.jpg";
		links[2] = "../informacion/multiusos-germicida.jpg";
		links[3] = "../informacion/quat-256.jpg";
	var descripciones = new Array(4);
		descripciones[0] = "Degrada materia orgánica, elimina problemas de mal olor causados por alimentos, animales, orina, lama, vómitos etc.";
		descripciones[1] = "Poderoso limpiador, elimina grasa y manchas de aceite, tinta, café, sangre, etc.";
		descripciones[2] = "Desinfectante que lama y malos olores, además limpia y desinfecta y deja un agradable olor.";
		descripciones[3] = "Desinfectante que elimina virus y bacterias, desinfecta y sanitiza.";
	var table = '<table>';
	table += '<tr>';
	table += '<td colspan="4" class="tituloListaProductos">';
	table += 'Lista de productos Biottrem';
	table += '</td>';
	table += '</tr>';
	for(i=0;i<imagenes.length;i++)
	{
		table += '<tr>';
		table += '<td class="imagenProductos">';
		table += '<img src="'+imagenes[i]+'" width="50">';
		table += '</td>';
		table += '<td class="nombreProducto">';
		table += nombres[i];
		table += '</td>';
		table += '<td class="descripcionProducto">';
		table += descripciones[i];
		table += '</td>';
		table += '<td class="informacionProducto">';
		table += '<a href="'+links[i]+'"><img src="../imagenes/informacion.png" width="20"></a>';
		table += '</td>';
		table += '</tr>';
	}
	table += '<tr>';
	table += '<td colspan="2" class="movimientoProductosAnterior">';
	table += 'anterior</td>';
	//table += '</td>':
	table += '<td colspan ="2" class="movimientoProductosSiguiente">';
	table += '<a href="index.html?page=2">siguiente</a>';
	table += '</td>';
	table += '</tr>';
	table += '</table>';
	document.getElementById('contenido').innerHTML+=table;
}
function escribirPagina2()
{
	var imagenes = new Array(4);
		imagenes[0] ="imagenes/sarricida-menta.gif";
		imagenes[1] ="imagenes/abrillantador-para-pisos.gif";
		imagenes[2] ="imagenes/aromatizante-durazno.gif";
		imagenes[3] ="imagenes/jabon-neutro.gif";
	var nombres = new Array(4);
		nombres[0] = "SARRICIDA MENTA";
		nombres[1] = "ABRILLANTADOR PARA PISOS";
		nombres[2] = "AROMATIZANTE DURAZNO";
		nombres[3] = "JABON NEUTRO";
	var links = new Array(4);
		links[0] = "../informacion/sarricida-menta.jpg";
		links[1] = "../informacion/abrillantador-para-pisos.jpg";
		links[2] = "../informacion/aromatizante-durazno.jpg";
		links[3] = "../informacion/jabon-neutro.jpg";
	var descripciones = new Array(4);
		descripciones[0] = "Desincrustante, remueve, sarro, jabón y moho.";
		descripciones[1] = "Cuidado de pisos, Elimina rayones y marcas, abrillanta el piso y le da una apariencia de mojado.";
		descripciones[2] = "Elimina malos olores, dejando un agradable olor a durazno.";
		descripciones[3] = "Formula profesional, elimina grasa, aceite y mugre,  diferentes aromas.";
	var table = '<table>';
	table += '<tr>';
	table += '<td colspan="4" class="tituloListaProductos">';
	table += 'Lista de productos Biottrem';
	table += '</td>';
	table += '</tr>';
	for(i=0;i<imagenes.length;i++)
	{
		table += '<tr>';
		table += '<td class="imagenProductos">';
		table += '<img src="'+imagenes[i]+'" width="50">';
		table += '</td>';
		table += '<td class="nombreProducto">';
		table += nombres[i];
		table += '</td>';
		table += '<td class="descripcionProducto">';
		table += descripciones[i];
		table += '</td>';
		table += '<td class="informacionProducto">';
		table += '<a href="'+links[i]+'"><img src="../imagenes/informacion.png" width="20"></a>';
		table += '</td>';
		table += '</tr>';
	}
	table += '<tr>';
	table += '<td colspan="2" class="movimientoProductosAnterior">';
	table += '<a href="index.html?page=1">anterior</a></td>'
	//table += '</td>':
	table += '<td colspan ="2" class="movimientoProductosSiguiente">';
	table += '<a href="index.html?page=3">siguiente</a>';
	table += '</td>';
	table += '</tr>';
	table += '</table>';
	document.getElementById('contenido').innerHTML+=table;
}
function escribirPagina3()
{
	var imagenes = new Array(4);
		imagenes[0] = "imagenes/jabon-para-manos-coco.gif";
		imagenes[1] = "imagenes/liquido-limpia-vidrios.gif";
		imagenes[2] = "imagenes/multiusos-407.gif";
		imagenes[3] = "imagenes/liquido-para-tratado.gif";
	var nombres = new Array(4);
		nombres[0] = "JABON PARA MANO OLOR COCO";
		nombres[1] = "LIQUIDO LIMPIA VIDRIOS";
		nombres[2] = "MULTI-USOS 407";
		nombres[3] = "LIQUIDO PARA TRATADO";
	var links = new Array(4);
		links[0] = "../informacion/jabon-para-manos-color.jpg";
		links[1] = "../informacion/liquido-limpia-vidrios.jpg";
		links[2] = "../informacion/multiusos-407.jpg";
		links[3] = "../informacion/liquido-para-tratado.jpg";
	var descripciones = new Array(4);
		descripciones[0] = "Elimina las manchas de suciedad en las manas dejándolas con una agradable sensación.";
		descripciones[1] = "Elimina grasa, mugre y tierra.";
		descripciones[2] = "Elimina grasa, aceite y mugre";
		descripciones[3] = "Elimina el polvo sobre pisos.";
	var table = '<table>';
	table += '<tr>';
	table += '<td colspan="4" class="tituloListaProductos">';
	table += 'Lista de productos Biottrem';
	table += '</td>';
	table += '</tr>';
	for(i=0;i<imagenes.length;i++)
	{
		table += '<tr>';
		table += '<td class="imagenProductos">';
		table += '<img src="'+imagenes[i]+'" width="50">';
		table += '</td>';
		table += '<td class="nombreProducto">';
		table += nombres[i];
		table += '</td>';
		table += '<td class="descripcionProducto">';
		table += descripciones[i];
		table += '</td>';
		table += '<td class="informacionProducto">';
		table += '<a href="'+links[i]+'"><img src="../imagenes/informacion.png" width="20"></a>';
		table += '</td>';
		table += '</tr>';
	}
	table += '<tr>';
	table += '<td colspan="2" class="movimientoProductosAnterior">';
	table += '<a href="index.html?page=2">anterior</a></td>'
	//table += '</td>':
	table += '<td colspan ="2" class="movimientoProductosSiguiente">';
	table += '<a href="index.html?page=4">siguiente</a>';
	table += '</td>';
	table += '</tr>';
	table += '</table>';
	document.getElementById('contenido').innerHTML+=table;
}
function escribirPagina4()
{
	var imagenes = new Array(1);
		imagenes[0] = "imagenes/jabon-para-manos-quirurjico.gif";
	var nombres = new Array(1);
		nombres[0] = "JABON PARA MANOS QUIRURJICO";
	var links = new Array(1);
		links[0] = "../informacion/jabon-para-manos-quirurjico.jpg";
	var descripciones = new Array(1);
		descripciones[0] = "Elimina microorganismos adheridos a la piel, desinfectando las áreas aplicadas.";
	var table = '<table>';
	table += '<tr>';
	table += '<td colspan="4" class="tituloListaProductos">';
	table += 'Lista de productos Biottrem';
	table += '</td>';
	table += '</tr>';
	for(i=0;i<imagenes.length;i++)
	{
		table += '<tr>';
		table += '<td class="imagenProductos">';
		table += '<img src="'+imagenes[i]+'" width="50">';
		table += '</td>';
		table += '<td class="nombreProducto">';
		table += nombres[i];
		table += '</td>';
		table += '<td class="descripcionProducto">';
		table += descripciones[i];
		table += '</td>';
		table += '<td class="informacionProducto">';
		table += '<a href="'+links[i]+'"><img src="../imagenes/informacion.png" width="20"></a>';
		table += '</td>';
		table += '</tr>';
	}
	table += '<tr>';
	table += '<td colspan="2" class="movimientoProductosAnterior">';
	table += '<a href="index.html?page=3">anterior</a></td>'
	//table += '</td>':
	table += '<td colspan ="2" class="movimientoProductosSiguiente">';
	table += 'siguiente';
	table += '</td>';
	table += '</tr>';
	table += '</table>';
	document.getElementById('contenido').innerHTML+=table;
}
function escribirPaginaInformacion()
{
	var nombres = new Array(17);
		nombres[0] ="Aniquilador";
		nombres[1] ="Desengrasante naranja";
		nombres[2] ="Multiusos germicida";
		nombres[3] ="Quat 256";
		nombres[4] ="Sarricida menta";
		nombres[5] ="Abrillantador para pisos";
		nombres[6] ="Aromatizante durazno";
		nombres[7] ="Jabon neutro";
		nombres[8] ="Jabon para manos (coco)";
		nombres[9] ="Liquido limpia vidrios";
		nombres[10] ="Multiusos 407";
		nombres[11] ="Liquido para tratado";
		nombres[12] ="Liquido para manos quirurjico";
		nombres[13] ="Provinil";
		nombres[14] ="Cera 25";
		nombres[15] ="Shampoo para alfombras";
		nombres[16] ="";
	var seguridad = new Array(10);
		seguridad[0] = "";
		seguridad[1] = "../seguridad/desengrasante-naranja.pdf";
		seguridad[2] = "../seguridad/multi-usos-germicida.pdf";
		seguridad[3] = "";
		seguridad[4] = "../seguridad/sarricida-menta.pdf";
		seguridad[5] = ""
		seguridad[6] = "";
		seguridad[7] = "";
		seguridad[8] = "";
		seguridad[9] = "";
		seguridad[10] = "../seguridad/multi-usos-407.pdf";
		seguridad[11] = "";
		seguridad[12] = "";
		seguridad[13] = "";
		seguridad[14] = "";
		seguridad[15] = "";
		seguridad[16] = "";
	var apoyo = new Array(10);
		apoyo[0] ="../informacion/aniquilador.jpg";
		apoyo[1] ="../informacion/desengrasante-naranja.jpg";
		apoyo[2] ="../informacion/multiusos-germicida.jpg";
		apoyo[3] ="../informacion/quat-256.jpg";
		apoyo[4] ="../informacion/sarricida-menta.jpg";
		apoyo[5] ="../informacion/abrillantador-para-pisos.jpg";
		apoyo[6] ="../informacion/aromatizante-durazno.jpg";
		apoyo[7] ="../informacion/jabon-neutro.jpg";
		apoyo[8] ="../informacion/jabon-para-manos-coco.jpg";
		apoyo[9] ="../informacion/liquido-limpia-vidrios.jpg";
		apoyo[10] ="../informacion/multiusos-407.jpg";
		apoyo[11] ="../informacion/liquido-para-tratado.jpg";
		apoyo[12] ="../informacion/jabon-para-manos-quirurjico.jpg";
		apoyo[13] ="";
		apoyo[14] ="";
		apoyo[15] ="";
		apoyo[16] ="";
	var concentrado = new Array(10);
		concentrado[0]="";
		concentrado[1]="../concentrados/desengrasante-naranja.doc";
		concentrado[2]="../concentrados/multi-usus-germicida.doc";
		concentrado[3]="../concentrados/quat-256.doc";
		concentrado[4]="../concentrados/sarricida-menta.doc";
		concentrado[5]="";
		concentrado[6]="";
		concentrado[7]="";
		concentrado[8]="";
		concentrado[9]="../concentrados/limpia-vidrios.jpg";
		concentrado[10]="../concentrados/multi-usos-407.jpg";
		concentrado[11]="";
		concentrado[12]="../concentrados/jabon-para-manos-quirirjucio.jpg";
		concentrado[13]="../concentrados/provinil.doc";
		concentrado[14]="../concentrados/cera-25.jpg";
		concentrado[15]="../concentrados/shampoo-alfombras.jpg";
		concentrado[16]="";
	var descripciones = new Array(10);
		descripciones[0] ="DESCRIPCION";
		descripciones[1] ="DESCRIPCION";
		descripciones[2] ="DESCRIPCION";
		descripciones[3] ="DESCRIPCION";
		descripciones[4] ="DESCRIPCION";
		descripciones[5] ="DESCRIPCION";
		descripciones[6] ="DESCRIPCION";
		descripciones[7] ="DESCRIPCION";
		descripciones[8] ="DESCRIPCION";
		descripciones[9] ="DESCRIPCION";
		descripciones[10] ="DESCRIPCION";
		descripciones[11] ="DESCRIPCION";
		descripciones[12] ="DESCRIPCION";
		descripciones[13] ="DESCRIPCION";
		descripciones[14] ="DESCRIPCION";
		descripciones[15] ="DESCRIPCION";
		descripciones[16] ="";
	var texto ="";
	texto += '<h1>Hojas de seguridad, instructivos y otros documentos</h1>';
	texto += '<table>';
	texto += '<tr>';
	texto += '<td colspan ="5" class="tituloListaProductos">';
	texto += 'Lista de productos y documentación';
	texto += '</td>';
	texto += '</tr>';
	texto += '<tr>';
	texto += '<td class="e-info-nombre">Nombre del producto</td>';
	texto += '<td class="e-info-descripcion">Descripción</td>';
	texto += '<td class="e-info-seguridad">Hoja de seguridad</td>';
	texto += '<td class="e-info-apoyo">Hoja de apoyo</td>';
	texto += '<td class="e-info-concentrado">Concentrado de información</td>';	
	texto += '</tr>';
	for(i=0;i<nombres.length;i++)
	{
		texto += '<tr onMouseOver="this.className=\'rowHover\'" onMouseOut="this.className=\'rowNormal\'" class="rowNormal">';
		texto += '<td class="infoNombreProducto">'; texto += nombres[i]; texto += '</td>';
		texto += '<td class="infoDescripcion">'; texto += descripciones[i]; texto += '</td>';
		if(seguridad[i].length > 0)
		{
			texto += '<td class="infoLink">'; texto += '<a href="'+seguridad[i]+'"><img src="../imagenes/informacion.png" height = "10"> DESCARGAR</a>'; texto += '</td>';
		}
		else
		{
			texto += '<td></td>';
		}
		if(apoyo[i].length > 0)
		{
			texto += '<td class="infoLink">'; texto += '<a href="'+apoyo[i]+'"><img src="../imagenes/informacion.png" height = "10"> DESCARGAR</a>'; texto += '</td>';
		}
		else
		{
			texto += '<td></td>';
		}
		if(concentrado[i].length > 0)
		{
			texto += '<td class="infoLink">'; texto += '<a href="'+concentrado[i]+'"><img src="../imagenes/informacion.png" height = "10"> DESCARGAR</a>'; texto += '</td>';
		}
		else
		{
			texto += '<td></td>';
		}
		texto += '</tr>';
	}
	texto += '</table>';
	document.getElementById('contenido').innerHTML=texto;
}
function efectoContenido()
{
	$('#contenido').fadeOut('fast');
	$('#contenido').fadeIn('slow');
}



