var cpc="",cpp="",lm="",i="",lb="";
var megaarreglo=new Array("cpc","cpp","lb","i"),asubmenu=new Array(),alistasli=new Array();

window.onload=function()
            {
			  /*AGREGA EVENTO ONCLICK EN REPORTES*/
			  try
			  {
			  document.getElementById("reporte_consumo").onclick=function(){window.location="reporte_consumo.html"};
			  document.getElementById("reporte_flujo").onclick=function(){window.location="reporte_flujo.html"};
			  document.getElementById("reporte_kardex").onclick=function(){window.location="reporte_kardex.html"};
			  document.getElementById("reporte_ventas").onclick=function(){window.location="reporte_ventas.html"};
			  }
			catch(exception)
			  {
			  }
			  /*AGREGA EVENTO ONMOUSEOVER Y ONMOUSEOUT*/
			   try
			   {
				  document.getElementById("td_1").onclick/*onmouseover*/=function(){info_c(this.id);this.style.background="transparent";/*"white";*/this.style.border="solid rgb(251,251,251) 0px"; this.style.color="black"/*yellow*/};/*1px*/
				  	document.getElementById("td_1").onmouseout=function(){this.style.background="transparent";this.style.border="solid transparent 0px"; this.style.color="black"};/*1px*/
				   
				  document.getElementById("td_2").onclick/*onmouseover*/=function(){info_c(this.id);this.style.background="white";this.style.border="solid rgb(251,251,251) 0px"; this.style.color="black"};
				  	document.getElementById("td_2").onmouseout=function(){this.style.background="transparent";this.style.border="solid transparent 0px"; this.style.color="black"};
				   
				  document.getElementById("td_3").onclick/*onmouseover*/=function(){info_c(this.id);/*this.style.background="white";*/this.style.border="solid rgb(251,251,251) 0px"; this.style.color="black"};
				  	document.getElementById("td_3").onmouseout=function(){this.style.background="transparent";this.style.border="solid transparent 0px"; this.style.color="black"};
				   
			   }
			catch(exception)
			  {
			  }
			 /*AGREGA EVENTO PARA QUE PUEDA SUBIR AL TOP*/
			  document.getElementById("h3lbj").onclick=function(){window.location="#";};
			/*AGREGA LOS DOS EVENTOS: MOUSEOVER, MOUSEOUT A CADA CATEGORIA*/
			 for(var x=0;x<megaarreglo.length;x++)
			    {
				  var div=document.getElementById(megaarreglo[x]);
				  		div.onmouseover=function(){versubmenu(this.id);};
				  		div.onmouseout=function(){cerrarsub();};
                }
				/*AGREGA LOS TRES EVENTOS A LOS LIST-ITEM DENTRO DE CADA CATEGORIA DE VIDEO*/
				for(var x=0;x<megaarreglo.length;x++)
				  {
				      alistasli[x]=document.getElementById(megaarreglo[x]);
				  }
				 for(var x=0;x<alistasli.length;x++)
				   {
				      //por cada elemento del arreglo ejecuta el getElementByTagName y trae todos sus list-items(li)
				      ali=alistasli[x].getElementsByTagName("li");
				      for(var z=0;z<ali.length;z++)
					    {
						  /*PARA CADA LIST-ITEM[LI] SE LE AGREGA LAS SIGUIENTES FUNCIONES*/
						  //agrega el evento onmouseover para que cambie de color
						  ali[z].onmouseover=function(){this.style.color="rgb(128,128,128)";/*this.style.background="rgb(251,251,251)";*/};//243,243,243
						  //agrega el evento onmouseout para que cambie de color
						  ali[z].onmouseout=function(){this.style.color="black";};/*this.style.background="transparent";*///document.getElementById(this.id)
						  //agrega el evento onclick ejecute la funcion y busque su video
						  ali[z].onclick=function(){videonum(this.id);};
						  /*ali[z].selected.item=function(){this.style.background="purple";};*/
						}
				   }
			};
//pasar los valores del megaarreglo al asubmenu arreglo
/*asubmenu=megaarreglo;*/
/*function versubmenu(id)
{
  var elemento="s"+id,ali=new Array()/*,alistasli=new Array()*/;
  /*document.getElementById(elemento).style.display="block";
  document.getElementById(elemento).style.background="rgb(243,243,243)";//251,251,251
  document.getElementById(id).style.background="rgb(243,243,243)";
		  //cierra todos los submenus abiertos, distintos del seleccionado
		  for(var x=0;x<asubmenu.length;x++)
		    {
			   if(document.getElementById("s"+asubmenu[x]).style.display=="block" & id!=asubmenu[x])
			      document.getElementById("s"+asubmenu[x]).style.display="none";
		    }
}*/
function videonum(id)
{
  var aid=new Array('saju','siai','sact','scbn','stlm','scca','spro','spop','spc','spoco','ssee','soee','spp','scuo','spoci'),
      anombre=new Array('ajustes.html','ingresararticulos.html','activos.html','cuentasbancarias.html','transacciones.html','catalogo.html',
	                    'proveedores.html','procesodepagos.html','procesodecompras.html','procesodecobranza.html','surtir.html','ordenesenespera.html',
						'pedidopendiente.html','crearorden.html','procesodecotizacion.html');

  //busca el nombre del archivo: con el id seleccionado
  for(var x=0;x<aid.length;x++)
   {
      if(id==aid[x])
	    {
		  //alert(anombre[x]);
		  window.location=""+anombre[x];
		}
   }
}
/*function cerrarsub()
{

  for(var x=0;x<asubmenu.length;x++)
   {
     if(document.getElementById("s"+asubmenu[x]).style.display=="block")
	    {
	      document.getElementById("s"+asubmenu[x]).style.display="none";
		  document.getElementById(asubmenu[x]).style.background="transparent";
		}
   }
}*/
function info_c(id)
{
  //funcion para manejar el div de textoinfo1
   var msj='';
   switch(id)
    {                         /*<strong>*/
	   case "td_1":  msj='<p>Baja Logics Saas es una aplicación de software para la administración integral de negocios, ';
					 msj+='especializada para las empresas de Manufactura, Distribución y Logística.<br/><br/>';
                     msj+='Baja Logics Saas ofrece una forma econ&oacute;mica y sencilla de administrar las ';/*</strong>*/
					 msj+='operaciones cr&iacute;ticas de su empresa a trav&eacute;s de las funciones de Ventas, ';
					 msj+='Manufactura, Distribuci&oacute;n y Finanzas, todo en un sistema integrado.<br/></p>';
					 ;break; /*<strong>*/
	   case "td_2":  msj='<p>Baja Logics Saas esta construido con tecnologia Microsoft .Net Framework';
	                 msj+=' y utiliza una arquitectura de Web Services en multiples capas , para las plataformas  de escritorio, web y moviles.<br/><br/>';/*</strong>*/
					 msj+='Los datos son almacenados en Bases de Datos de Microsoft SQL Server 2005 o Microsoft SQL 2005 Express. La versión Express de SQL es gratuita pero tiene restricciones de crecimiento, es una buena opción para iniciar el proyecto sin invertir en licencias de SQL Server. </p>';
	                 ;break;
	   case "td_3":  msj='<p><img src="imagenes/bien4.png" width="15px" height="15px"><strong>Web como plataforma</strong><br/>Cualquier empresa que tenga acceso a un conexión de internet puede administrar y controlar su negocio<br/><br/>';
	                 msj+='<img src="imagenes/bien4.png" width="15px" height="15px"><strong>Inteligencia de Negocios</strong><br/>Basada en Microsoft SQL Analisys Services y Cubos OLAP esta información es presentada en portales adecuados a las necesidades de cada empresa<br/><br/>';
					 msj+='<img src="imagenes/bien4.png" width="15px" height="15px"><strong>No hay necesidad de un Staff de TI</strong><br/>Bajalogics provee todos los servicios necesarios para que la empresa tenga una aplicación eficiente y segura. La empresa se dedica a su negocio y no ha resolver los problemas técnicos de su infraestructura.';
	                 ;break;
    }
   document.getElementById("mnu_cont").innerHTML=msj;
}

/*
   Proyecto De Estadia: 04/08/2009
   			POWERED BY COHS :)
*/
