$(document).ready(function() {
	// Affiche le menu
	$("#header").load("auto_content/header.html").fadeIn("slow");
	
	// Affiche les cours
	$("#column .trainingComingUp").load("auto_content/cours.html").fadeIn("slow");
	
	// Affiche les partenaires
	$("#column .sponsorship").load("auto_content/partenaires.html").fadeIn("slow");
	
	// Affiche l'event à venir
	$("#column .events").load("auto_content/upcoming_events.html").fadeIn("slow");
	
	// Affiche le copyright
	$("#footer").load("auto_content/copyright.html").fadeIn("slow");
	
	// Affiche la photo du jour dans un effet de fondu enchaîné
/*
	var raw = $.get("http://surf-report.com/fr/quiberon/",
	function(data) {
	
		var raw = data.split('<a href="/media/_upload/quiberon');
		var path = raw[1].split('.jpg')[0];

		path = 'http://surf-report.com/media/_upload/quiberon'+path+'.jpg';
		
		$("#picOfTheDay").attr("src", path);
	});
	
	$("#pictureDay a").click(function() {
		$('#content #hiddenPic').fadeIn("slow");
		return false;
    });

	$("#hiddenPic a").click(function(event) {
		$("#hiddenPic").fadeOut("slow");
		return false;
    });

*/
});
