  
var MENU_ITEMS_XP = [
	[wrap_root('Home'), '/content/es_index.php', {'tt' : 'Home', 'bw' : 185},
	  [wrap_child('Home'), '/content/es_index.php', null],
	  [wrap_child('Sobre Nosotros'), '/content/es_about.php', null],
	  [wrap_child('Contactenos', 'email.gif'), '/content/contact.php?lang=es', null],
	  [wrap_child('Garantia Limitada'), '/content/warranty.php', {'bw' : 120}],
	],	 
	[wrap_root('Productos'), '/content/products.php?lang=es', {'sw' : 160, 'bw' : 160},
	  [wrap_child('Mirar Productos'), '/content/products.php?lang=es', {'bw' : 160}],
	  [wrap_child('Buscar Productos', 'search.gif'), '/content/search.php?lang=es',  {'bw' : 160}],	
	],
	[wrap_root('Noticias y Especiales'), '/content/specials/?lang=es', {'sw' : 160,'bw' : 160}],
	[wrap_root('Cotizaciones'), '/content/cart.php?lang=es', {'bw' : 140},
       [wrap_child('Mirar Cotizaciones'), '/content/cart.php?lang=es', null],
	   [wrap_child('Mandar Cotizacion', 'email.gif'), '/content/cart.php?mode=showform&lang=es', null],
	],
	[wrap_root('Contactenos'), '/content/contact.php?lang=es', {'bw' : 140},
	   [wrap_child('Contact Form'), '/content/contact.php?lang=es', null],
	   [wrap_child('Customer Survey'), '/content/survey.php?lang=es', null],
	]
]; 


var ii5 = new Image(); ii5.src   = '/content/styles/tigra/icons/email.gif';
var ii11 = new Image(); ii11.src = '/content/styles/tigra/icons/search.gif';

function wrap_parent (text,icon) {  
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#EFEDDE><img height=16 src=/content/styles/tigra/icons/', icon !=null ? icon: 'pixel.gif width=16 border=0', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=a0>&nbsp; ', text, '</td></tr></table></td><td><img src=/content/styles/tigra/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=/content/styles/tigra/icons/', icon !=null ?  icon: 'pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=/content/styles/tigra/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=/content/styles/tigra/icons/', icon !=null ?  icon: 'pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=/content/styles/tigra/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_child (text,icon) {
  //alert('('+ text + ')\n(' + icon + ')');
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#EFEDDE><img height=16 src=/content/styles/tigra/icons/', icon !=null ? icon: 'pixel.gif width=15"', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=/content/styles/tigra/icons/', icon !=null ? icon: 'pixel.gif width=16', ' hspace=3></td><td width=99% class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=/content/styles/tigra/icons/', icon !=null ? icon: 'pixel.gif width=16', ' hspace=3></td><td width=99% class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_root (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=root_menu align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}
