var now = new Date();
var seed = now.getTime() % 0xffffffff;
var chosenImage=0;

var estilo="background-image:url(../graficos/imagenes/sba";
var estilo2=".jpg);";

function rand(n) {
seed = (0x015a4e35 * seed) % 0x5ff5f2f1;
return (seed >> 16) % n;
}

function cambios(forma)
{
		if ((forma.selec[70].selected)||(forma.selec[72].selected) )
      {window.open(forma.selec.options[forma.selec.selectedIndex].value , '_new' );}                
			else
      {window.open(forma.selec.options[forma.selec.selectedIndex].value , '_self' );}
}

function cambios2(forma)
{
  window.open(forma.selec2.options[forma.selec2.selectedIndex].value , '_self' );
}

function headchico(n)
{
	chosenImage = rand(n);
	document.write("<TR><TD ALIGN='CENTER' VALIGN='TOP'><IMG SRC='../graficos/imagenes/a"+chosenImage+".jpg' height='101' width='750' border='0' alt='Parras' usemap='#home'></TD></TR>");
			document.write ('<map name="home"><area href="../index.html" shape="rect" coords="17, 8, 231, 92"></map>');
}

function headgrande(n)
{
	chosenImage = rand(n);
	document.write("<TR><TD ALIGN='CENTER' VALIGN='TOP'><IMG SRC='../graficos/imagenes/heada"+chosenImage+".jpg' height='200' width='750' border='0' alt='Parras' usemap='#home'></TD></TR>");		
			document.write ('<map name="home"><area href="../index.html" shape="rect" coords="17, 8, 231, 92"></map>');
}

function footer()
{
document.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td><img src="../graficos/imagenes/legales.gif" height="46" width="750" alt="" border="0" usemap="#mapa"></td></tr></table><map name="mapa"><area href="../../index.html" shape="rect" coords="638, 15, 749, 35"></map>');
/*str = "<TR><TD ALIGN='CENTER' VALIGN='TOP'><IMG SRC='../graficos/imagenes/sa"+chosenImage+".jpg' height='71' width='580' border='0' alt='Parras'></TD><td><table width='170' border='0' cellpadding='0' cellspacing='0' background='../graficos/imagenes/sba"+chosenImage+".jpg'><tr><td valign='middle' align='center' width='170' height='71'>";
document.write(str);
combito();
str = "</td></tr></table></td></TR>";
document.write(str);*/
}

function combito()
{
str = "<div><!--FORM><select NAME='selec' OnChange='cambios(this.form)'><option VALUE=''>Seleccione</option>";
str += "<option VALUE=''>Empresa</option>";
str += "<option VALUE='../empresa/mensaje.html'>&nbsp;CIPSA</option>";
str += "<option VALUE='../empresa/mision.html'>&nbsp;&nbsp;&nbsp;Misi&oacute;n</option>";
str += "<option VALUE='../empresa/vision.html'>&nbsp;&nbsp;&nbsp;Visi&oacute;n</option>";
str += "<option VALUE='../empresa/filosofia.html'>&nbsp;&nbsp;&nbsp;Filosof&iacute;a</option>";
str += "<option VALUE='../empresa/labor.html'>&nbsp;&nbsp;&nbsp;Labor Social</option>";
str += "<option VALUE='../empresa/cien.html'>&nbsp;100 A&ntilde;os</option>";
str += "<option VALUE='../empresa/origen.html'>&nbsp;&nbsp;&nbsp;Origen</option>";
str += "<option VALUE='../empresa/evolucion.html'>&nbsp;&nbsp;&nbsp;Evoluci&oacute;n</option>";
str += "<option VALUE='../empresa/actualidad.html'>&nbsp;&nbsp;&nbsp;Actualidad</option>";
str += "<option VALUE='../empresa/graficas.html'>&nbsp;&nbsp;&nbsp;Gr&aacute;ficas</option>";
str += "<option VALUE=''>&nbsp;Mercado</option>";
str += "<option VALUE='../empresa/empresas.html'>&nbsp;&nbsp;&nbsp;Empresa</option>";
str += "<option VALUE='../empresa/medio.html'>&nbsp;Medio Ambiente</option>";
str += "<option VALUE=''><br></option>";
str += "<option VALUE=''>Productos</option>";
str += "<option VALUE='../productos/basicos.html'>&nbsp;B&aacute;sicos</option>";
str += "<option VALUE='../productos/ringspun.html'>&nbsp;Ring Spun</option>";
str += "<option VALUE=''>&nbsp;Streaky</option>";
str += "<option VALUE='../productos/rht6.html'>&nbsp;&nbsp;&nbsp;Textura normal</option>";
str += "<option VALUE='../productos/rht8.html'>&nbsp;&nbsp;&nbsp;Textura prominente</option>";
str += "<option VALUE='../productos/cross.html'>&nbsp;Cross Hatch</option>";
str += "<option VALUE='../productos/stretch.html'>&nbsp;Stretch</option>";
str += "<option VALUE='../productos/colores.html'>&nbsp;Colores</option>";
str += "<option VALUE='../productos/nuevos.html'>&nbsp;Nuevos Desarrollos</option>";
str += "<option VALUE=''><br></option>";
str += "<option VALUE=''>Mezclilla y Moda</option>";
str += "<option VALUE='../mezclilla/sobre.html'>&nbsp;Sobre la Mezclilla</option>";
str += "<option VALUE='../mezclilla/historia.html'>&nbsp;Historia de la Mezclilla</option>";
str += "<option VALUE='../mezclilla/tendencias.html'>&nbsp;Tendencias de moda</option>";
str += "<option VALUE=''><br></option>";
str += "<option VALUE=''>Calidad y Tecnolog&iacute;a</option>";
str += "<option VALUE='../calidad/calidad.html'>&nbsp;Calidad</option>";
str += "<option VALUE='../calidad/servicios.html'>&nbsp;&nbsp;&nbsp;Servicios adicionales</option>";
str += "<option VALUE='../calidad/servicios.html'>&nbsp;&nbsp;&nbsp;a nuestros clientes</option>";
str += "<option VALUE='../calidad/certificaciones.html'>&nbsp;&nbsp;&nbsp;Certificaciones ISO</option>";
str += "<option VALUE=''>&nbsp;Tecnolog&iacute;a</option>";
str += "<option VALUE='../calidad/productos.html'>&nbsp;&nbsp;&nbsp;Productos b&aacute;sicos</option>";
str += "<option VALUE='../calidad/especialidades.html'>&nbsp;&nbsp;&nbsp;Especialidades</option>";
str += "<option VALUE='../calidad/tour.html'>&nbsp;&nbsp;&nbsp;Tour de los procesos</option>";
str += "<option VALUE=''>&nbsp;</option>";
str += "<option VALUE=''>Finanzas</option>";
str += "<option VALUE=''>&nbsp;Reporte Anual</option>";
str += "<option VALUE='../finanzas/resumen.htmll'>&nbsp;&nbsp;&nbsp;Resumen Financiero</option>";
str += "<option VALUE='../finanzas/balance.html'>&nbsp;&nbsp;&nbsp;Balance General</option>";
str += "<option VALUE='../finanzas/resultados.html'>&nbsp;&nbsp;&nbsp;Estado de Resultados</option>";
str += "<option VALUE='../finanzas/informe.html'>&nbsp;&nbsp;&nbsp;Informe Financiero</option>";
str += "<option VALUE=''>&nbsp;Reporte Trimestral</option>";
str += "<option VALUE='../finanzas/tresumen.html'>&nbsp;&nbsp;&nbsp;Resumen Financiero</option>";
str += "<option VALUE='../finanzas/tbalance.html'>&nbsp;&nbsp;&nbsp;Balance General</option>";
str += "<option VALUE='../finanzas/tresultados.html'>&nbsp;&nbsp;&nbsp;Estado de Resultados</option>";
str += "<option VALUE='../finanzas/tinforme.html'>&nbsp;&nbsp;&nbsp;Informe Financiero</option>";
str += "<option VALUE='../finanzas/informe.doc'>&nbsp;Informe de Resultados</option>";
str += "<option VALUE=''>&nbsp;</option>";
str += "<option VALUE=''>Bolsa de Trabajo</option>";
str += "<option VALUE='../bolsa/vacantes.html'>&nbsp;Consulta de vacantes</option>";
str += "<option VALUE='../bolsa/registro.html'>&nbsp;Registro en la</option>";
str += "<option VALUE='../bolsa/registro.html'>&nbsp;Bolsa de Trabajo</option>";
str += "<option VALUE=''>&nbsp;</option>";
str += "<option VALUE=''>Compras</option>";
str += "<option VALUE='../compras/solicitud.html'>&nbsp;Solicitud para</option>";
str += "<option VALUE='../compras/solicitud.html'>&nbsp;ser proveedor</option>";
str += "<option VALUE='../compras/politicas.html'>&nbsp;Pol&iacute;ticas b&aacute;sicas</option>";
str += "<option VALUE='../compras/politicas.html'>&nbsp;de compra</option>";
str += "<option VALUE='../compras/insumos.html'>&nbsp;Nuestros Insumos</option>";
str += "<option VALUE='../compras/mapa.html'>&nbsp;Mapa de cont&aacute;ctos</option>";
str += "<option VALUE=''>&nbsp;</option>";
str += "<option VALUE='../contactos/contactanos.html'>Cont&aacute;ctos</option>";
str += "<option VALUE=''>&nbsp;</option>";
str += "<option VALUE='http://192.20.0.2/portal/portalbienvenida.nsf?OpenDataBase'>Intranet</option>";
str += "<option VALUE=''>&nbsp;</option>";
str += "<option VALUE='http://207.248.128.5:80/portal/portalbienvenida.nsf/pages/FramesetExt?OpenDocument'>Extranet</option></select></FORM--></div>";
document.write(str);
}
