(function($){
  $(function(){
  	$('#menu_edprec').accordion({
			active: ".selected", 
			alwaysOpen: false, 
			header: '.head',
			clearStyle: true
			//selectedClass:'on'
			//navigation: true, 
			//event: 'mouseover', 
			//fillSpace: true, 
			//animated: 'easeslide' 
  	});
	
	  var wh = $(window).height();	
	  var sx = $("#sinistra").height();
    var dx = $("#destra").height();
    var max = Math.max(sx,dx);
    if (wh>max){
		  $('#sinistra, #destra').css('height', wh+'px');
	  } else {
		  var piccolo = (sx<=dx?$("#sinistra"):$("#destra"));
		  piccolo.height(max);
	  }
    /*$("#menu_edprec li li a").click(function(){
      var parent = $(this).parent();
		  window.location = this.href;
	  });*/
  });
})(jQuery);	
