function showMenu(currentMenu) {
	var allHTMLTags = new Array();
	var allHTMLTags=document.getElementsByTagName("div");

	for (i=0; i<allHTMLTags.length; i++) {
		if (allHTMLTags[i].className=='subMenu') {
			allHTMLTags[i].style.display='none';
		}
	}

	if (document.getElementById) {
		thisMenu = document.getElementById(currentMenu).style;
		if (thisMenu.display == "block") {
			thisMenu.display = "none";
		}
		else {
			thisMenu.display = "block";
		}
		return false;
	} else {
		return true;
	}
}

$(document).ready(function(){

	/* Cambiare l'effetto da utilizzare */
	$.easing.def = "jswing";

	/* Associare una funzione all'evento click sul link */
	$('div.voiceMenu').click(function(e){
	
		/* Finding the drop down list that corresponds to the current section: */
		var subMenu = $(this).parent().next();
		
		/* Trovare il sotto menu che corrisponde alla voce cliccata */
		$('.subMenu').not(subMenu).slideUp(500);
		subMenu.stop(false,true).slideToggle(500);
		
		/* Prevenire l'evento predefinito (che sarebbe di seguire il collegamento) */
		e.preventDefault();
	})
	
});
