$(document).ready(function(){
	
	//settaggi per angoli arrotondati
	settingsRound = {
       tl: { radius: 2 },
       tr: { radius: 15 },
       bl: { radius: 15 },
       br: { radius: 2 },
       autoPad: true,
       validTags: ["div"]
	}
    
	//settaggi alpha
    alphaDes=0.25;
    alphaSel=1;

	//galleria
    $("#menu_alcorv a").blend();
    $("a[rel='galleria']").colorbox({transation:"fade", width:"95%", height:"95%"}); $("a[rel='galleria_singola']").colorbox({transation:"fade"}); $("a[rel='slideshow']").colorbox({slideshow:true}); $(".single").colorbox({}, function(){ alert('Howdy, this is an example callback.');}); $(".colorbox").colorbox();$(".youtube").colorbox({iframe:true, width:650, height:550});$(".iframe").colorbox({width:"98%", height:"98%", iframe:true});$(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});$("#click").click(function(){$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");return false; });
	
    $(".fade").animate({opacity:alphaDes},0);
    $(".fade").hover(function(){
		$(this).animate({opacity: alphaSel}, 500);
	});
    $(".fade").mouseout(function(){
		$(this).animate({opacity: alphaDes}, 1000);
	});
	//fine galleria
	
    //angoli arrotondati
    $("#graph_text").corner(settingsRound);
    $("#web_text").corner(settingsRound);
    $("#galleria_testo").corner(settingsRound);
    $(".contattami").corner(settingsRound);
    $("#notice").corner(settingsRound);
    $("#notice2").corner(settingsRound);
    $("#notice3").corner(settingsRound);
    $("#news").corner(settingsRound);
    
    //slideUP
    $("#elimina").click(function(){
    		$("#notice").slideUp(1000);
    		$("#galleria_testo").slideUp(500);	
    		$("#graph_text").slideUp(1000);	
    		$("#web_text").slideUp(1000);

  	  });
  	
  	  $("#elimina2").click(function(){
    		$("#notice2").slideUp(1000);
  	  });
      $("#elimina3").click(function(){
    		$("#notice3").slideUp(1000);
  	  });
 
  	  
  	  $("#elimina_news").click(function(){
    		$("#news").slideUp(1000);
  	  });
  	  
});