

$(document).ready(function(){
    $('a.anteprima').fancybox();
    $('.div-box').hide();
   
 $('#delSupport').click(function(){
    $('.div-box').hide('fast');
        
  
 });

    $('#salva_supporto').click(function(){
    $('.laoding').show('fast');
        
  
 });

    $('#selectS').change(function(){
        $(this).children().each(function(){
            var n=$('#div-box-'+$(this).val());
            if($(this).is(':selected')) n.show('slow');
            else n.hide('fast');
        })
    })

  $("a.fancyFrame").fancybox({ 
						'zoomSpeedIn': 300, 
						'zoomSpeedOut': 300, 
						'frameWidth':450, 
						'frameHeight':450
    });
  
  	$(".link").fancybox({
		'width'				: '60%',
		'height'			: '60%',
                'autoScale'     	: false,
                'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});







$("a[rel=example_group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
		}
	});

  });
