// JavaScript Document
	
$(function()  {   

	var sliding = 0;

	$('#drop li').hover(
			function () {
				$('ul.first', this).delay(0).slideDown(100, 'easeOutQuart');
			},
			function () {
				$('ul.first', this).delay(0).slideUp(100, 'easeInQuart');
			}
	);

	$('#drop li ul li').hover(
			function () {
				$('ul.second', this).delay(0).slideDown(100, 'easeOutQuart');
			},
			function () {
				$('ul.second', this).delay(0).slideUp(100, 'easeInQuart');
			}
	);


	$('#drop li ul li a').hover(function () {
	  $(this).stop(true).animate({paddingLeft: '15px'}, {speed: 100, easing: 'easeOutBack'});
	  }, function () {
	  $(this).stop(true).animate({paddingLeft: '5'}, {speed: 100, easing: 'easeOutBounce'});
	});

		$('#iPad').css('display','none');
		//	alert('pippo');
	
    var userAgent = navigator.userAgent.toLowerCase();
    jQuery.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); 
    
    // Is this a version of Safari?
		//alert(userAgent);
		
		// il codice 'mobile/8c148' è presente nello userAgent sia dell iPad che dell'iPhone per questo l'avevo scelto
		
    if(jQuery.browser.safari && userAgent.match('mobile')){
		 jQuery('#iPad img').attr('border','0');
		 jQuery('#testata_flash_home #iPad img').wrap('<a href="/" />');
		 jQuery('#Flash #iPad img').wrap('<a href="/home.html" />');
		 jQuery('#Container object').remove();
	   	 jQuery('#Flash object').remove();
	  	 jQuery('#iPad').fadeIn();
    }
    
});

