opciones = new Array();
opciones[0] = new Object();
opciones[0].nombre = "presentacion"
opciones[0].src = "presentacion.htm"
opciones[1] = new Object();
opciones[1].nombre = "catalogo"
opciones[1].src = "catalogo.asp"
opciones[2] = new Object();
opciones[2].nombre = "comercial"
opciones[2].src = "infocomercial.htm"
opciones[3] = new Object();
opciones[3].nombre = "contacto"
opciones[3].src = "contacto.htm"

function getMenu(){

	menu = ""
	
	menu += '<td>'
		+ '<table border=0 cellpadding=0 cellspacing=0>'
//		+ '<tr>'
//		+ '<td colspan=3><a href="default.htm"><img src="images/lg_editrama.gif" alt="" width="194" height="44" border="0"></a></td>'
//		+ '</tr>'
//		+ '<tr>'
//		+ '<td><img src="images/pix_trans.gif" border=0 width=1 height=58></td>'
//		+ '</tr>'
		+ '<tr>'
		
		for(i=0;i<opciones.length;i++)
		{
			if((opActiva)&&(opActiva==opciones[i].nombre))
			{
				menu += '<td><a href="'+opciones[i].src+'"><img src="images/bt_'+opciones[i].nombre+'_on.gif" alt="" name="'+opciones[i].nombre+'" width="123" height="24" border="0"></a></td>'
					+ '<td><img src="images/pix_trans.gif" border=0 width=1 height=1></td>'
			}else{
				menu += '<td><a href="'+opciones[i].src+'" onMouseOver="cambia(\''+opciones[i].nombre+'\',\'on\')" onMouseOut="cambia(\''+opciones[i].nombre+'\',\'off\')"><img src="images/bt_'+opciones[i].nombre+'_off.gif" alt="" name="'+opciones[i].nombre+'" width="123" height="24" border="0"></a></td>'
					+ '<td><img src="images/pix_trans.gif" border=0 width=1 height=1></td>'
			}
		}
			menu += '<td><img src="images/pix_trans.gif" border=0 width=2 height=1></td>'
				+ '<td width=100% background="images/back_menu.jpg"><img src="images/pix_trans.gif" border=0 width=1 height=1></td>'
		if(inicio){
			menu += '<td><a href="default.htm" onMouseOver="cambia(\'inicio\',\'on\')" onMouseOut="cambia(\'inicio\',\'off\')"><img src="images/bt_inicio_off.gif" alt="" name="inicio" id="inicio" width="46" height="24" border="0"></a></td>'
		}
		menu += '</tr>'
		+ '</table>'
	+ '</td>'
	
	return menu;
}

function cambia(opc,stat,urlimg){
	if(urlimg){
		document.images[opc].src = "images/bt_" + urlimg + "_" + stat + ".gif";
	}else{
		document.images[opc].src = "images/bt_" + opc + "_" + stat + ".gif";
	}
}


var coleArray = new Array('7','10','8','9','6','1','2','3','4','5');

function getColecciones()
{
	colecciones = '<table border=0 cellpadding=0 cellspacing=0>'
		+ '<tr>'
			+ '<td><img src="images/tt_colecciones.gif" alt="" width="194" height="46" border="0"></td>'
		+ '</tr>'
		+ '<tr>'
			+ '<td background="images/back_colecciones.jpg"><img src="images/pix_trans.gif" width="194" height="1"></td>'
		+ '</tr>'
		
		for(j=0;j<coleArray.length;j++)
		{
			colecciones += '<tr>'
			
			if(coleArray[j] <= 6){
				if((coleccion == coleArray[j])&&(coleccion))
				{
					colecciones += '<td><a href="coleccion.asp?Id='+coleArray[j]+'"><img src="images/bt_col'+coleArray[j]+'_on.gif" alt="" width="194" border="0" name="col'+coleArray[j]+'"></a></td>'
				}else{
					colecciones += '<td><a href="coleccion.asp?Id='+coleArray[j]+'" onMouseOver="cambia(\'col'+coleArray[j]+'\',\'on\')" onMouseOut="cambia(\'col'+coleArray[j]+'\',\'off\')"><img src="images/bt_col'+coleArray[j]+'_off.gif" alt="" width="194" border="0" name="col'+coleArray[j]+'"></a></td>'
				}
			}else{
				if(coleArray[j] > 7){
					if((coleccion == coleArray[j])&&(coleccion))
					{
						colecciones += '<td><a href="javascript:alert(\'Esta información estará disponible próximamente \')"><img src="images/bt_col'+coleArray[j]+'_on.gif" alt="" width="194" border="0" name="col'+coleArray[j]+'"></a></td>'
					}else{
						colecciones += '<td><a href="javascript:alert(\'Esta información estará disponible próximamente \')" onMouseOver="cambia(\'col'+coleArray[j]+'\',\'on\')" onMouseOut="cambia(\'col'+coleArray[j]+'\',\'off\')"><img src="images/bt_col'+coleArray[j]+'_off.gif" alt="" width="194" border="0" name="col'+coleArray[j]+'"></a></td>'
					}
				}else{
					if((coleccion == coleArray[j])&&(coleccion))
					{
						colecciones += '<td><a href="coleccion_arq.htm"><img src="images/bt_col'+coleArray[j]+'_on.gif" alt="" width="194" border="0" name="col'+coleArray[j]+'"></a></td>'
					}else{
						colecciones += '<td><a href="coleccion_arq.htm" onMouseOver="cambia(\'col'+coleArray[j]+'\',\'on\')" onMouseOut="cambia(\'col'+coleArray[j]+'\',\'off\')"><img src="images/bt_col'+coleArray[j]+'_off.gif" alt="" width="194" border="0" name="col'+coleArray[j]+'"></a></td>'
					}
				}
			}
		colecciones += '</tr>'
		+ '<tr>'
			+ '<td background="images/back_colecciones.jpg"><img src="images/pix_trans.gif" width="194" height="1"></td>'
		+ '</tr>'
		}
		
		
		colecciones += '</table>'
		
	return colecciones
}
