// Fonction éxécutée après chargement de la page
$(window).load(function() {
	$('.TFC_dialog').click(function(e) {
			e.preventDefault();
			
			var dimension = $(this).attr('rel').split(',');
			
	        $('<iframe id="externalSite" class="externalSite" src="' + $(this).attr('href') + '" />').dialog({
	            title: ($(this).attr('title')) ? $(this).attr('title') : 'External Site',
	            autoOpen: true,
	            width: parseInt(dimension[0]),
	            height: parseInt(dimension[1]),
	            modal: true,
	            resizable: false,
				draggable: false,
				closeOnEscape: false,
				autoResize: false,
	        }).width(parseInt(dimension[0])).height(parseInt(dimension[1]));
	});
});
