<!--
	hs.graphicsDir = './css/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	//hs.dimmingOpacity = 0.75;
	
	// Add the controlbar
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: 0.75,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});

	function VerifDate(jj, mm, aa) {
		if (jj!="JJ" && jj!="") {
			if (mm=="MM") {
				alert("Veuillez spécifier le mois");
				return false;
			}
			if (aa=="AAAA") {
				alert("Veuillez spécifier l'année");
				return false;
			}
			if (jj<1 || jj>31) {
				alert("Veuillez entrer un nombre entre 1 et 31 pour le jour !");
				return false;
			}
			if (mm<1 || mm>12) {
				alert("Veuillez entrer un nombre entre 1 et 12 pour le mois !");
				return false;
			}
			if ((mm==4 || mm==6 || mm==9 || mm==11) && jj>30) {
				switch (mm) {
					case "4" : mtxt="avril"; break;
					case "04" : mtxt="avril"; break;
					case "6" : mtxt="juin"; break;
					case "06" : mtxt="juin"; break;
					case "9" : mtxt="septembre"; break;
					case "09" : mtxt="septembre"; break;
					case "11" : mtxt="novembre"; break;
				}
				alert("Il n'y a que 30 jours en " + mtxt + " !");
				return false;
			}
		
			if (mm==2 && jj>28) {
				if (jj>29) {
					alert("Il n'y a que 28 ou 29 jours en février !");
					return false;
				} else {
					if (aa!="AAAA" && !(aa % 4==0 && aa % 100!=0) && (aa % 400!=0)) {
						alert("L'année " + aa + " n'est pas bisextile !\nEntrez un nombre entre 1 et 28 !");
						return false;
					}
				}
			}
		}
		return true;
	}
	
	function VerifDatePosterieure(jj, mm, aa) {
		dj = new Date();
		ddj_j = dj.getDate();
		if (ddj_j<10) { ddj_j = "0" + ddj_j; }
		ddj_m = dj.getMonth()+1;
		if (ddj_m<10) { ddj_m = "0" + ddj_m; }
		ddj_a = dj.getFullYear();
		ddj = ddj_a + "-" + ddj_m + "-" + ddj_j;
		ddn = aa + "-" + mm + "-" + jj;
		
		d1 = Date.parse(ddj);					
		d2 = Date.parse(ddn);
				
		if (d2 > d1) {
			alert("La date entrée est postérieure à la date du jour");
			return false;
		}
		return true;
	}
	
	function CheckEmail(str) {
		var filter = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
		return filter.test(str);
	}

	function txt2maj(txt) {
		return txt.toUpperCase();
	}
	
	function initiale2maj(txt) {
		txt = txt.toLowerCase();
	
		pos = txt.indexOf("-",0);
		while (pos!=-1) {
			txt = txt.substring(0,pos) + "-" + txt.charAt(pos+1).toUpperCase() + txt.substring(pos+2);
			pos = txt.indexOf("-",pos+1);
		}
	
		pos = txt.indexOf("'",0);
		while (pos!=-1) {
			txt = txt.substring(0,pos) + "'" + txt.charAt(pos+1).toUpperCase() + txt.substring(pos+2);
			pos = txt.indexOf("'",pos+1);
		}
	
		pos = txt.indexOf("(",0);
		while (pos!=-1) {
			txt = txt.substring(0,pos) + "(" + txt.charAt(pos+1).toUpperCase() + txt.substring(pos+2);
			pos = txt.indexOf("(",pos+1);
		}
	
		pos = txt.indexOf(".",0);
		while (pos!=-1) {
			txt = txt.substring(0,pos) + "." + txt.charAt(pos+1).toUpperCase() + txt.substring(pos+2);
			pos = txt.indexOf(".",pos+1);
		}
	
		pos = txt.indexOf(" ",0);
		while (pos!=-1) {
			txt = txt.substring(0,pos) + " " + txt.charAt(pos+1).toUpperCase() + txt.substring(pos+2);
			pos = txt.indexOf(" ",pos+1);
		}
	
		pos = txt.indexOf("/",0);
		while (pos!=-1) {
			txt = txt.substring(0,pos) + "/" + txt.charAt(pos+1).toUpperCase() + txt.substring(pos+2);
			pos = txt.indexOf("/",pos+1);
		}
	
		return txt.charAt(0).toUpperCase() + txt.substring(1);
	}
	
	function SetDateAsToday(jour, mois, annee) {
		ddj = new Date();
		j = ddj.getDate();
		if (j<10) { j = "0" + j; }
		m = ddj.getMonth()+1;
		if (m<10) { m = "0" + m; }
		a = ddj.getFullYear();
	
		jour.value = j;
		mois.value = m;
		annee.value = a;
	}
-->
