		$(document).ready(function(){
					
					/*CHIAMATA PLUGIN MENU*/
					
						$("ul.sf-menu").superfish({ 
//							pathClass:  'current' 
						}); 
						  
			var old_h = $('.news_sx p').height();//ALTEZZA ORIGINALE PARAGRAFO
			var actual = $('.colonne').height();	//ALTEZZA ORIGINALE DELLE COLONNE				  
			var originalFontSize = $('.news_sx p,.news_sx_int p').css('font-size'); // GRANDEZZA FONT ORIGINALE
			
		  // RESETTA IL FONT-SIZE E L'ALTEZZA COLONNE
		  $(".font_reset").click(function(){
		  $('.news_sx p,.news_sx_int p').animate({
								  fontSize : originalFontSize
								  },500);
		  $('.colonne').css('height',actual+10+'px')
		  return false;
		  });
		  // AUMENTA IL FONT-SIZE E L'ALTEZZA COLONNE

		  $(".font_incr").click(function(){
		  var currentFontSize = $('.news_sx p,.news_sx_int p,.news_sx_int div').css('font-size');
		  var currentFontSizeNum = parseFloat(currentFontSize, 10);
		  var newFontSize = currentFontSizeNum*1.2;
		  $('.news_sx p,.news_sx_int p,.news_sx_int div').animate({
											  fontSize : newFontSize +'px'
											  },500,function(){
											  var col_sx_h = $('.news_sx p').height(); // RICALCOLA L'ALTEZZA DEL PARAGRAFO
											  var calculate_diff = col_sx_h-old_h; // CALCOLO LA DIFFERENZA TRA VECCHIA E NUOVA
											  var new_h = actual + calculate_diff +10; // DETERMINO LA NUOVA ALTEZZA DELLE COLONNE
											  $('.colonne').css('height',new_h+'px'); // ASSEGNO LA NUOVA ALTEZZA
											  });
		  return false;
		  });
		  // DIMINUISCE IL FONT-SIZE E L'ALTEZZA COLONNE
		  $(".font_decr").click(function(){
		  var currentFontSize = $('.news_sx p,.news_sx_int p').css('font-size');
		  var currentFontSizeNum = parseFloat(currentFontSize, 10);
		  var newFontSize = currentFontSizeNum*0.8;
		  $('.news_sx p,.news_sx_int p').animate({
								  fontSize : newFontSize +'px'
								  },500,function(){
											  var col_sx_h = $('.news_sx p').height();
											  var calculate_diff = col_sx_h-old_h;
											  var new_h = actual + calculate_diff +10;
											  $('.colonne').css('height',new_h+'px')
											  });
		  return false;
		  
		  });

		$("tbody[class=quotazioni] > tr:odd").attr('class','left');
		$("tbody[class=quotazioni] > tr:even").attr('class','right');
		  
		$('.left').hover(
		  function () {
			$(this).css('background','#f7f7f7');
		  }, 
		  function () {
			$(this).css('background','#efefef');
		  });
		$('.right').hover(
		  function () {
			$(this).css('background','#f7f7f7');
		  }, 
		  function () {
			$(this).css('background','#ffffff');
		  });
		
				 /*FUNZIONE PER RENDERE LE 3 COLONNE PRINCIPALI  UGUALI*/
				 
				function equalHeight(gruppo) {
				   tallest = 0;
				   gruppo.each(function() {
					  thisHeight = $(this).height();
					  //alert(thisHeight);
					  if(thisHeight > tallest) {
						 tallest = thisHeight;
					  }
				   });
				   gruppo.css('height',tallest+10+'px');
				}
				equalHeight($(".colonne"));
		}); 

