function email( b1, d1 ){ document.write('<a href="mailto:'+ b1 + '@' + d1 +'">'+ b1 + '@' + d1 +'</a>');}

function ref2( ref )
{
  document.write('<a target="aquariofil_caddy" href="/fr/ajout_produit.php?ref=' + ref + '&qty=1"><img src="/img/achati.jpg" alt="Ajouter au panier" border="0"></A>');
}

function dm(msgStr) {
 document.returnValue = false ;
 if (document.images) { 
  window.status = msgStr ;
  document.returnValue = true ;
 }
}

function ref( ref )
{
  document.write(' <table width="84" border="0" cellspacing="0" cellpadding="0">');
  document.write('  <tr> ');
  document.write('<form target="aquariofil_caddy" action="/fr/ajout_produit.php" method="get" name="formQuantite' + ref +'">');
  document.write(' <input type="hidden" name="ref" value="' + ref + '">');
  document.write('   <td width="20"><input name="qty" maxlength="6" size="2" value="1"></td>');
  document.write('   <td width="40"> ');
  document.write('    <input onmouseover="dm(\'ref ' + ref + '\')" alt="Ajouter au panier" border="0" height="26" src="/img/achat.jpg" type="image" width="40" name="Commander">');
  document.write('   </td>');
  document.write('</form>');
  document.write('  </tr>');
  document.write(' </table>');
}

function add(cel,val,max) 
{
  pluriel = "";
  nb = document[cel].qty.value;
  nb = parseInt(nb) + parseInt(val);
  if (nb <1) {nb = 1}
  if (max>1) {pluriel = "s"}
  document[cel].qty.value = nb;
  
  if (nb > max) {
  alert ("Il n'est pas possible de commander plus\nde " + max + " exemplaire" + pluriel + " de ce produit");
  document[cel].qty.value = max;
  }
}


//function menu_haut()
function menu_haut_old()
{
document.write('<table cellspacing="5" width="100%"><tr><td>');
document.write('<table width="100%"><tr><td>');
document.write('<table cellspacing="1" width="100%"><tr align="center">');
document.write('<td width="33%" class="lgtxt"><a href="/fr/plan.html">Plan du site</a></td>');
document.write('<td width="33%" class="lgtxt"><a href="/fr/manifestations_aquariophiles.html">Manifestations</a></td>');
document.write('<td width="34%" class="lgtxt"><a href="/fr/livredor.html">Livre d\'Or</a></td>');
document.write('</tr><tr align="center">');
document.write('<td class="lgtxt"><a href="/fr/faq.html#ancre1">L\'entreprise</a></td>');
document.write('<td class="lgtxt"><a href="/fr/annonces.html">Petites Annonces</a></td>');
document.write('<td class="lgtxt"><a href="/fr/transport.html">Frais de port</a></td>');
document.write('</tr><tr align="center">');
document.write('<td class="lgtxt"><a href="/fr/condition_vente.html">Conditions de vente</a></td>');
document.write('<td class="lgtxt"><a href="/fr/liens.html">Liens int&eacute;ressants</a></td>');
document.write('<td class="lgtxt"><b>Tarif <a href="/fr/cat/catalogue.txt">&agrave; imprimer</a></b></td>');
document.write('</tr></table></td>');
document.write('<td><table width="100%"><tr align="center">');
document.write('<td><a href="/fr/cat/index.html"><img src="/photo_catalog/A_logo_CATALOGUE.JPG" width="125" height="94" align="bottom" alt="Catalogue" border="0"></a></td>');
document.write('<td><a href="/fr/commande.php" TARGET="_blank"><img src="/photo_catalog/A_logo_COMMANDE.JPG" width="118" height="100" align="bottom" alt="Bon de commande" border="0"></a></td>');
document.write('</tr></table>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');
}

function ticker_start() {
	var tickerSupported = false;
	TICKER_WIDTH = document.getElementById("TICKER").style.width;
	var img = "<img src=ticker_space.gif width="+TICKER_WIDTH+" height=0>";

	// Firefox
	if (navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Safari")!=-1) {
		document.getElementById("TICKER").innerHTML = "<TABLE  cellspacing='0' cellpadding='0' width='100%'><TR><TD nowrap='nowrap'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'>&nbsp;</SPAN>"+img+"</TD></TR></TABLE>";
		tickerSupported = true;
	}
	// IE
	if (navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1) {
		 document.getElementById("TICKER").innerHTML = "<DIV nowrap='nowrap' style='width:100%;'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'></SPAN>"+img+"</DIV>";
		 tickerSupported = true;
	}
	if(!tickerSupported) document.getElementById("TICKER").outerHTML = ""; else {
		 document.getElementById("TICKER").scrollLeft = TICKER_RIGHTTOLEFT ? document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth : 0;
		 document.getElementById("TICKER_BODY").innerHTML = TICKER_CONTENT;
		 document.getElementById("TICKER").style.display="block";
		 TICKER_tick();
	}
}

function TICKER_tick() {
	if(!TICKER_PAUSED) document.getElementById("TICKER").scrollLeft += TICKER_SPEED * (TICKER_RIGHTTOLEFT ? -1 : 1);
	if(TICKER_RIGHTTOLEFT && document.getElementById("TICKER").scrollLeft <= 0) document.getElementById("TICKER").scrollLeft = document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth;
	if(!TICKER_RIGHTTOLEFT && document.getElementById("TICKER").scrollLeft >= document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth) document.getElementById("TICKER").scrollLeft = 0;
	window.setTimeout("TICKER_tick()", 30);
}


function menu_haut()
{

document.write('<table cellspacing="5" width="100%"><tr><td>');
document.write('<table width="100%"><tr><td>');
document.write('<table cellspacing="1" width="100%"><tr align="center">');
document.write('<td width="33%" class="lgtxt"><a href="/fr/plan.html">Plan du site</a></td>');
document.write('<td width="33%" class="lgtxt"><a href="/fr/manifestations_aquariophiles.html">Manifestations</a></td>');
document.write('<td width="34%" class="lgtxt"><a href="/fr/livredor.html">Livre d\'Or</a></td>');
document.write('</tr><tr align="center">');
document.write('<td class="lgtxt"><a href="/fr/faq.html#ancre1">L\'entreprise</a></td>');
document.write('<td class="lgtxt"><a href="/fr/annonces.html">Petites Annonces</a></td>');
document.write('<td class="lgtxt"><a href="/fr/transport.html">Frais de port</a></td>');
document.write('</tr><tr align="center">');
document.write('<td class="lgtxt"><a href="/fr/condition_vente.html">Conditions de vente</a></td>');
document.write('<td class="lgtxt"><a href="/fr/liens.html">Liens int&eacute;ressants</a></td>');
document.write('<td class="lgtxt"><b>Tarif <a href="/fr/cat/catalogue.txt">&agrave; imprimer</a></b></td>');
document.write('</tr></table></td>');
document.write('<td><table width="100%"><tr align="center">');
document.write('<td><a href="/fr/cat/index.html"><img src="/photo_catalog/A_logo_CATALOGUE.JPG" width="125" height="94" align="bottom" alt="Catalogue" border="0"></a></td>');
document.write('<td><a href="/fr/commande.php" TARGET="_blank"><img src="/photo_catalog/A_logo_COMMANDE.JPG" width="118" height="100" align="bottom" alt="Bon de commande" border="0"></a></td>');
document.write('</tr></table>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');

}

function menu_haut1()
{

document.write('<table>');
document.write('<tr><td align="right">');
document.write('<DIV ID="TICKER" STYLE="overflow:hidden; width:1200px">');
document.write('&nbsp;&nbsp;&nbsp;&nbsp;OPERATION PORTES OUVERTES !!!&nbsp;&nbsp;&nbsp;AQUARIOFIL.COM ouvre ses portes le Dimanche 19 avril 2009 de 9 h. à 18 h. pour la Bourse aux Poissons de Beaucaire.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('Réservez votre matériel (tél. 06 76 66 54 16). &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('Notre adresse : 30 route de St Gilles à Beaucaire (à 2 min de la Bourse aux Poissons)');
document.write('&nbsp;&nbsp;&nbsp;&nbsp;OPERATION PORTES OUVERTES !!!&nbsp;&nbsp;&nbsp;AQUARIOFIL.COM ouvre ses portes le Dimanche 19 avril 2009 de 9 h. à 18 h. pour la Bourse aux Poissons de Beaucaire.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('Réservez votre matériel (tél. 06 76 66 54 16). &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('Notre adresse : 30 route de St Gilles à Beaucaire (à 2 min de la Bourse aux Poissons)');
document.write('&nbsp;&nbsp;&nbsp;&nbsp;OPERATION PORTES OUVERTES !!!&nbsp;&nbsp;&nbsp;AQUARIOFIL.COM ouvre ses portes le Dimanche 19 avril 2009 de 9 h. à 18 h. pour la Bourse aux Poissons de Beaucaire.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('Réservez votre matériel (tél. 06 76 66 54 16). &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('Notre adresse : 30 route de St Gilles à Beaucaire (à 2 min de la Bourse aux Poissons)');
document.write('</DIV>');
         	TICKER_CONTENT = document.getElementById("TICKER").innerHTML;
			TICKER_RIGHTTOLEFT = false;
			TICKER_SPEED = 2;
			TICKER_STYLE = "font-family: helvetica; font-size:28px; color:#004B41; font-weight: bold;";
			TICKER_PAUSED = false;
			ticker_start();
document.write('</td></tr>');
document.write('</table>');

document.write('<table cellspacing="5" width="100%"><tr><td>');
document.write('<table width="100%"><tr><td>');
document.write('<table cellspacing="1" width="100%"><tr align="center">');
document.write('<td width="33%" class="lgtxt"><a href="/fr/plan.html">Plan du site</a></td>');
document.write('<td width="33%" class="lgtxt"><a href="/fr/manifestations_aquariophiles.html">Manifestations</a></td>');
document.write('<td width="34%" class="lgtxt"><a href="/fr/livredor.html">Livre d\'Or</a></td>');
document.write('</tr><tr align="center">');
document.write('<td class="lgtxt"><a href="/fr/faq.html#ancre1">L\'entreprise</a></td>');
document.write('<td class="lgtxt"><a href="/fr/annonces.html">Petites Annonces</a></td>');
document.write('<td class="lgtxt"><a href="/fr/transport.html">Frais de port</a></td>');
document.write('</tr><tr align="center">');
document.write('<td class="lgtxt"><a href="/fr/condition_vente.html">Conditions de vente</a></td>');
document.write('<td class="lgtxt"><a href="/fr/liens.html">Liens int&eacute;ressants</a></td>');
document.write('<td class="lgtxt"><b>Tarif <a href="/fr/cat/catalogue.txt">&agrave; imprimer</a></b></td>');
document.write('</tr></table></td>');
document.write('<td><table width="100%"><tr align="center">');
document.write('<td><a href="/fr/cat/index.html"><img src="/photo_catalog/A_logo_CATALOGUE.JPG" width="125" height="94" align="bottom" alt="Catalogue" border="0"></a></td>');
document.write('<td><a href="/fr/commande.php" TARGET="_blank"><img src="/photo_catalog/A_logo_COMMANDE.JPG" width="118" height="100" align="bottom" alt="Bon de commande" border="0"></a></td>');
document.write('</tr></table>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');

}
