//ACCORDION
function init() {
	// Prende gli elementi tramite la classe
	var titoli 	= document.getElementsByClassName('titolo_accordion');
	var contenuti = document.getElementsByClassName('contenuto_accordion');

	// Crea Accordion
	var myEffect = new fx.Accordion(titoli, contenuti, {opacity: false, duration: 300,alwaysHide:true });
}

//POPUP
function PopupCentrata(pagina,w,h) {
   //width e height
   //var w = 600;
   //var h = 450;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open(pagina,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}

//APERTURA IN NUOVA FINESTRA DIMENSIONABILE	
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}