/*******************************************************************

Script que pinta el menú izquierdo del área de clientes
en el layer definido en el html para tal fin

by Alf 20/08/2004


**************************************************************/

function PintaMenu(selected)
{
/* selected = Opción del menú que está seleccionada */

	/* Para acumular lo que se quiere escribir */
	var c='';

	/* Versiones */
	var vOriGn='v4.7 r1.1';
	var vInGnio='v5.1 r2.3';
	var vGntil='v3.7 r7.3';

	/* Maximo opciones */
	var mOpc=12;

	/* Para el fondo a escribir en cada caso */
	var fondos = new Array();

	/* Hay que iluminar la opción seleccionada */
	for(i=1; i<=mOpc; i++)
	{
		if ( i == selected)
		{
			fondos[i] = 'selected';
		}
		else
		{
			fondos[i] = 'blank';
		}
	}

	/* Lo que hay que escribir */
	c = '<table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" >';
	c += '<tr>';
	c += '<td  VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[1]+ '.gif">&nbsp;<a href="home.htm" class="menus" onmouseover="this.style.fontWeight=\'bold\';" ';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color="white">Introducción</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[2]+ '2.gif">&nbsp;<a href="../online/index.htm" class="menus" onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';" target="_top"><font color="white">Soporte Remoto</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[12]+ '.gif">&nbsp;<a href="../online/email.htm" target="_top" class="menus" onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';" target="_top"><font color="white">Consulta por email</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="blank2.gif">&nbsp;<font color="darkgreen"><B>OriGn</B></font></b></td>';
	c += '</tr>';
	//c += '<tr>';
	//c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[3]+ '2.gif">&nbsp;<a href="orignnovedades.htm" class="menus" onmouseover="this.style.fontWeight=\'bold\';"';
	//c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Novedades</font></b></a></td>';
	//c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[4]+ '2.gif">&nbsp;<a href="orign.htm" class="menus"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Descargar ' + vOriGn + '</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[5]+ '.gif">&nbsp;<a href="orignmanuales.htm" class="menus"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Manuales on-line</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="blank2.gif">&nbsp;<font color="darkblue"><b>InGnio</B></font></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[6]+ '2.gif">&nbsp;<a href="ingnionovedades.htm" class="menus"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Novedades</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[7]+ '2.gif">&nbsp;<a href="ingnio01.htm" class="menus"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Descargar '+ vInGnio + '</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="blank2.gif">&nbsp;<a href="../ingnio/index_modulos.htm" class="menus" target="_top"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Módulos adicionales</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[8]+ '.gif">&nbsp;<a href="ingniomanuales.htm" class="menus"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Manuales on-line</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="blank2.gif">&nbsp;<font color="darkred"><b>Gntil</B></font></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[10]+ '2.gif">&nbsp;<a href="gntil.htm" class="menus"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Descargar '+ vGntil + '</font></a></td>';
	c += '</tr>';
	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[11]+ '.gif">&nbsp;<a href="gntilmanuales.htm" class="menus"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color=white>&nbsp;Manuales on-line</font></a></td>';
	c += '</tr>';	c += '<tr>';
	c += '<td VALIGN=CENTER HEIGHT="18" BACKGROUND="' + fondos[9]+ '.gif">&nbsp;<a href="utilidades.htm" class="menus"  onmouseover="this.style.fontWeight=\'bold\';"';
	c += 'onmouseout="this.style.fontWeight=\'normal\';"><font color="white">Utilidades</font></a></td>';
	c += '</tr>';

	c += '</table>';

	/* Y finalmente pintamos el menú */

	/* Internet Explorer */
	if(document.all)
	{
		document.all['layerMenu'].innerHTML=c;
	}
	/* Netscape v4*/
	else  if(document.layers)
	{
		document.layers['layerMenu'].document.write(c);
	}
	/* Netscape v6 */
	else if(document.getElementById)
	{
		document.getElementById('layerMenu').innerHTML=c;
	}

}


