﻿/*  sito: www.flora2000.it
    data: 19/12/2007
    autore: Federico Pizzutto [www.pngised.net] per Prospero Multilab [www.prosperomultilab.com]
    scopo:  funzione di gestione del menu con accordion di mootools v1.1
*/

function menu(x) {
	
//	if ( (!window.ie) || (browser.version > 5.5)) {
	 		    
        var togglers = $$('#menuVerde h3');
	    var elementi = $$('#menuVerde ul')
    	
	    var accordion = new Accordion(togglers, elementi, {
		    opacity: false,
		    //start: 'closed',	//all closed in onload
		    show:	x, 		//the Index of the element to show at start.
		    //display:	integer,	//the Index of the element to show at start (with a transition). defaults to 0.
		    onActive: function(toggler, element){
			    toggler.addClass('selected');
		    },

		    onBackground: function(toggler, element){
			    toggler.removeClass('selected');
		    }
	    },$('menuVerde'));
    	
    	
	    // apro il menu che mi interessa
	     //accordion.display(x);
//    }
}

function menuMarron(x) {
	
//	if ( (!window.ie) || (browser.version > 5.5)) {
	 		    
        var togglers = $$('#menuMarrone h3');
	    var elementi = $$('#menuMarrone ul')
    	
	    var accordion = new Accordion(togglers, elementi, {
		    opacity: false,
		    //start: 'closed',	//all closed in onload
		    show:	x, 		//the Index of the element to show at start.
		    //display:	integer,	//the Index of the element to show at start (with a transition). defaults to 0.
		    onActive: function(toggler, element){
			    toggler.addClass('selected');
		    },

		    onBackground: function(toggler, element){
			    toggler.removeClass('selected');
		    }
	    },$('menuMarrone'));
    	
    	
	    // apro il menu che mi interessa
	     //accordion.display(x);
//    }
}