

	var memoPAS, timeOutPAS, timeAlfaPAS, nbOpac, timeOpac, timeAttentePAS;
	var memoPAS=1;
	var memoSupPAS=5;
	var changePAS_OK=1;
	var defilManuPAS=0;
	

	function initPAS(){


		with (document.getElementById("imgPAS1").style)
		if (document.all) 
			filter="alpha(opacity=100)";
		else 
			opacity=1;

		for(i=2; i<6; i++)
			with (document.getElementById("imgPAS"+i).style) visibility="hidden";
	
		with (document.getElementById("htmlPAS1").style)
			if (document.all)filter="alpha(opacity=100)";
			else opacity=1;

		for(i=2; i<6; i++)
			with (document.getElementById("htmlPAS"+i).style) visibility="hidden";		

		tempsPAS()
	}

	function afficheManuPAS(numAffichPAS){
		if(numAffichPAS != memoPAS){

			clearTimeout(timeOutPAS);
			defilManuPAS=numAffichPAS;
			
			clearTimeout(timeOpac);
			timeAttentePAS = setTimeout('affichPAS()',150);
		}
	}

	function stopTempsAttente(){
		clearTimeout(timeAttentePAS);
	}


	function affichPAS(){

		if (defilManuPAS>0)
			memoPAS=defilManuPAS;
		

		document.imgSurvol.src="http://www.reef-ocean.com/fichiers/pubImgSurvol"+memoPAS+".gif"

		for(i=1; i<6; i++){		
			with (document.getElementById("imgPAS"+i).style) {
				visibility="hidden";
				if (document.all)
					filter="alpha(opacity=0)";
				else
					opacity=0;
			}
		}
		with (document.getElementById("imgPAS"+memoPAS).style) visibility="visible";		

		for(i=1; i<6; i++){		
			with (document.getElementById("htmlPAS"+i).style) {
				visibility="hidden";
				if (document.all)
					filter="alpha(opacity=0)";
				else
					opacity=0;
			}
		}
		with (document.getElementById("htmlPAS"+memoPAS).style) visibility="visible";
		
		

		nbOpac=1;
		clearTimeout(timeOpac)
		alfaChangePAS(); 		
	}


	function tournePAS(){
		memoSupPAS=memoPAS;
		memoPAS++;
	
		if (memoPAS==6) {
			memoPAS=1;
			memoSupPAS=5;
		}
		affichPAS();	
		tempsPAS();
	}




	function tempsPAS(){
		timeOutPAS = setTimeout('tournePAS()',4000);
	}


	function alfaChangePAS(){
		timeOpac= setTimeout('affichImgPAS()',50);	
	}

	
	function affichImgPAS(){
	
		with (document.getElementById("imgPAS"+memoPAS).style) {
			if (document.all)
				filter=eval('"alpha(opacity='+nbOpac+')"');
			else
				opacity=(nbOpac/100);
		}
	
	
		with (document.getElementById("htmlPAS"+memoPAS).style) {
			if (document.all)
				filter=eval('"alpha(opacity='+nbOpac+')"');
			else
				opacity=(nbOpac/100);
		}

		nbOpac=nbOpac+20;
		
		if(nbOpac > 120){
		}
		else{
			alfaChangePAS();
		}
	
	}


	var timeout;	
	var memo=1;
	var timeAttente;
	var img_MenuH1={
		img20:"catalogue",
		img21:"avantages",
		img22:"nosClients",
		img23:"paiementLivraison",
		img24:"service",
		img30:""
	};
	var coul_MenuH2={
		coul1:"#1f91da",
		coul2:"#799DC5",
		coul3:"#18BFB1",
		coul4:"#1AB688",
		coul5:"#1AB660"
	};




	function ouvFerm(numCalque){
		if(memo==numCalque){
			supCalque(numCalque);
			memo=1;
		}
		else{
			lanceCalque(numCalque);
		}
			
	}



	function initMenuH(){
		
	}

	function affCalque(nbCalque){
		c=nbCalque;
		timeAttente = setTimeout('lanceCalque(c)',300);
		stopTemps();		
	}
	

function lanceCalque(nbCalque){
		
		with (document.getElementById("claque" + memo).style) visibility="hidden";
		if(memo > 20)
			document.getElementById("imgInfo"+memo).src='http://www.reef-ocean.com/fichiers/MH_'+eval("img_MenuH1.img"+memo)+'_1.gif';
		if(memo < 20)
			with (document.getElementById("boutMenuH2_" + memo).style) backgroundColor = "";

		if(nbCalque == 24)
			document.getElementById("claque24").style.display="none";
		
		
		if(nbCalque > 20){
			document.getElementById("imgInfo"+nbCalque).src='http://www.reef-ocean.com/fichiers/MH_'+eval("img_MenuH1.img"+nbCalque)+'_2.gif';
			document.getElementById("imgInfo20").src='http://www.reef-ocean.com/fichiers/MH_'+img_MenuH1.img20+'_1.gif';
		}

		if(nbCalque < 20){
			with (document.getElementById("boutMenuH2_" + nbCalque).style) backgroundColor = eval("coul_MenuH2.coul" + nbCalque);
			document.getElementById("imgInfo20").src='http://www.reef-ocean.com/fichiers/MH_'+img_MenuH1.img20+'_2.gif';
		}
			document.getElementById("claque" + nbCalque).style.visibility="visible";
		
			if(nbCalque == 24)
					document.getElementById("claque24").style.display="block";
		
		memo=nbCalque;
}

function supCalque(nbCalque){


		if(memo > 20)
			document.getElementById("imgInfo"+memo).src='http://www.reef-ocean.com/fichiers/MH_'+eval("img_MenuH1.img"+memo)+'_1.gif';
			
		if(nbCalque == 24)
			document.getElementById("claque24").style.display="none";			
		
		with (document.getElementById("claque" + memo).style) visibility="hidden";
		
		if(memo < 20)
			with (document.getElementById("boutMenuH2_" + memo).style) backgroundColor = "";		
		
		document.getElementById("imgInfo20").src='http://www.reef-ocean.com/fichiers/MH_'+img_MenuH1.img20+'_2.gif';		


}	


	function temps(){
		timeout = setTimeout('supCalque(memo)',300);
		clearTimeout(timeAttente);			
	}
	
	function stopTemps(){
		clearTimeout(timeout);
	}





	function montageBandeauDroit(){

		
		var designMV=designUnivers;

    	document.write('<a href="http://www.reef-ocean.com/reef-ocean.php"><div style="margin-top: 21px;"><img src="http://www.reef-ocean.com/fichiers/livraison-gratuite.gif" border="0"></a></div>');

          	document.write('<a href="http://www.reef-ocean.com/avis-reef-ocean/index/" alt="Avis des Clients Reef Ocean" title="Avis des Clients Reef Ocean"><div style="margin-top: 21px;" align="center"><img src="http://www.reef-ocean.com/images/entete-avis-client.gif" border="0"></a></div>');

		document.write('<a href="http://www.reef-ocean.com/paiement.php"><div style="margin-top: 21px;"><img src="http://www.reef-ocean.com/fichiers/bloc_modesPaiement.gif" border="0"></a></div>');
		
			document.write('<a href="http://www.reef-ocean.com/aquarium/Pierres-Vivantes-aquariophilie-292.html"><div style="margin-top: 21px;"><img src="http://www.reef-ocean.com/fichiers/rochesvivantes.gif" border="0"></a></div>');
		
		
				document.write('<a href="http://www.reef-ocean.com/aquarium/Nourriture-Surgelee-aquariophilie-294.html"><div style="margin-top: 21px;"><img src="http://www.reef-ocean.com/fichiers/surgele.jpg" border="0"></a></div>');
		
		document.write('<a href="http://www.reef-ocean.com/petites-annonces/petites-annonces.php"><div style="margin-top: 21px;"><img src="http://www.reef-ocean.com/fichiers/petites-annonces.gif" border="0"></a></div>');
		
		
		      	document.write('<a href="http://www.reef-ocean.com/aquariums-clients/aquariums.php"><div style="margin-top: 21px;"><img src="http://www.reef-ocean.com/fichiers/les-bacs-des-clients.gif" border="0"></a></div>');
		
		
				
	}


	function montageBandeauGaucheAccueil(){
	
			document.write('<div style="margin-top: 20px;"><a href="http://www.reef-ocean.com/reef-ocean.php"><img src="http://www.reef-ocean.com/fichiers/blocChoisirPC2.gif" border="0"></a></div>');	
	
	}





	function init_menuG(){

	}


	function gestion_MenuG(universMG){
	if( document.getElementById("bloc_univers" + universMG).style.display == "none" )
{
with (document.getElementById("bloc_univers" + universMG).style) display="block";
}
else
{
  with (document.getElementById("bloc_univers" + universMG).style) display="none";
}	

  }



	function insertProd(){

		var Destination = document.getElementById('insertProdHaut'); 
		
		var blocProdHaut='';
	
		if( delaiApproTexteArray["0$4"]=="Disponibilité : cet article est en stock.")
			blocProdHaut=blocProdHaut+'<img src="http://www.reef-ocean.com/fichiers/pictoStock.gif">';
		
		if(document.formulaire.prix.value >= 359)
			blocProdHaut=blocProdHaut+'<a href="reef-ocean.php"><img src="http://www.reef-ocean.com/fichiers/pictoLivraison.gif" border="0"></a>';
		
		if(document.formulaire.prix.value >= 299)
			blocProdHaut=blocProdHaut+'<a href="reef-ocean.php"><img src="http://www.reef-ocean.com/fichiers/picto3xSF.gif" border="0"></a>';
			

			
			blocProdHaut=blocProdHaut+'<a href="reef-ocean.php"><img src="http://www.reef-ocean.com/fichiers/pictoAlignePrix.gif" border="0"></a><img src="http://www.reef-ocean.com/fichiers/pictoProdQualite.gif" border="0">';

						
				
		blocProdHaut=blocProdHaut+'<div style="background-color: #222222; width: 450px; margin-top: 5px;"><img src="http://www.reef-ocean.com/fichiers/espaceur.gif" width="1" height="1"></div>'
			+'<a href="reef-ocean.php"><img src="http://www.reef-ocean.com/fichiers/pictoSatisfait.gif" border="0"></a>'
			+'<a href="reef-ocean.php"><img src="http://www.reef-ocean.com/fichiers/pictoDevis.gif" border="0"></a>'
			+'<div style="background-color: #222222; width: 450px; margin-bottom: 15px;"><img src="http://www.reef-ocean.com/fichiers/espaceur.gif" width="1" height="1"></div>';		
		
		if(document.formulaire.choix_1){
		}
		else{
			blocProdHaut=blocProdHaut+'<div style="margin-bottom: 25px;"><a href="#" onclick="IsNumeric();return false;"><img src="http://www.reef-ocean.com/fichiers/ajouter.gif" border="0"></a></div>';
		}		
	
		Destination.innerHTML =	 blocProdHaut;
	
		var Destination = document.getElementById('insertProdBas'); 
		if(document.formulaire.choix_1){
			blocProdBas='<div style="background-color: #222222; width: 450px; margin-top: 25px;"><img src="http://www.reef-ocean.com/fichiers/espaceur.gif" width="1" height="3"></div>'
				+'<img src="http://www.reef-ocean.com/fichiers/banTel.gif">'
				+'<div style="background-color: #222222; width: 450px; margin-bottom: 20px;"><img src="http://www.reef-ocean.com/fichiers/espaceur.gif" width="1" height="1"></div>';
		}		
		Destination.innerHTML =	 blocProdBas;		


	
	
	}


	

	function montageInfosPied(){		
		document.write('<div><a href="http://www.reef-ocean.com/paiement.php"><img src="http://www.reef-ocean.com/fichiers/pied_banPaiement.gif" border="0"></a></div>'
			+'<div><a href="http://www.reef-ocean.com/livraison.php"><img src="http://www.reef-ocean.com/fichiers/pied_banLivraison.gif" border="0"></a></div>');
	}





		
	function favoris() { 
		if ( navigator.appName != 'Microsoft Internet Explorer' ) { 
			window.sidebar.addPanel("Reef-Ocean.com - Matériel pour les aquariums","http://www.reef-ocean.com/",""); 
		} 
		else { 
			window.external.AddFavorite("http://www.reef-ocean.com/","Reef-Ocean.com - Matériel pour les aquariums"); 
		} 
	} 

		



	
	function focusMotValue()
	{
		if (document.form_search.recherche.value == 'Recherchez un article')
			document.form_search.recherche.value='';
	}
	function blurMotValue()
	{
		if (document.form_search.recherche.value == '')
			document.form_search.recherche.value='Recherchez un article';
	}	
	
	


	function verification(){

		if (document.form_search.recherche.value == '')
			alert ('Veuillez entrer au moins un mot a rechercher. ');
		else document.form_search.submit();
	}




	function focusMotValueNL()
	{
		if (document.form_mailing.email.value == 'Entrez votre E-mail')
			document.form_mailing.email.value='';
	}
	function blurMotValueNL()
	{
		if (document.form_mailing.email.value == '')
			document.form_mailing.email.value='Entrez votre E-mail';
	}
	
	
	
	function verif()
	{ 	var stop=0;
		var str='';
		var adresse = document.form_mailing.email.value;
		var place = adresse.indexOf("@",1);
		var point = adresse.indexOf(".",place+1);
	
		if ((document.form_mailing.email.value == '') || (document.form_mailing.email.value == 'Entrez votre E-mail'))
		{	str=str+'\n - Votre E-mail';
			stop=1;
		}
		else
		{	if ((place > -1)&&(adresse.length >2)&&(point > 1)&&(adresse.length > point+2))
			{
			}
			else
			{	if (stop == 0)
				{	stop=1;
					alert('Veuillez saisir une adresse E-mail valide.');
					document.form_mailing.email.focus();
				}
			}
		}
		
		if (stop==0) {
			document.form_mailing.action="/newsletter/inscription/";
			document.form_mailing.submit();
		}
		else if (str != '') {
			alert('Veuillez saisir : '+str);
		}
	}



















