<!--
function fadeInText(paragraphId, couleur){ 
	//document.getElementById(paragraphId).style.display="block";
	if(couleur<255) { //If color is not white yet
		couleur+=11; // increase color darkness
		document.getElementById(paragraphId).style.color="rgb("+couleur+","+couleur+","+couleur+")";
		setTimeout("fadeInText('"+paragraphId+"', "+couleur+")",10); 
	}
	else couleur=0; //reset couleurTitre value
}
function printParagraph(i, nb) {
	document.getElementById("sampleTheme").innerHTML=theme[i];
	document.getElementById("sample").innerHTML=titre[i];

	fadeInText("sample"+i, 0);
	//document.getElementById("close").innerHTML="sample"+i;
	if(i<nb-1) i++;
	else i=0;
	//alert(i);
	setTimeout("printParagraph("+i+","+nb+")",5000); 
	
}

function initNews(nbNews){
	document.getElementById("sample0").style.color="rgb(0,0,0)";
	printParagraph(0, nbNews);
}

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_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_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 fenetreCent(url,nom,largeur,hauteur,options) {
var haut=(screen.height-hauteur)/2;
var Gauche=(screen.width-largeur)/2;
fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}

function Open(URL) {
window.open(URL);
}

function ouvreDiv(Groupe, id) {
	var i=1;
	while(document.getElementById(Groupe + '_' + i)) {
		if(i == id) {
			document.getElementById(Groupe + '_' + i).className = 'visible';
			document.getElementById(Groupe + '_a_' + i).className = 'div_visible';
			document.getElementById(Groupe + '_a_' + i).blur();
		} else {
			document.getElementById(Groupe + '_' + i).className = 'invisible';
			document.getElementById(Groupe + '_a_' + i).className = 'div_invisible';
		}
		i++;
	}
}

function ouvre_div(MaDiv){
  document.getElementById(MaDiv).style.display="block";
  document.getElementById(MaDiv).style.visibility="visible"; 
}

function ferme_div(MaDiv){
  document.getElementById(MaDiv).style.display="none";
  document.getElementById(MaDiv).style.visibility="hidden"; 
}

function afficheId(baliseId) 
  {
  if (document.getElementById && document.getElementById(baliseId) != null) 
    {
    document.getElementById(baliseId).style.visibility='visible';
    document.getElementById(baliseId).style.display='block';
    }
  }

function cacheId(baliseId) 
  {
  if (document.getElementById && document.getElementById(baliseId) != null) 
    {
    document.getElementById(baliseId).style.visibility='hidden';
    document.getElementById(baliseId).style.display='none';
    }
  }

function LienSortant(text, href, title, after_text, rel) {
			if (text == null || typeof(text) == "undefined") text = "undefined";
			if (href == null || typeof(href) == "undefined") href = "/";
			if (title == null || typeof(title) == "undefined") title = text;
			if (rel == null || typeof(rel) == "undefined") rel = "nofollow";
			if (after_text == null || typeof(after_text) == "undefined") after_text = "";
			
			document.write("<a " + " href='" + href + "' " + " title='" + title + "' >" + text + "</a>" + after_text);
			return true;
}

function Reselect(){
idoption = document.choix.marchands.value;
this.location.href = idoption;
}

function Reselect2(){
idoption = document.choix3.marchands2.value;
this.location.href = idoption;
}

function Reselect4(){
idoption = document.choix4.categories4.value;
this.location.href = idoption;
}

function Select(){
idoption = document.choix.categories.value;
this.location.href = idoption;
}


function select_Cat1(){
idoption = document.choix_cat1.categorie_comp1.value;
this.location.href = idoption;
}
function select_Cat2(){
idoption = document.choix_cat2.categorie_comp2.value;
this.location.href = idoption;
}
function select_Cat3(){
idoption = document.choix_cat3.categorie_comp3.value;
this.location.href = idoption;
}
function select_Cat4(){
idoption = document.choix_cat4.categorie_comp4.value;
this.location.href = idoption;
}
function select_Cat5(){
idoption = document.choix_cat5.categorie_comp5.value;
this.location.href = idoption;
}


function Select_cadeaux(){
idoption = document.choix_categ_cadeaux.categories_cadeaux.value;
this.location.href = idoption;
}

function ReSelect_cadeaux(){
idoption = document.choix_prix_cadeaux.prix_cadeaux.value;
this.location.href = idoption;
}


function valide(rechercher)
{
	if (rechercher.r.value.length < 3)
	{
		alert("Veuillez entrer au moins 3 caractères, merci.");
		rechercher.r.focus();
		return false;
	}
	
	return true;
}

function voirMenu(id) {
	
	document.getElementById("cadre1").style.display="none";
	document.getElementById("cadre2").style.display="none";
	document.getElementById("cadre3").style.display="none";
	document.getElementById("cadre4").style.display="none";		
	document.getElementById("cadre5").style.display="none";		
	document.getElementById("cadre6").style.display="none";		
	document.getElementById("cadre7").style.display="none";	
		
	document.getElementById("cadre" + id).style.display="block";
}

function favoris(){
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Microsoft Internet Explorer" & browserVer >= 4) {
window.external.AddFavorite('http://www.annuairedesoffres.com', 'Annuaire des offres');
}
} 

function focus_champs(champ){
		
		if (champ=='email'){
			if (document.newsletter.email.value==' Votre email'){
				document.newsletter.email.value = '';
			}
		}
			
		if (champ=='motcle'){
			if (document.rechercher_droite.r.value==' Par mot clé...'){
				document.rechercher_droite.r.value = '';
			}
		}
}
	
	
function verification_envoi_ami()
{
	 
 if(document.envoi_ami.ami.value == "")  {
   alert("Veuillez entrer le nom de votre ami(e)");
   document.envoi_ami.ami.focus();
   return false;
  }
  
  else
  
	var email 	= document.envoi_ami.m_ami.value;
   	var verif 	= /^[a-zA-Z0-9_-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,4}$/
   	if (verif.exec(email) == null)
	{
	alert("Veuillez vérifier l'adresse email de votre ami(e)");
   document.envoi_ami.m_ami.focus();
   return false;   
	}

 else  
 
   if(document.envoi_ami.nom.value == "") {
   alert("Veuillez entrer votre nom");
   document.envoi_ami.nom.focus();
   return false;
  }
  
  else

	var email 	= document.envoi_ami.m_envoi.value;
   	var verif 	= /^[a-zA-Z0-9_-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,4}$/
   	if (verif.exec(email) == null)
	{
	alert("Veuillez vérifier votre adresse email");
   document.envoi_ami.m_envoi.focus();
   return false;   
	}  

return true
}	


function verification_commentaires()
{
	 
 if(document.ajout_commentaires.nom.value == "")  {
   alert("Veuillez entrer votre nom ou pseudo");
   document.ajout_commentaires.nom.focus();
   return false;
  }
  
 else  
 
   if(document.ajout_commentaires.mess.value == "") {
   alert("Veuillez donner votre avis sur ce site");
   document.ajout_commentaires.mess.focus();
   return false;
  }

return true
}	


function verification_signaler()
{
	 
 if(document.ajout_signaler.nom.value == "")  {
   alert("Veuillez entrer votre nom ou pseudo");
   document.ajout_signaler.nom.focus();
   return false;
  }

 else  
 
   if(document.ajout_signaler.mess.value == "") {
   alert("Veuillez entrer votre message");
   document.ajout_signaler.mess.focus();
   return false;
  }
  

return true
}

function verification_envoi_preferes()
{
	 
	var email 	= document.envoi_preferes.email.value;
   	var verif 	= /^[a-zA-Z0-9_-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,4}$/
   	if (verif.exec(email) == null)
	{
	alert("Veuillez vérifier votre adresse email");
   document.envoi_preferes.email.focus();
   return false;   
	}

return true
}	

function verification_proposition_boutique()
{
	 
 if(document.proposition_boutique.nom.value == "")  {
   alert("Veuillez votre nom");
   document.proposition_boutique.nom.focus();
   return false;
  }
  
  else
  
	var email 	= document.proposition_boutique.email_contact.value;
   	var verif 	= /^[a-zA-Z0-9_-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,4}$/
   	if (verif.exec(email) == null)
	{
	alert("Veuillez vérifier votre adresse email");
   document.proposition_boutique.email_contact.focus();
   return false;   
	}

 else  
 
   if(document.proposition_boutique.site.value == "") {
   alert("Veuillez entrer le nom de votre boutique");
   document.proposition_boutique.site.focus();
   return false;
  }
  
  else

   mon_champ = document.proposition_boutique.adresse.value;
   if(mon_champ.length <= 11) {
   alert("Veuillez entrer l'adresse de votre boutique");
   document.proposition_boutique.adresse.focus();
   return false;
  }
   
  else

   mon_champ2 = document.proposition_boutique.url.value;
   if(mon_champ2.length <= 11) {
   alert("Veuillez entrer l'adresse du lien de retour");
   document.proposition_boutique.url.focus();
   return false;
  }
  
  else  

nbre =0;
var T_Input = document.proposition_boutique.getElementsByTagName('input');
for( var i=0; i< T_Input.length; i++) {
  if( T_Input[i].type == "checkbox"){
    if( T_Input[i].checked) {
      nbre++;
	}
  }
}

if (nbre < 1 ) {
    alert('Veuillez cocher une ou plusieurs catégories');
    return false;
}

 else  
 
   if(document.proposition_boutique.message.value == "") {
   alert("Veuillez donner une description de votre site");
   document.proposition_boutique.message.focus();
   return false;
  }


return true
}	

<!-------------------------------------------------------------------------------->

// Script créé par et pour Tout JavaScript.com http://www.toutjavascript.com
// Utilisation gratuite à condition de laisser les commentaires d'origine

// CreerCurseur(nom,min,max,pas,largeur,hauteur,gifon,gifoff,gifmoins,gifplus,delai)
var note=new CreerCurseur("note",0,5,1,30,30,"images/etoile_foncee2.gif","images/etoile_claire2.gif","images/gif_moins.gif","images/gif_plus.gif",200);

function CreerCurseur(nom,min,max,pas,largeur,hauteur,gifon,gifoff,gifmoins,gifplus,delai) {
	this.nom=nom; this.valeur=Math.round((max-min)-1); this.action=0; this.delai=delai;
	this.min=min; this.max=max; this.pas=pas;
	this.largeur=largeur; this.hauteur=hauteur;
	this.gifon=gifon; this.gifoff=gifoff; this.gifmoins=gifmoins; this.gifplus=gifplus;
    this.Plus=PlusCurseur; this.Moins=MoinsCurseur; this.Affecte=AffecteCurseur;
	this.Affiche=AffCurseur;
	this.Update=UpdateCurseur;
}

// Cette fonction est appelée par le bouton OK pour valider la note
function NoteScript() {
		document.forms["ajout_commentaires"].elements["lanote"].value=note.valeur;
		// faire le submit si vous voulez envoyer la note au serveur
		// document.forms["ajout_commentaires"].submit();
}

function AffCurseur() {
	var Z="<table cellpadding='0' cellspacing='0' border='0'><tr><td valign='middle'><A style='cursor: pointer; ' onmouseover='javascript:eval(\""+this.nom+".action=-1\");eval(\""+this.nom+".Moins()\")' onmouseout='javascript:eval(\""+this.nom+".action=0\")'><IMG src='"+this.gifmoins+"' border=0 height="+10+" alt='Moins'></A>&nbsp;</td>";
	for (var i=this.min;i<this.max;i++) {
      if (i<this.valeur) {gif=this.gifon;} else {gif=this.gifoff;}
	  Z+="<td valign='middle'><A style='cursor: pointer; ' onmouseover='javascript:eval(\""+this.nom+".Affecte("+((i+1)*this.pas)+")\")'>"; 
	  Z+="<IMG name="+this.nom+i+" src='"+gif+"' width="+this.largeur+" height="+this.hauteur+" border=0 alt='"+this.nom+" : "+(this.pas*(i+1))+"'>";
	  Z+="</A></td>";
	}
	Z+="<td valign='middle'>&nbsp;<A style='cursor: pointer; ' onmouseover='javascript:eval(\""+this.nom+".action=1\");eval(\""+this.nom+".Plus()\")' onmouseout='javascript:eval(\""+this.nom+".action=0\")'><IMG src='"+this.gifplus+"' border=0 height="+10+" alt='Plus'></A></td></tr></table>";
	document.write(Z);
}
function PlusCurseur() {
	this.valeur+=this.pas;
	if (this.valeur>this.max) {this.valeur=this.max}
	this.Update();
	if (this.action==1) {setTimeout(this.nom+".Plus()",this.delai);}
}
function MoinsCurseur() {
	this.valeur-=this.pas;
	if (this.valeur<this.min) {this.valeur=this.min}
	this.Update();
	if (this.action==-1) {setTimeout(this.nom+".Moins()",this.delai);}
}
function AffecteCurseur(val) {
	this.valeur=val;
	this.Update();
}
function UpdateCurseur() {
	for (var i=this.min;i<this.max;i++) {
      if (i<this.valeur) {gif=this.gifon;} else {gif=this.gifoff;}
	  document.images[this.nom+i+""].src=gif;
	}
	Update("imgnote",this.valeur,this.max);
}
function Update(img,val,max) {
	if (val==5) {src='images/note5.gif'}
	if (val==4) {src='images/note4.gif'}
	if (val==3) {src='images/note3.gif'}
	if (val==2) {src='images/note2.gif'}
	if (val==1) {src='images/note1.gif'}	
	document.images[img].src=src;
}

function load() {
	if (document.images) {
		this.length=load.arguments.length;
		for (var i=0;i<this.length;i++) {
			this[i+1]=new Image();
			this[i+1].src=load.arguments[i];
		}
	}
}
function preload() {
	var temp=new load("images/note1.gif","images/note2.gif","images/note3.gif","images/note4.gif","images/note5.gif");
}

// -->