// Created by iWeb 2.0.4 local-build-20081017

setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(-1,-1,2,2),url:'Accueil_3_files/stroke.png'},{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(0,-1,2,2),url:'Accueil_3_files/stroke_1.png'},{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(0,0,2,2),url:'Accueil_3_files/stroke_2.png'},{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(-1,0,2,2),url:'Accueil_3_files/stroke_3.png'}],new IWSize(1,1)),shadow_0:new IWShadow({blurRadius:4,offset:new IWPoint(1.4142,1.4142),color:'#000000',opacity:0.500000})});registry.applyEffects();}
function hostedOnDM()
{return false;}
function onPageLoad()
{loadMozillaCSS('include/styleMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');adjustLineHeightIfTooBig('id8');adjustFontSizeIfTooBig('id8');applyEffects()}

// affichage des images
function visible(nom2){
	xOpacity2 = xOpacity2 +0.1;
	obj =document.getElementById(nom2);
	obj.style.opacity = xOpacity2;
	obj.style.MozOpacity = xOpacity2;
	obj.style.KHTMLOpacity = xOpacity2;
	obj.style.filter = 'alpha(opacity=' + (xOpacity2*100) + ')';
	if(xOpacity2>=1)return;
	setTimeout("visible('"+ nom2 +"')",100);
}
xOpacity2=0;
xOpacity=1;
function invisible(nom){
	xOpacity=xOpacity-0.1;
	obj =document.getElementById(nom);
	obj.style.opacity = xOpacity;
	obj.style.MozOpacity = xOpacity;
	obj.style.KHTMLOpacity = xOpacity;
	obj.style.filter = 'alpha(opacity=' + (xOpacity*100) + ')';
	if(xOpacity<=0){
		numimage++;
		if(numimage>4){
			numimage=1;
		}
		document.getElementById(nom).src="include/image"+ numimage +".jpg";
		return;
	}
	setTimeout("invisible('"+ nom +"')",100);
}


function lancerAnim(){
	xOpacity2=0;
	xOpacity=1;

	invisible(nomanim);
	visible(nomanim2);

	if(nomanim=="imageID") {
		nomanim="imageID2";
		nomanim2="imageID";
	}else{
		nomanim="imageID";
		nomanim2="imageID2";	
	}
	setTimeout("lancerAnim()",4000);
}
function afficheImage(numphoto){
	document.getElementById('imageID').src="include/image"+ numphoto+".jpg";
	document.getElementById('imageID2').src="include/image"+ (numphoto+1)+".jpg";
}
			function VerifMail(formulaire){
				adresse = document.formulaire_Simu.email.value;
				var place = adresse.indexOf("@",1);
				var point = adresse.indexOf(".",place+1);
				if ((place > -1)&&(adresse.length >2)&&(point > 1)){
					return(true);
				}else{
					return(false);
				}
			}
				
			function verifChamp(){
				if(document.formulaire_Simu.nom.value==""){
					alert("saisir votre nom");
				}else{
					if(document.formulaire_Simu.prenom.value==""){
						alert("saisir votre prenom");
					}else{
						if(document.formulaire_Simu.ville.value==""){
							alert("saisir votre ville");
						}else{
							if(document.formulaire_Simu.email.value==""){
								alert("saisir votre email");
							}else{
								if(VerifMail()==false){
									alert("Adresse Email invalide");
								}else{
									document.formulaire_Simu.submit();
								}
							}
						}	
					}
				}
			}
