// affichage de la date
<!--//
navvers = navigator.appVersion.substring(0,1);
if (navvers > 3)
   navok = true;
else
   navok = false;

today = new Date;
jour = today.getDay();
numero = today.getDate();
if (numero<10)
   numero = "0"+numero;
mois = today.getMonth();
if (navok)
   annee = today.getFullYear();
else
   annee = today.getYear();
TabJour = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
TabMois = new Array("janvier","f&eacute;vrier","mars","avril","mai","juin","juillet","aout","septembre","octobre","novembre","décembre");
messageDate = TabJour[jour] + " " + numero + " " + TabMois[mois] + " " + annee;
//-->


// la fonction favoris
<!--//
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("planetmaison.com","http://www.planetmaison.com/",""); }
else { window.external.AddFavorite("http://www.planetmaison.com/","planetmaison.com"); } }
//-->

// inscription newsletter
<!--//
function simpleCheckEmail(){
  document.formul.from.value=document.location.href;
  document.formul.email.value =
  document.formul.email.value.toLowerCase();
  myreg=/^[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,3}$/;
  if (!myreg.test(document.formul.email.value)) {
   alert("Le format de votre adresse est incorrect.");
   return false
  }
  return true
 }
 //-->
 
// fonction pour switcher les onglets du block services
<!--
function multiClass(eltId) {
	arrLinkId = new Array('_0','_1','_2');
	intNbLinkElt = new Number(arrLinkId.length);
	arrClassLink = new Array('current','ghost');
	strContent = new String()
	for (i=0; i<intNbLinkElt; i++) {
		strContent = "menu"+arrLinkId[i];
		if ( arrLinkId[i] == eltId ) {
			document.getElementById(arrLinkId[i]).className = arrClassLink[0];
			document.getElementById(strContent).className = 'on content';
		} else {
			document.getElementById(arrLinkId[i]).className = arrClassLink[1];
			document.getElementById(strContent).className = 'off content';
		}
	}	
}
-->

// fonction pour switcher les onglets du block communaute
<!--
function multiClass2(eltId) {
	arrLinkId = new Array('_3','_4');
	intNbLinkElt = new Number(arrLinkId.length);
	arrClassLink = new Array('current','ghost');
	strContent = new String()
	for (i=0; i<intNbLinkElt; i++) {
		strContent = "menu"+arrLinkId[i];
		if ( arrLinkId[i] == eltId ) {
			document.getElementById(arrLinkId[i]).className = arrClassLink[0];
			document.getElementById(strContent).className = 'on content';
		} else {
			document.getElementById(arrLinkId[i]).className = arrClassLink[1];
			document.getElementById(strContent).className = 'off content';
		}
	}	
}
-->

// fonction pour le diapo d'images E-catalogue
<!--
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_showHideLayers() { //v6.0
 var i,p,v,obj,args=MM_showHideLayers.arguments;
 for (i=0; i<(args.length-2); i+=2) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
 if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
 obj.visibility=v; }
}

function nb_aleatoire(nb)
{
 return Math.floor(Math.random() * nb)+1;
}

encart = new Array();
encart[0] = 'Layer1';
encart[1] = 'Layer2';


longueur = encart.length-1;
chiffre = nb_aleatoire(longueur+1) - 1;
slide = 1;
play = "http://www.planetmaison.com/images/site/homev2/pause_on.gif";

function stop(){
 slide=0;
}

function go(){
 slide=1;
}

function plus(){
if (slide == 1){
 document.getElementById('play').src = "http://www.planetmaison.com/images/site/homev2/pause_on.gif";
 if(chiffre == longueur){
 chiffre = 0;
 }else{
 chiffre++;
 }
}else{
 document.getElementById('play').src = "http://www.linternaute.com/femmes/image/gen/play_on.gif";
}
MM_showHideLayers(encart[0],"","hide");
MM_showHideLayers(encart[1],"","hide");

MM_showHideLayers(encart[chiffre],'','show');
fond(chiffre+1);
changement = 2;
if (slide == 1){
 window.setTimeout("plus()", (changement*1000));
}
}
-->


 
 