


			// ****************************
			// ENLEVER LA REFERENCE / //
			// ****************************



function makevisible(cur,which){
strength=(which==0)? 1 : 0.2
if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function banniere()
//{
//var nbimage = 11 ;
//var numimage;
//Génére un nombre aléatoire, pour donner un numéro d'image.
//numimage = Math.round( Math.random() * ( nbimage - 1 ) + 1 );
//document.write ('<a href="index.html" title="Pousada Rio Verde, Icarai - Br&eacute;sil :: retour &agrave; l\'accueil"><img src="images/interface/bandeau-haut_' + numimage + '.jpg" alt="" width="765" height="125" border="0" /></a>'); 
//} 

{
	var nbimage = 5 ;
	var numimage;
	//Génére un nombre aléatoire, pour donner un numéro d'image.
	numimage = Math.round( Math.random() * ( nbimage - 1 ) + 1 );
	document.write ('<div id="container"><a href="#"><img src="/images/banniere_haut/banniere_' + numimage + '.jpg" border="0" /></a></div>');
	//document.write ('<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this rotator.</div>');
	var s1 = new SWFObject("imagerotator.swf","rotator","580","100","2");
	s1.addVariable("file","playlist.xml");
	s1.addVariable("transition","lines");
	s1.addVariable("overstretch","false");
	s1.addVariable("width","580");
	s1.addVariable("height","100");
	s1.addVariable("shownavigation","false");
	s1.write("container");
}


// vérification des champs de formulaire

function verif_contact() 	{
		
		if(document.form_contact.prenom.value != "") {
		}
		else {
			alert("Vous avez oublié de noter votre prénom");
			return false;
		}
		
		if(document.form_contact.nom.value != "") {
		}
		else {
			alert("Vous avez oublié de noter votre nom");
			return false;
		}
		
		if(document.form_contact.courriel.value != "") {
		}
		else {
			alert("Vous avez oublié de noter votre courriel");
			return false;
		}

		if(document.form_contact.courriel.value.indexOf('@') == -1)
		{
			alert("Adresse E-mail invalide!");
			return false;
		}
		if(document.form_contact.courriel.value.length <7)
		{
			alert("Adresse E-mail invalide!");
			return false;
		}
		if(document.form_contact.comment.value == "")
		{
			alert("Votre message est vide.");
			return false;
		}
	}

function verif_demande_infos()
	{
		if(document.form_info.prenom.value == "")
		{
			alert("Votre prénom est obligatoire.");
			return false;
		}
		if(document.form_info.nom.value == "")
		{
			alert("Votre nom est obligatoire.");
			return false;
		}
		if(document.form_info.adr1.value == "")
		{
			alert("Votre adresse est obligatoire.");
			return false;
		}
		if(document.form_info.codep.value == "")
		{
			alert("Votre code postal est obligatoire.");
			return false;
		}
		if(document.form_info.ville.value == "")
		{
			alert("Votre ville est obligatoire.");
			return false;
		}
		if(document.form_info.pays.value == "")
		{
			alert("Votre pays est obligatoire.");
			return false;
		}
		if(document.form_info.courriel.value.indexOf('@') == -1)
		{
			alert("Adresse E-mail invalide!");
			return false;
		}
		if(document.form_info.courriel.value.length <7)
		{
			alert("Adresse E-mail invalide!");
			return false;
		}
		if(document.form_info.prepa.value == "")
		{
			alert("Vos écoles préparées sont obligatoires.");
			return false;
		}
	}