$(document).ready(function() {
	//Activate FancyBox
	$("a.custom_1").fancybox({
		'zoomSpeedIn':	500, 
		'zoomSpeedOut': 500,
		'frameWidth' :	730,
		'frameHeight' :	590
	});
	
	$("a#custom_2").fancybox({
		'zoomSpeedIn':	500, 
		'zoomSpeedOut': 500,
		'frameWidth' :	600,
		'frameHeight' :	550
	});
	
	$("a#custom_3").fancybox({
		'zoomSpeedIn':	500, 
		'zoomSpeedOut': 500,
		'frameWidth' :	450,
		'frameHeight' :	300
	});
	
	$("a.custom_4").fancybox({
		'zoomSpeedIn':	500, 
		'zoomSpeedOut': 500,
		'frameWidth' :	600,
		'frameHeight' :	350
	});
	
	$("a#custom_5").fancybox({
		'zoomSpeedIn':	500, 
		'zoomSpeedOut': 500,
		'frameWidth' :	600,
		'frameHeight' :	420
	});
	
	$("a.custom_7").fancybox({
		'zoomSpeedIn':	500, 
		'zoomSpeedOut': 500,
		'frameWidth' :	400,
		'frameHeight' :	300
	});
	
    $('a.wait').click(function() {
		$('body').append('<div id="popup-wait">Merci de patienter quelques instants.<br /><br /><strong>Vous allez être redirigé(e) vers le site web sur lequel figure l\'article.</strong></div>');
		var myhref = $(this).attr('href');
		setTimeout(function() {
			window.location.href = myhref;
		}, 5000);
		return false;
	});
	
});

