// JavaScript Document
jQuery(document).ready(function($) {	
	//
	//CONTROLLO SLIDESHOW
	//
	//SLIDESHOW NEXT
    $("#next").hover(function() {
		$(this).animate({right:"-60px"}, 200);
		},
	function(){
		$(this).animate({right:"-25px"}, 500);				
	});
	//SLIDESHOW PREV
	 $("#prev").hover(function() {
		$(this).animate({left:"-60px"}, 200);
		},
	function(){
		$(this).animate({left:"-25px"}, 500);				
	});
	
	
	//CONTROLLO NEWS
	//NEXT
    $("#bt-news-next").hover(function() {
		$(this).animate({right:"-29px", width:"40px"}, 200);
		},
	function(){
		$(this).animate({right:"-24px", width:"35px"}, 500);				
	});
	//PREV
	 $("#bt-news-prev").hover(function() {
		$(this).animate({right:"-29px",  width:"40px"}, 200);
		},
	function(){
		$(this).animate({right:"-24px", width:"35px"}, 500);				
	});
	
	$("#bt-expand").toggle(function(e) {
		$("#bt-news-next,#bt-news-prev").fadeOut(500);
        $("#home-news").delay(500).animate({height:"100%"}, 1000);
		$("#home-news-mask").delay(500).animate({height:"100%"}, 1000);
		},
		function(e){
		$("#bt-news-next,#bt-news-prev").delay(1000).fadeIn(500);
        $("#home-news").animate({height:"500px"}, 1000);
		$("#home-news-mask").animate({height:"500px"}, 1000);
    });
	
	
});

