function verifIns(form)
{
	return jcap();
}

//AFFICHE/CACHE LES INFOS DETAILLE D'UNE ANNONCE
function showHideInfoAnnonce(etat,DivAnnonceId)
{
	if(etat == 1)
	{
		document.getElementById(DivAnnonceId).style.display = "block";
	}
	else
	{
		document.getElementById(DivAnnonceId).style.display = "none";
	}
}

function verif(form)
{
	if(!form.email.value) return false; return true;
}


function verifContact(form)
{
	if(!form.nom.value) 
	{
		alert("Saisissez votre nom.");
		form.nom.focus();
		return false; 
	}
	if(!form.email.value)
	{
		alert("Saisissez votre email.");
		form.email.focus();
		return false; 
	}
	if(!form.message.value)
	{
		alert("Saisissez votre message.");
		form.message.focus();
		return false; 
	}
	else return true;
}


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];}
}

var nbSM = 5;
function montre(id) 
{
	var d = document.getElementById('smenu'+id);
	for (var i = 0; i<=nbSM; i++) 
	{
		if (document.getElementById('smenu'+i)) 
                {
                   document.getElementById('smenu'+i).style.display='none';

			
					if(i != id)
					{
					   document.getElementById('dt'+i).style.backgroundColor = '#FFFFFF';
					   document.getElementById('a'+i).style.backgroundColor = '#FFFFFF';
					   document.getElementById('a'+i).style.color = '#005189';
					}
                }
	}

	
	
	if (d) 
    {
			d.style.display='block'; 

            var colorTexte = "";
			var backgroundColorMenu = "";

			if(id == "1") colorTexte = "#98a0c2";
			if(id == "2") colorTexte = "#b0ca34";
			if(id == "3") colorTexte = "#6a7fb8";
			if(id == "4") colorTexte = "#c8b0d2";
			if(id == "5") colorTexte = "#f7aa42";

			if(id == "1") backgroundColorMenu = "#005189";
			if(id == "2") backgroundColorMenu = "#005189";
			if(id == "3") backgroundColorMenu = "#005189";
			if(id == "4") backgroundColorMenu = "#005189";
			if(id == "5") backgroundColorMenu = "#005189";

            document.getElementById('dt'+id).style.backgroundColor = backgroundColorMenu;
			document.getElementById('a'+id).style.backgroundColor = backgroundColorMenu;
            document.getElementById('a'+id).style.color = colorTexte;
    }


}


function sizeFlash()
{
	var soustract;
	soustract = 130;

	nom = navigator.appName;
	vers = navigator.appVersion;
		
	/*if(nom == 'Microsoft Internet Explorer')
	{
		if(vers != "4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)") soustract = 190; // ie 6 ou -
	}*/

	var taille2;

	taille2 = document.getElementById("Milieu").offsetHeight;

	if(document.getElementById("Flash")) document.getElementById("Flash").style.height = taille2 + "px";
	//document.getElementById("Contenu").style.height = add2 + "px";
}
