// TEMPLATE: menu_array.tpl
/*
 Milonic DHTML Website Navigation Menu - Version 3.x
 Written by Andy Woolley - Copyright 2002 (c) Milonic Solutions Limited. All Rights Reserved.
 Please visit http://www.milonic.co.uk/menu or e-mail menu3@milonic.com for more information.
 The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
 Commercial and Corporate licenses  are available for use on all other web sites & Intranets.
 All Copyright notices MUST remain in place at ALL times and, please keep us informed of your
 intentions to use the menu and send us your URL.
*/
((typeof menuTop == "undefined") ? innerMenuTop = 41 : innerMenuTop = menuTop);
((typeof menuLeft == "undefined") ? innerMenuLeft = 152 : innerMenuLeft = menuLeft);
menunum=0;menus=new Array();_d=document;
function addmenu(){
	menunum++;menus[menunum]=menu;
}
function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
effect = ""; //"Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
timegap=500			// The time delay for menus to remain visible
followspeed=5			// Follow Scrolling speed
followrate=40			// Follow Scrolling Rate
suboffset_top=4;		// Sub menu offset Top position
suboffset_left=6;		// Sub menu offset Left position
closeOnClick = true
style1=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"003399",			// Mouse Off Font Color
"E1E1E1",			// Mouse Off Background Color
"E1E1E1",			// Mouse On Font Color
"003399",			// Mouse On Background Color
"FFFFFF",			// Menu Border Color
10,				// Font Size in pixels
"normal",			// Font Style (italic or normal)
"normal",			// Font Weight (bold or normal)
"Arial,Verdana",		// Font Name
2,				// Menu Item Padding
"/images/bullet_menu.gif",			// Sub Menu Image (Leave this blank if not needed)
,				// 3D Border & Separator bar
,				// 3D High Color
,				// 3D Low Color
,				// Current Page Item Font Color (leave this blank to disable)
,				// Current Page Item Background Color (leave this blank to disable)
,				// Top Bar image (Leave this blank to disable)
,				// Menu Header Font Color (Leave blank if headers are not needed)
,				// Menu Header Background Color (Leave blank if headers are not needed)
"FFFFFF",			// Menu Item Separator Color
]
style2=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"003399",			// Mouse Off Font Color
"f6f6f6",			// Mouse Off Background Color
"003399",			// Mouse On Font Color
"E1E1E1",			// Mouse On Background Color
"E1E1E1",				// Menu Border Color
10,				// Font Size in pixels
"normal",			// Font Style (italic or normal)
"normal",			// Font Weight (bold or normal)
"Arial, Verdana",		// Font Name
3,				// Menu Item Padding
"/images/bullet_menu.gif",			// Sub Menu Image (Leave this blank if not needed)
0,				// 3D Border & Separator bar
,				// 3D High Color
,				// 3D Low Color
,				// Current Page Item Font Color (leave this blank to disable)
,				// Current Page Item Background Color (leave this blank to disable)
,				// Top Bar image (Leave this blank to disable)
,				// Menu Header Font Color (Leave blank if headers are not needed)
,				// Menu Header Background Color (Leave blank if headers are not needed)
,			// Menu Item Separator Color
]
addmenu(menu=[			// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
innerMenuTop,			// Menu Top - The Top position of the menu in pixels
innerMenuLeft,			// Menu Left - The Left position of the menu in pixels
120,				// Menu Width - Menus width in pixels
1,				// Menu Border Width
,				// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,				// Properties Array - this is set higher up, as above
1,				// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,				// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,				// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 				// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,				// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,				// Position of TOP sub image left:center:right
,				// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,				// Right To Left - Used in Hebrew for example. (1=on/0=off)
,				// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,				// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,				// Background image for menu when BGColor set to transparent.
,				// Scrollable Menu
,				// Reserved for future use
,"<img src='/images/1x1.gif' border=0 width=9 height=1>Catálogo&nbsp;&nbsp;&nbsp;","show-menu=Menu1",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<img src='/images/1x1.gif' border=0 width=9 height=1>Acceso a Servicios&nbsp;&nbsp;&nbsp;","show-menu=Menu2",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<img src='/images/1x1.gif' border=0 width=9 height=1>Soporte Técnico&nbsp;&nbsp;&nbsp;","show-menu=Menu3",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<img src='/images/1x1.gif' border=0 width=9 height=1>Taric S.A&nbsp;&nbsp;&nbsp;","show-menu=Menu4",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
])
// Menus generados
	addmenu(menu=["Menu1",
	,,150,1,,style2,,"left",,,,,,,,,,,,,
		,"<img src='/images/1x1.gif' border=0 width=8>Legislación",escape("/prodserv/legis/ps_legis.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Arancel de Aduanas",escape("/prodserv/aranadu/ps_aranadu.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Estadísticas",escape("/prodserv/estad/ps_estad.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Gestión Aduanera",escape("/prodserv/gestion/ps_gestion.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Op.Intracomunitarias",escape("/prodserv/opintra/ps_opintra.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Soluciones Integrales",escape("/prodserv/solinteg/ps_solinteg.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Colección Libros",escape("/prodserv/taricedi/ps_taricedi.asp"),,,0
	])
	addmenu(menu=["Menu2",
	,,150,1,,style2,,"left",,,,,,,,,,,,,
		,"<img src='/images/1x1.gif' border=0 width=8>Arancel netTaric",escape("/services/nettaric/netTaricPenIn.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>netTaric Canarias",escape("/services/nettaric/nettariccanin.asp"),,,1
		,"<img src='/images/1x1.gif' border=0 width=8>Demo Arancel netTaric",escape("/services/nettaric/nettaricOpen.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>netTaric Tariff",escape("/services/nettaric/nettaricen.asp"),,,1
		,"<img src='/images/1x1.gif' border=0 width=8>Correlaciones Taric",escape("/services/correl/correltaric.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Correlaciones NC",escape("/services/correl/correlnc.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Correlaciones SA",escape("/services/correl/correlsa.asp"),,,0
		,"<img src='/images/1x1.gif' height=1>","# onfontcolor=f6f6f6;onbackcolor=f6f6f6;offfontcolor=f6f6f6;offbackcolor=f6f6f6;",,,1
		,"<img src='/images/1x1.gif' border=0 width=8>Taric Formaci&oacute;n",escape("/formacion/formacion.asp"),,,0
		,"<img src='/images/1x1.gif' height=1>","# onfontcolor=f6f6f6;onbackcolor=f6f6f6;offfontcolor=f6f6f6;offbackcolor=f6f6f6;",,,1
		,"<img src='/images/1x1.gif' border=0 width=8>Novedades Normativa",escape("/services/novnorm/novnorm.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Cambio Divisas",escape("/services/divisas/divisas.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Glosario",escape("/services/glosario/glosario.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Enlaces",escape("/services/links/links.asp"),,,0
		,"<img src='/images/1x1.gif' height=1>","# onfontcolor=f6f6f6;onbackcolor=f6f6f6;offfontcolor=f6f6f6;offbackcolor=f6f6f6;",,,1
		,"<img src='/images/1x1.gif' border=0 width=8>Consultas técnicas",escape("/services/serv_frm_consulta.asp"),,,0
	])
//		,"<img src='/images/1x1.gif' border=0 width=8>Adelanto de Derechos",escape("/services/introder/introderechos.asp"),,,1
	addmenu(menu=["Menu3",
	,,150,1,,style2,,"left",,,,,,,,,,,,,
		,"<img src='/images/1x1.gif' border=0 width=8>Horarios",escape("/soporte/st_horarios.asp"),,,1
		,"<img src='/images/1x1.gif' border=0 width=8>dbTaric",escape("/soporte/dbtaric/st_dbtaric.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>duaTaric",escape("/soporte/duataric/st_duataric.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>iTrans",escape("/soporte/itrans/st_itrans.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>depTaric",escape("/soporte/deptaric/st_deptaric.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>inTrast",escape("/soporte/intrast/st_intrast.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>TaricTrade",escape("/soporte/tarictrade/st_tarictrade.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Código Aduanero",escape("/soporte/codadu/st_codadu.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Arancel Impreso",escape("/soporte/aranpapel/st_aranpapel.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Soporte Remoto",escape("/sol.asp"),,,0        
	])
	addmenu(menu=["Menu4",
	,,150,1,,style2,,"left",,,,,,,,,,,,,
		,"<img src='/images/1x1.gif' border=0 width=8>La Empresa",escape("/empresa/emp_empresa.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>The Company",escape("/empresa/emp_company.asp"),,,0
		,"<img src='/images/1x1.gif' border=0 width=8>Area de proyectos",escape("/empresa/emp_proyectos.asp"),,,0        
		,"<img src='/images/1x1.gif' border=0 width=8>Dirección / Teléfonos",escape("/empresa/emp_contacto.asp"),,,0
        ,"<img src='/Images/1x1.gif' border=0 width=8>Noticias",escape("/empresa/news/news.asp"),,,1
	])
// Fin Menus Generados
dumpmenus()
// Manejo de Breadcrumbs
// Info breadCrumb
var menuPages = new Array();
menuPages[0]		= new Array(3)
menuPages[0][0]	= ""
menuPages[0][1]	= "|Catálogo"
menuPages[0][2]	= "|"
menuPages[1]		= new Array(3)
menuPages[1][0]	= "/prodserv/legis/ps_legis.asp"
menuPages[1][1]	= "|Catálogo|Legislación"
menuPages[1][2]	= "||/prodserv/legis/ps_legis.asp"
menuPages[2]		= new Array(3)
menuPages[2][0]	= "/prodserv/aranadu/ps_aranadu.asp"
menuPages[2][1]	= "|Catálogo|Arancel de Aduanas"
menuPages[2][2]	= "||/prodserv/aranadu/ps_aranadu.asp"
menuPages[3]		= new Array(3)
menuPages[3][0]	= "/prodserv/estad/ps_estad.asp"
menuPages[3][1]	= "|Catálogo|Estadísticas"
menuPages[3][2]	= "||/prodserv/estad/ps_estad.asp"
menuPages[4]		= new Array(3)
menuPages[4][0]	= "/prodserv/gestion/ps_gestion.asp"
menuPages[4][1]	= "|Catálogo|Gestión Aduanera"
menuPages[4][2]	= "||/prodserv/gestion/ps_gestion.asp"
menuPages[5]		= new Array(3)
menuPages[5][0]	= "/prodserv/opintra/ps_opintra.asp"
menuPages[5][1]	= "|Catálogo|Op.Intracomunitarias"
menuPages[5][2]	= "||/prodserv/opintra/ps_opintra.asp"
menuPages[6]		= new Array(3)
menuPages[6][0]	= "/prodserv/solinteg/ps_solinteg.asp"
menuPages[6][1]	= "|Catálogo|Soluciones Integrales"
menuPages[6][2]	= "||/prodserv/solinteg/ps_solinteg.asp"
menuPages[7]		= new Array(3)
menuPages[7][0]	= "/prodserv/taricedi/ps_taricedi.asp"
menuPages[7][1]	= "|Catálogo|Colección Libros"
menuPages[7][2]	= "||/prodserv/taricedi/ps_taricedi.asp"
menuPages[8]		= new Array(3)
menuPages[8][0]	= ""
menuPages[8][1]	= "|Acceso a Servicios"
menuPages[8][2]	= "|"
menuPages[9]		= new Array(3)
menuPages[9][0]	= "/services/introder/introderechos.asp"
menuPages[9][1]	= "|Acceso a Servicios|Adelanto de Derechos"
menuPages[9][2]	= "||/services/introder/introderechos.asp"
menuPages[10]		= new Array(3)
menuPages[10][0]	= "/services/nettaric/nettaric.asp"
menuPages[10][1]	= "|Acceso a Servicios|Arancel netTaric"
menuPages[10][2]	= "||/services/nettaric/nettaric.asp"
menuPages[11]		= new Array(3)
menuPages[11][0]	= "/services/nettaric/nettariccan.asp"
menuPages[11][1]	= "|Acceso a Servicios|netTaric Can"
menuPages[11][2]	= "||/services/nettaric/nettariccan.asp"
menuPages[12]		= new Array(3)
menuPages[12][0]	= "/services/nettaric/nettaricen.asp"
menuPages[12][1]	= "|Acceso a Servicios|netTaric Tariff"
menuPages[12][2]	= "||/services/nettaric/nettaricen.asp"
menuPages[13]		= new Array(3)
menuPages[13][0]	= "/services/correl/correltaric.asp"
menuPages[13][1]	= "|Acceso a Servicios|Correlaciones Taric"
menuPages[13][2]	= "||/services/correl/correltaric.asp"
menuPages[14]		= new Array(3)
menuPages[14][0]	= "/services/correl/correlnc.asp"
menuPages[14][1]	= "|Acceso a Servicios|Correlaciones NC"
menuPages[14][2]	= "||/services/correl/correlnc.asp"
menuPages[15]		= new Array(3)
menuPages[15][0]	= "/services/correl/correlsa.asp"
menuPages[15][1]	= "|Acceso a Servicios|Correlaciones SA"
menuPages[15][2]	= "||/services/correl/correlsa.asp"
menuPages[16]		= new Array(3)
menuPages[16][0]	= "/services/novnorm/novnorm.asp"
menuPages[16][1]	= "|Acceso a Servicios|Novedades Normativa"
menuPages[16][2]	= "||/services/novnorm/novnorm.asp"
menuPages[17]		= new Array(3)
menuPages[17][0]	= "/services/divisas/divisas.asp"
menuPages[17][1]	= "|Acceso a Servicios|Cambio Divisas"
menuPages[17][2]	= "||/services/divisas/divisas.asp"
menuPages[18]		= new Array(3)
menuPages[18][0]	= "/services/glosario/glosario.asp"
menuPages[18][1]	= "|Acceso a Servicios|Glosario"
menuPages[18][2]	= "||/services/glosario/glosario.asp"
menuPages[19]		= new Array(3)
menuPages[19][0]	= "/services/links/links.asp"
menuPages[19][1]	= "|Acceso a Servicios|Enlaces"
menuPages[19][2]	= "||/services/links/links.asp"
menuPages[20]		= new Array(3)
menuPages[20][0]	= "/services/serv_frm_consulta.asp"
menuPages[20][1]	= "|Acceso a Servicios|Consultas técnicas"
menuPages[20][2]	= "||/services/serv_frm_consulta.asp"
menuPages[21]		= new Array(3)
menuPages[21][0]	= ""
menuPages[21][1]	= "|Soporte Técnico"
menuPages[21][2]	= "|"
menuPages[22]		= new Array(3)
menuPages[22][0]	= "/soporte/st_horarios.asp"
menuPages[22][1]	= "|Soporte Técnico|Horarios"
menuPages[22][2]	= "||/soporte/st_horarios.asp"
menuPages[23]		= new Array(3)
menuPages[23][0]	= "/soporte/dbtaric/st_dbtaric.asp"
menuPages[23][1]	= "|Soporte Técnico|dbTaric"
menuPages[23][2]	= "||/soporte/dbtaric/st_dbtaric.asp"
menuPages[24]		= new Array(3)
menuPages[24][0]	= "/soporte/duataric/st_duataric.asp"
menuPages[24][1]	= "|Soporte Técnico|duaTaric"
menuPages[24][2]	= "||/soporte/duataric/st_duataric.asp"
menuPages[25]		= new Array(3)
menuPages[25][0]	= "/soporte/itrans/st_itrans.asp"
menuPages[25][1]	= "|Soporte Técnico|iTrans"
menuPages[25][2]	= "||/soporte/itrans/st_itrans.asp"
menuPages[26]		= new Array(3)
menuPages[26][0]	= "/soporte/deptaric/st_deptaric.asp"
menuPages[26][1]	= "|Soporte Técnico|depTaric"
menuPages[26][2]	= "||/soporte/deptaric/st_deptaric.asp"
menuPages[27]		= new Array(3)
menuPages[27][0]	= "/soporte/nomencl/st_nomencl.asp"
menuPages[27][1]	= "|Soporte Técnico|nomencláTor"
menuPages[27][2]	= "||/soporte/nomencl/st_nomencl.asp"
menuPages[28]		= new Array(3)
menuPages[28][0]	= "/soporte/intrast/st_intrast.asp"
menuPages[28][1]	= "|Soporte Técnico|inTrast"
menuPages[28][2]	= "||/soporte/intrast/st_intrast.asp"
menuPages[29]		= new Array(3)
menuPages[29][0]	= "/soporte/tarictrade/st_tarictrade.asp"
menuPages[29][1]	= "|Soporte Técnico|TaricTrade"
menuPages[29][2]	= "||/soporte/tarictrade/st_tarictrade.asp"
menuPages[30]		= new Array(3)
menuPages[30][0]	= "/soporte/codadu/st_codadu.asp"
menuPages[30][1]	= "|Soporte Técnico|Código Aduanero"
menuPages[30][2]	= "||/soporte/codadu/st_codadu.asp"
menuPages[31]		= new Array(3)
menuPages[31][0]	= "/soporte/aranpapel/st_aranpapel.asp"
menuPages[31][1]	= "|Soporte Técnico|Arancel Impreso"
menuPages[31][2]	= "||/soporte/aranpapel/st_aranpapel.asp"
menuPages[32]		= new Array(3)
menuPages[32][0]	= ""
menuPages[32][1]	= "|Taric S.A"
menuPages[32][2]	= "|"
menuPages[33]		= new Array(3)
menuPages[33][0]	= "/empresa/emp_empresa.asp"
menuPages[33][1]	= "|Taric S.A|La Empresa"
menuPages[33][2]	= "||/empresa/emp_empresa.asp"
menuPages[34]		= new Array(3)
menuPages[34][0]	= "/empresa/emp_company.asp"
menuPages[34][1]	= "|Taric S.A|The Company"
menuPages[34][2]	= "||/empresa/emp_company.asp"
menuPages[35]		= new Array(3)
menuPages[35][0]	= "/empresa/emp_proyectos.asp"
menuPages[35][1]	= "|Taric S.A|Area de proyectos"
menuPages[35][2]	= "||/empresa/proyectos.asp"
menuPages[36]		= new Array(3)
menuPages[36][0]	= "/empresa/emp_contacto.asp"
menuPages[36][1]	= "|Taric S.A|Dirección / Teléfonos"
menuPages[36][2]	= "||/empresa/emp_contacto.asp"
function WriteBreadCrumb(strPagepath) {
	var siteURL = "http://213.97.198.181:8083";
	var pagePath = new String(document.location);
	var strMenus, strMenuLinks;
	var arrayMenus, arrayMenuLinks, encontre;
	if (strPagepath == undefined) {
		pagePath = pagePath.slice(siteURL.length, pagePath.length); //le saco el nombre del sitio
		//le saco los parametros de ASP, si es que hay
	}else {
		pagePath = strPagepath;
	}
	pagePath = pagePath.slice(0, ((pagePath.indexOf("?") != -1) ? pagePath.indexOf("?") : pagePath.length));
	encontre = false;
	for (x=0; x < menuPages.length; x++) {
		if (menuPages[x][0] == pagePath.toLowerCase()) {
			//document.write("Encontre! " + x + " : " + menuPages[x][1])
			strMenus		= new String(menuPages[x][1]);
			strMenuLinks	= new String(menuPages[x][2]);
			encontre		= true;
			break;
		}
	}
	if (encontre) {
		arrayMenus		= strMenus.split("|");
		arrayMenuLinks	= strMenuLinks.split("|");
		//recorro los arrays
		for (x=1; x < arrayMenus.length; x++) {
			//es el ultimo? (o sea el actual)
			if (x == arrayMenus.length - 1) {
				document.write("<font class='crumbsNoLink'>" + arrayMenus[x] + "</font>");
			}else {
				//lleva link?
				if (arrayMenuLinks[x] != "") {
					document.write("<a href='" + arrayMenuLinks[x] +"' class='crumbs'><font color='#666666'>" + arrayMenus[x] + "</font></a> > ");
				}else {
					document.write("<font class='crumbsNoLink'>" + arrayMenus[x] + "</font> > ");
				}
			}
		}
	}
}
function WriteBreadCrumbV2(strPagepath) {
	var siteURL = "http://213.97.198.181:8083";
	var pagePath = new String(document.location);
	var strMenus, strMenuLinks;
	var arrayMenus, arrayMenuLinks, encontre;
	if ((strPagepath == undefined) || (strPagepath == ''))  {
		pagePath = pagePath.slice(siteURL.length, pagePath.length); //le saco el nombre del sitio
		//le saco los parametros de ASP, si es que hay
	}else {
		pagePath = strPagepath;
	}
	pagePath = pagePath.slice(0, ((pagePath.indexOf("?") != -1) ? pagePath.indexOf("?") : pagePath.length));
	encontre = false;
	for (x=0; x < menuPages.length; x++) {
		if (menuPages[x][0] == pagePath.toLowerCase()) {
			//document.write("Encontre! " + x + " : " + menuPages[x][1])
			strMenus		= new String(menuPages[x][1]);
			strMenuLinks	= new String(menuPages[x][2]);
			encontre		= true;
			break;
		}
	}
	if (encontre) {
		arrayMenus		= strMenus.split("|");
		arrayMenuLinks	= strMenuLinks.split("|");
		//recorro los arrays
		for (x=1; x < arrayMenus.length; x++) {
			//lleva link?
			if (arrayMenuLinks[x] != "") {
				document.write("<a href='" + arrayMenuLinks[x] +"' class='crumbs'><font color='#666666'>" + arrayMenus[x] + "</font></a>");
			}else {
				document.write("<font class='crumbsNoLink'>" + arrayMenus[x] + "</font>");
			}
			if (x < arrayMenus.length - 1) {
				document.write(" > ");
			}
		}
	}
}
function WriteBreadCrumbV3(strMenuPagepath) {
	//La funcion acepta parametros extra, que serán usados para agregar crumbs extra al breadcrumb final:
	//Ej: WriteBreadCrumbV3(strMenuPagepath, "extraCrumb1", "linkExtraCrumb1.html", "extraCrumb2", "")
	//El ejemplo produce que se agreguen dos crumbs más al bredcrumb: ...breadcrumb menu.. > extraCrumb1 > extraCrumb2
	//como el parámetro que indica el link a extraCrumb2 es "", extraCrumb2 no será un link sino sólo texto.
	var siteURL = "http://213.97.198.181:8083";
	var pagePath = new String(document.URL);
	var strMenus, strMenuLinks;
	var arrayMenus, arrayMenuLinks, encontre;
	var hayExtraCrumbs
	if ((strMenuPagepath == undefined) || (strMenuPagepath == ''))  {
		pagePath = pagePath.slice(siteURL.length, pagePath.length); //le saco el nombre del sitio
	}else {
		pagePath = strMenuPagepath;
	}
	pagePath = pagePath.slice(0, ((pagePath.indexOf("?") != -1) ? pagePath.indexOf("?") : pagePath.length));
	//para asegurarse que coincida con el item del menu, hay que hacer un URLDecode para reemplazar '+' por " " y etc..
	pagePath = unescape(pagePath);
	encontre = false;
	for (x=0; x < menuPages.length; x++) {
		if (menuPages[x][0] == pagePath.toLowerCase()) {
			//document.write("Encontre! " + x + " : " + menuPages[x][1])
			strMenus		= new String(menuPages[x][1]);
			strMenuLinks	= new String(menuPages[x][2]);
			encontre		= true;
			break;
		}
	}
	hayExtraCrumbs = (arguments.length > 1) ? true : false;
	if (encontre) {
		arrayMenus		= strMenus.split("|");
		arrayMenuLinks	= strMenuLinks.split("|");
		//recorro los arrays
		for (x=1; x < arrayMenus.length; x++) {
			//lleva link?
			if ((x >= arrayMenus.length - 1) && !hayExtraCrumbs) { //si es el ultimo crumb y no hay extras, no es link, es el current
				document.write("<font class='crumbsCurrentCrumb'>" + arrayMenus[x] + "</font>");
			}else if (arrayMenuLinks[x] != "") {
				document.write("<a href='" + arrayMenuLinks[x] +"' class='crumbs'><font color='#666666'>" + arrayMenus[x] + "</font></a>");
			}else {
				document.write("<font class='crumbsNoLink'>" + arrayMenus[x] + "</font>");
			}
			if (x < arrayMenus.length - 1) {
				document.write(" > ");
			}
		}
	}
	//Si vinieron crumbs extras, los agrega
	var extraCrumbName = "";
	var extraCrumbLink = "";
	if (hayExtraCrumbs) {
		if (encontre) document.write(" > ");
		for(var x=1; x < arguments.length; x+=2) {
			extraCrumbName		= arguments[x];
			var extraCrumbLink	= (x+1 < arguments.length) ? arguments[x+1] : "";
			//lleva link?
			if (extraCrumbLink != "") {
				document.write("<a href='" + extraCrumbLink +"' class='crumbs'><font color='#666666'>" + extraCrumbName + "</font></a>");
			}else if((x+2) >= arguments.length) { //si además de no tener link es el ultimo del breadcrumb tiene otro style
				document.write("<font class='crumbsCurrentCrumb'>" + extraCrumbName + "</font>");
			}else {
				document.write("<font class='crumbsNoLink'>" + extraCrumbName + "</font>");
			}
			if ((x+2) < arguments.length) {
				document.write(" > ");
			}
		}
	}
}
// Fin manejo de Breadcrumbs