openMenu=function(){

//estraggo il parametro passato che indica l'id del prodotto visualizzato
/*indirizzo=unescape(String(this.location));
params=indirizzo.split("?");
param='-' + params[1].split("&");*/

htmlBreadcrumbs='';
htmlBreadcrumbs= htmlBreadcrumbs + 'siete qui: ' 

menuItems=$j("#box_MainMenu li");


if (taxId != ''){

	var root_laterale = '';
	var first_laterale = true;
	for (i=0;i<menuItems.length;i++)
		{ 	
			if ( '-' + String(taxId) ==   String(menuItems[i].id).substring(String(menuItems[i].id).length - String(taxId).length - 1))
			{
				
				taxElements=String(menuItems[i].id).split('-');
				//Seleziono la voce nel TopMenu
				document.getElementById('topMenu-' + taxElements[1]).className='selected';
				path= taxElements[1];
				
				
				
				if($(taxElements[1]).childNodes.length > 0 ){
				$('intestazioneMenuLaterale').show();
				$j('#' + taxElements[1]).show();
				}
				
				//aggiungo la voce di primo livello al breadcrumbs
				children=document.getElementById("topMenu-" + path).childNodes;
						for(z=0;z<children.length;z++)
							{
							if (children[z].tagName=='A')
								{
								
								htmlBreadcrumbs= htmlBreadcrumbs + children[z].firstChild.nodeValue + ' - ';
									//per modificare label Menu Sezione
									
									if (first_laterale){						    
										$('intestazioneMenuLaterale').update(children[z].firstChild.nodeValue);
										first_laterale = false;
									}
								}
							}
				
				for (j=2;j<taxElements.length;j++)
					{
					path=path+'-'+ taxElements[j];
					//apro progressivamente i livelli del menu di destra 
					$j('#' + 'lateralMenu-'+path).parent().show();
					
					//aggiungo gli elementi al breadcrumb
					if (j<taxElements.length-1){
						//elemento normale
						children=document.getElementById("topMenu-" + path).childNodes;
						for(z=0;z<children.length;z++)
							{
							
							if (children[z].tagName=='A')
								{
								
								htmlBreadcrumbs= htmlBreadcrumbs + children[z].firstChild.nodeValue + ' - ';
								
								}
							}
						
						//htmlBreadcrumbs= htmlBreadcrumbs + document.getElementById("topMenu-" + path).firstChild.firstChild.nodeValue + ' - ';
						}
					else{
						//elemento foglia (tra SPAN)				
						htmlBreadcrumbs= htmlBreadcrumbs + '<span>';
						children=document.getElementById("topMenu-" + path).childNodes;
						for(z=0;z<children.length;z++)
							{
							if (children[z].tagName=='A')
								{
								htmlBreadcrumbs= htmlBreadcrumbs + children[z].firstChild.nodeValue ;
								}
							}
						
						//htmlBreadcrumbs= htmlBreadcrumbs + document.getElementById("topMenu-" + path).firstChild.firstChild.nodeValue ;
						
						
						htmlBreadcrumbs= htmlBreadcrumbs + '</span>';
						htmlBreadcrumbs= htmlBreadcrumbs + '<div class="clear">&nbsp;</div>';
					}
				}
				
				var breadcrumbs_var = document.getElementById('breadcrumbs');
				//alert('breadcrumbs_var ' + breadcrumbs_var);
				if (typeof(breadcrumbs_var) != 'undefined'){
					if (breadcrumbs_var != null){
						breadcrumbs_var.innerHTML=htmlBreadcrumbs;
					}
				}
				
				var lateralMenu_var = document.getElementById('lateralMenu-'+path);
				if (typeof(lateralMenu_var) != 'undefined'){
					if (lateralMenu_var != null){
						lateralMenu_var.className='selected';
					}
				}
				
				
				
				//document.getElementById('lateralMenu-'+path).className='selected';
			var showElements = document.getElementById('lateralMenu-'+path).childNodes;
			for (elem in showElements){
				if(showElements[elem].style) showElements[elem].style.display = "block";
			}
			
			
			
				
			
			
			
			}
		}
		
		
					
	}else{
		menuItems[0].className='selected';
	}
	

}