$(document).ready(function(){

    // Set up options for the slideshow...
	var use_random_system = true;
	var myOptions = "";
	
	if (use_random_system==false){ /* LE SLIDESHOW PAR DEFAUT */
		myOptions = {
			noImages: 6,
			/* ******* NE PAS OUBLIER DE CHANGER LE NOMBRE D'IMAGES CI-DESSUS ******* */
			path: "images/welcome_pics/slideshow_images/",  // Relative path with trailing slash.
			captions: {                 
				1:'<b><font color="#ffffff">EXPOSITION COLLECTIVE EXPOS<font color="#4298d3">ED</font></font></b> <div style="font-size:12px;margin-top:5px;">Les étudiants de l\'école exposent leurs travaux à <b>Tour & Taxis</b> les 19 et 20 novembre 2011</div>',
				2:'<b>Formation courte: <font color="#ffcc00" style="text-transform: uppercase;">Connaissances de Gestion de Base</font></b><div style="font-size:12px;margin-top:5px;">Gestion commerciale, comptabilité, droit, plan d’entreprise...<br>Les inscriptions sont ouvertes pour la session de février 2012</div>',
				3:'<b>Kunstenfestivaldesarts 2010</b><div style="font-size:12px;margin-top:5px;">Spectacle Kamishibaï réalisé par Alice GOFFART<br>Etudiante de première année de la Section Vidéographie</div>',
				4:'<b>Where were you on january 8th ?</b><div style="font-size:12px;margin-top:5px;">Vidéo d\'une pièce iranienne filmée par Kristien Pottie en 1ère Vidéographie - 2010</div>',
				5:'<b>Auteur: Jose POMBO</b> <div style="font-size:12px;margin-top:5px;">Les anonymes font leur cin&#233;ma - 2011</div>',
				6:'<b>Auteur: Clementine ROY</b> <div style="font-size:12px;margin-top:5px;">Julie &#38; Priscilla - 2011</div>'
		/* ******* NE PAS OUBLIER LES VIRGULES SAUF DERNIERE LIGNE ******* */
			},
			links: { // Each image number must be listed here, unless no links are required at all, then links option can be ommitted.
				1:"events_main.htm",
				2:"ig_main.htm",
				3:"port_video.htm?vidini=6#video_id_1",
				4:"port_video.htm?vidini=6#video_id_2",
				5:"",
				6:""
		/* ******* NE PAS OUBLIER LES VIRGULES SAUF DERNIERE LIGNE ******* */
			},
			linksOpen:'sameWindow', /* sameWindow ou newWindow */
			timerInterval: 9000, // 6500 = 6.5 seconds
		randomise: false // Start with random image?
		};
	}
	else if (use_random_system==true){ /* LES SLIDESHOW ALÉATOIRES */
	var random_slideshow_id=(Math.floor(Math.random()*3)) + 1;
	 /* alert(random_slideshow_id);  */
		if (random_slideshow_id==1){ /* LE SLIDESHOW ALÉATOIRE #1 */
			myOptions = {
				noImages: 7,
				/* ******* NE PAS OUBLIER DE CHANGER LE NOMBRE D'IMAGES CI-DESSUS ******* */
				path: "images/welcome_pics/random_slideshow_images_1/",  // Relative path with trailing slash.
				captions: {                 
					/* 1:'<b>Formation courte: <font color="#ffcc00" style="text-transform: uppercase;">Connaissances de Gestion de Base</font></b><div style="font-size:12px;margin-top:5px;">Gestion commerciale, comptabilité, droit, plan d’entreprise...<br>Les inscriptions sont ouvertes pour la session de février 2012</div>', */
					1:'<b><font color="#ffcc00";">Formations longues - Formations courtes</font></b><div style="font-size:12px;margin-top:5px;">Certificat de connaissances de gestion de base...<br>Certificat d’Enseignement Secondaire Supérieur (CESS)...</div>',
					2:'<b>Berlin und tags</b><div style="font-size:12px;margin-top:5px;">Un film réalisé par Anna GIOLO<br>Etudiante de première année de la Section Vidéographie</div>',
					3:'<b>Auteur: Jose POMBO</b> <div style="font-size:12px;margin-top:5px;">Les anonymes font leur cin&#233;ma - 2011</div>',
					4:'<b>Wall-E</b><div style="font-size:12px;margin-top:5px;">Un film réalisé par Romain BALLEZ</div>',
					5:'<b>Auteur: Clementine ROY</b> <div style="font-size:12px;margin-top:5px;">Julie &#38; Priscilla - 2011</div>',
					6:'<font style="text-transform: uppercase;"><b>LES PORTFOLIOS DE L\'éCOLE DE PHOTOGRAPHIE ET DE TECHNIQUES VISUELLES</b></font><div style="font-size:12px;margin-top:5px;">La section réservée aux travaux de nos étudiants en photographie</div>',
					7:'<font style="text-transform: uppercase;"><b>la section vidéaste</b></font><div style="font-size:12px;margin-top:5px;">Quelques films réalisés par nos étudiants vidéastes</div>'
			/* ******* NE PAS OUBLIER LES VIRGULES SAUF DERNIERE LIGNE ******* */
				},
				links: { // Each image number must be listed here, unless no links are required at all, then links option can be ommitted.
					1:"ig_main.htm",
					2:"port_video.htm?vidini=1#video_id_1",
					3:"",
					4:"port_video.htm?vidini=1#video_id_4",
					5:"",
					6:"port_photo.htm",
					7:"port_video.htm"
					/* ******* NE PAS OUBLIER LES VIRGULES SAUF DERNIERE LIGNE ******* */
				},
				linksOpen:'sameWindow', /* sameWindow ou newWindow */
				timerInterval: 9000, // 6500 = 6.5 seconds
			randomise: false // Start with random image?
			};	
		}
			else if (random_slideshow_id==2){ /* LE SLIDESHOW ALÉATOIRE #2 */
			myOptions = {
				noImages: 7,
				/* ******* NE PAS OUBLIER DE CHANGER LE NOMBRE D'IMAGES CI-DESSUS ******* */
				path: "images/welcome_pics/random_slideshow_images_2/",  // Relative path with trailing slash.
				captions: {                 
					1:'<b><font color="#ffcc00";">Formations longues - Formations courtes</font></b><div style="font-size:12px;margin-top:5px;">Initiation à la photographie numérique ou à la prise de vue...<br>Formation à Photoshop...</div>',
					2:'<b>Auteur: Guy VILLETTE</b> <div style="font-size:12px;margin-top:5px;">Rôle social de la boxe - 2011</div>',
					3:'<b>You\'ve changed</b><div style="font-size:12px;margin-top:5px;">Un spectacle filmé par Kim LEDENT</div>',
					4:'<font style="text-transform: uppercase;"><b>la section vidéaste</b></font><div style="font-size:12px;margin-top:5px;">Quelques films réalisés par nos étudiants vidéastes</div>',
					5:'<b>Auteur: Jose POMBO</b> <div style="font-size:12px;margin-top:5px;">Les anonymes font leur cin&#233;ma - 2011</div>',
					6:'<b>Respirez</b><div style="font-size:12px;margin-top:5px;">Un film réalisé par Nico POMMIER</div>',
					7:'<font style="text-transform: uppercase;"><b>LES PORTFOLIOS DE L\'éCOLE DE PHOTOGRAPHIE ET DE TECHNIQUES VISUELLES</b></font><div style="font-size:12px;margin-top:5px;">La section réservée aux travaux de nos étudiants en photographie</div>'
			/* ******* NE PAS OUBLIER LES VIRGULES SAUF DERNIERE LIGNE ******* */
				},
				links: { // Each image number must be listed here, unless no links are required at all, then links option can be ommitted.
					1:"ig_main.htm",
					2:"",
					3:"port_video.htm?vidini=5#video_id_2",
					4:"port_video.htm",
					5:"",
					6:"port_video.htm?vidini=5#video_id_3",
					7:"port_photo.htm"
			/* ******* NE PAS OUBLIER LES VIRGULES SAUF DERNIERE LIGNE ******* */
				},
				linksOpen:'sameWindow', /* sameWindow ou newWindow */
				timerInterval: 9000, // 6500 = 6.5 seconds
			randomise: false // Start with random image?
			};	
		}
			else if (random_slideshow_id==3){ /* LE SLIDESHOW ALÉATOIRE #3 */
			myOptions = {
				noImages: 7,
				/* ******* NE PAS OUBLIER DE CHANGER LE NOMBRE D'IMAGES CI-DESSUS ******* */
				path: "images/welcome_pics/random_slideshow_images_3/",  // Relative path with trailing slash.
				captions: {                 
					1:'<b><font color="#ffcc00";">Formations longues - Formations courtes</font></b><div style="font-size:12px;margin-top:5px;">Certificat de qualification de Photographe ou de Vidéaste...<br>Initiation à la photographie numérique ou à la prise de vue, formation à Photoshop...</div>',
					2:'<b>Where were you on january 8th ?</b><div style="font-size:12px;margin-top:5px;">Vidéo d\'une pièce iranienne filmée par Kristien Pottie en 1ère Vidéographie - 2010</div>',		3:'<b>Auteur: Sabrina PIERUCCI</b> <div style="font-size:12px;margin-top:5px;">Sacré Quotidien! Looking for the ordinary Go(o)d - 2011</div>',
					4:'<b>Kunstenfestivaldesarts 2010</b><div style="font-size:12px;margin-top:5px;">Spectacle Kamishibaï réalisé par Alice GOFFART<br>Etudiante de première année de la Section Vidéographie</div>',
					5:'<b>Auteur: Kim LEDENT</b> <div style="font-size:12px;margin-top:5px;">Intimes - 2011</div>',
					6:'<font style="text-transform: uppercase;"><b>la section vidéaste</b></font><div style="font-size:12px;margin-top:5px;">Une sélection de films réalisés par nos étudiants vidéastes</div>',
					7:'<font style="text-transform: uppercase;"><b>LES PORTFOLIOS DE L\'éCOLE DE PHOTOGRAPHIE ET DE TECHNIQUES VISUELLES</b></font><div style="font-size:12px;margin-top:5px;">La section réservée aux travaux de nos étudiants en photographie</div>'
					
			/* ******* NE PAS OUBLIER LES VIRGULES SAUF DERNIERE LIGNE ******* */
				},
				links: { // Each image number must be listed here, unless no links are required at all, then links option can be ommitted.
					1:"ig_main.htm",
					2:"port_video.htm?vidini=6#video_id_2",
					3:"",
					4:"port_video.htm?vidini=6#video_id_1",
					5:"",
					6:"port_video.htm",
					7:"port_photo.htm"

			/* ******* NE PAS OUBLIER LES VIRGULES SAUF DERNIERE LIGNE ******* */
				},
				linksOpen:'sameWindow', /* sameWindow ou newWindow */
				timerInterval: 9000, // 6500 = 6.5 seconds
			randomise: false // Start with random image?
			};	
		}
	}

   $('#slideshow_container').easySlides(myOptions);


})
