$(document).ready(function() {
   $(".fancybox").fancybox({

        'autoScale'      : false,
        'height'      : 230,
        'width'        : 400,
        
        'autoDimensions'    : true,
        'cyclic'    : false,
        'overlayShow'    :true
      });
      
      $(".fancybox-setsize").fancybox({
        'autoScale'      : false,
        'width'        : 520,
        'height'      :  480,
        
        'autoDimensions'    : false,
        'cyclic'    : false,
        'overlayShow'    :true
      });
      
      $(".fancybox-big").fancybox({
	'type'				: 'iframe',
        'autoScale'      : false,
        'width'        : 850,
        'height'      :  400,
        
        'autoDimensions'    : false,
        'cyclic'    : false,
        'overlayShow'    :true
      });




   if ($("#tipafriend-form").length ) {
   	$("#tipafriend-form").ajaxForm({
        	success: function(responseText){
            		$('#fancybox-content').children().html(responseText);
       		 }
    	}); 
    }
    
   /*$("#avisdechangementdadresse").ajaxForm({
        success: function(responseText){
            $('#fancybox-content').children().html(responseText);
        }
    }); */
    

});
    


