/* FUNZIONI FANCYBOX */

$(document).ready(function() {

$("a#example3").fancybox({
'transitionIn'	: 'none',
'transitionOut'	: 'none'	
});

$("#tip6").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 670,
  'height'			: 550,
  'scrolling'   		: 'no'
});
$("#registrati").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 670,
  'height'			: 550,
  'scrolling'   		: 'yes',
    'onClosed': function() {
    parent.location.reload(true);
  }
});

$("#login").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 440,
  'height'			: 260,
  'scrolling'   		: 'no',
    'onClosed': function() {
    parent.location.reload(true);
  }
});
$("#logout").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 420,
  'height'			: 260,
  'scrolling'   		: 'no',
    'onClosed': function() {
    parent.location.reload(true);
  }
});
$("#modProfilo").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 670,
  'height'			: 450,
  'scrolling'   		: 'no',
    'onClosed': function() {
    parent.location.reload(true);
  }
});
$("#avvertenze").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 470,
  'height'			: 450,
  'scrolling'   		: 'no'
});
$("#ingredienti").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 670,
  'height'			: 370,
  'scrolling'   		: 'no'
});
$("#descrizione").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 670,
  'height'				: 570,
  'scrolling'   		: 'no'
});
$("#infoNutri").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     	: false,
  'type'				: 'iframe',
  'width'				: 670,
  'height'				: 370,
  'scrolling'   		: 'no'
});
$("#fancyRecensioni").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     		: false,
  'type'				: 'iframe',
  'width'				: 650,
  'height'				: 550,
  'scrolling'   		: 'yes'
});
$("#contact").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     		: false,
  'type'				: 'iframe',
  'width'				: 650,
  'height'				: 550,
  'scrolling'   		: 'yes'
});
$("#various5").fancybox({
		'width'				: 700,
		'height'			: 400,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
$("#fancyRecensioni").fancybox({
  'transitionIn'		: 'none',
  'transitionOut'		: 'none',
  'autoScale'     		: false,
  'type'				: 'iframe',
  'width'				: 650,
  'height'				: 550,
  'scrolling'   		: 'yes'
});	
$("#various6").fancybox({
		'width'				: 700,
		'height'			: 400,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});	
});



/*$(document).ready(function () {
    $('img.menu_class').click(function () {
	$('ul.the_menu').slideToggle('medium');
    });
});*/


/* FUNZIONE PER FARE GIRARE LE IMMAGINI PROMO NELLE HOMEPAGE */


/* FINE FUNZIONE PER FARE GIRARE LE IMMAGINI PROMO NELLE HOMEPAGE */
$(document).ready(function() 
	{
		$("a.inline").fancybox({
						   
		'hideOnContentClick': true,
		'scrolling'			: 'no',
		'overlayOpacity'	: '0.9',
		'autoDimensions'	: 'true',
		'autoScale'			: 'true',
		'width'				: '502',
		'height'			: '955',
		'centerOnScroll'	: 'true'
	});



});




  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28054217-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

