// JavaScript Document
// www.yuppieszavattaro.com


$(document).ready(function () {   
      
    $('#menu li').hover(  
        function () 
		{  
            $('ul', this).slideDown('fast');  
        },   
        function () 
		{  
            $('ul', this).slideUp('fast');           
        }  
    );  
});

$(document).ready(function () {
	var aggiorna = function()
	{
		$('#news li:hidden:first').fadeIn('300',function()
		{
			setTimeout(function()
			{
				$('#news li:first').fadeOut('100',function()
				{
					$(this).detach().appendTo('ul#news');
					aggiorna();
				});
			},3000)
		});
	};
	aggiorna();
});

$(document).ready(function () {
	var update = function()
	{
		$('#match li:hidden:first').fadeIn('300',function()
		{
			setTimeout(function()
			{
				$('#match li:first').fadeOut('100',function()
				{
					$(this).detach().appendTo('ul#match');
					update();
				});
			},5000)
		});
	};
	update();
});

$(document).ready(function () {   
      
    $('#firstlink a').hover(  
        function () 
		{  
            $('img', this).fadeTo('fast', 1);  
        },   
        function () 
		{  
            $('img', this).fadeTo('fast', 0.66);           
        }  
    );  
});
