	function File(href,name,type) {
  this.imageLinkOpen = 'no se usa';
  // imagen para el 2o nivel
  if (type=='raiz')
//  	this.imageLinkClose = '<img src="transp.gif" border="0" width="14">';
  	this.imageLinkClose = '<img src="transp.gif" border="0" width="3">';
  else
//  	this.imageLinkClose = '<img src="transp.gif" border="0" width="14" height="19">';
  	this.imageLinkClose = '<img src="transp.gif" border="0" width="14" height="19">';
  this.textLink = '<a href="' + href + '" class="external2">' + name + '</a>';
}

function add(obj) {
  this.Contents[this.index++] = obj;
}

function Menu(ref,name,open,directa) {
  var href = 'javascript:openMenu(' + ref + ')';
//  var image = '<img src="menu.gif" align="absbottom" border="0" width="20" height="21">';
  var imageopen = '<img src="true.gif" align="absbottom" border="0">';
  var imageclose = '<img src="false.gif" align="absbottom" border="0">';
  
  if (directa)
	  this.textLink = '<a href="' + ref + '" class="external2">' + name + '</a>';
  else
	  this.textLink = '<a href="' + href + '" class="external2">' + name + '</a>';

//  this.imageLink = '<a href="' + href + '">' + image + '</a>';
  this.imageLinkOpen = '<a href="' + href + '">' + imageopen + '</a>';
  this.imageLinkClose = '<a href="' + href + '">' + imageclose + '</a>';

  this.ref  = ref;
  this.open = open;
  this.add = add;
  this.index = 0;
  this.Contents = new Object();
}

function show(obj, level, last) {

	if (level == 0)
		var output = '<table width="100%" align="left">';
	else 
		if (obj.open) {
			var output =
				'<tr align="left" bgcolor="' + colorbg + '"><td width="300" height="22" valign="middle" class="menulink" background="../images/f_menu.jpg"><nobr>' + obj.imageLinkOpen + '' + obj.textLink;
		}
		else 
			if (level == 1) {
				var output =
					'<tr align="left" bgcolor="' + colorbg + '"><td width="300" height="22" valign="middle" class="menulink" background="../images/f_menu.jpg"><nobr>' + obj.imageLinkClose + '' + obj.textLink;
			}
			else
				if (last)
					var output =
						'<br><nobr>' + obj.imageLinkClose + '' + obj.textLink  + '<br><img src="transp.gif" border="0" width="0" height="4">';
				else
					var output =
						'<br><nobr>' + obj.imageLinkClose+ '' + obj.textLink ;

	if (obj.open)
	for (var i=0; i<obj.index; i++) {
		if ((i+1) == obj.index)
			ultimo = true;
		else
			ultimo = false;

		output += show(obj.Contents[i], level+1, ultimo);
	}
	
/*
Cuatro colores a usar
0A6EAB
0C7AB6
064C8B
022F71

#70AE97
#12481F

13542C
01732E

504C4C
737373

*/

/*
	if (colorbg == '#13542C' && level == 1)
		colorbg = '#01732E';
	else 
		if (colorbg == '#01732E' && level == 1)
			colorbg = '#13542C';
		else 
			if (colorbg == '#13542C' && level == 1)
				colorbg = '#13542C';
			else 
				if (colorbg == '#13542C' && level == 1)
					colorbg = '#13542C';
*/

	if (level == 0)
		return output + '</table>';
	else 
		if (level == 1)
			return output + '</nobr></td></tr>';
		else
			return output + '</nobr>';
	
}

function openMenu(obj) {
  obj.open = !obj.open;
  colorbg = '#13542C';
  updateMenu();
}