<!--
//  Copyright © 2004 Siti Tous droits réservés
function VersionNavigateur(Netscape, Explorer)
{
  if (( (navigator.appVersion.substring(0,3) >= Netscape) && (navigator.appName == 'Netscape')) ||
  ( (navigator.appVersion.substring(0,3) >= Explorer) && (navigator.appName.substring(0,9) == 'Microsoft') ))
      return true;
  else return false;
}


function fenetre(url,name,features)
{
  var smallwindow = window.open(url,name,features);
  smallwindow.focus();
}
function resizescreen()
{
    window.resizeTo(screen.width,screen.height);
}

// confirmer

function ConfirmPopupForm(form,mess)
{
    if (window.confirm(mess))
    {
        form.submit();
    }

}

function ChangeImageBanner(n)
{

    if (document.getElementById)
    {
        document.getElementById(['banner']).src = banner[n];
        document.getElementById(['bannerhref']).href = bannerhref[n];
    }
    else if (document.all)
    {
      document.all['banner'].src = banner[n];
      document.all['bannerhref'].href = bannerhref [n];
    }
    else
    {
      document.layers['banner'].src = banner[n];
      document.layers['bannerhref'].href = bannerhref[n];
    }

}
function Changepanier(nb)
{
    if (nb > 0) window.top.document.panier.src="/design_fr/panierplein.png";
    else window.top.document.panier.src="/design_fr/panier.png";
}

function changebanner()
{
delay = 10;    // Secondes avant

ChangeImageBanner(i);
timer = setTimeout('changebanner()', delay*1000);
i++;
if (i >= number) i= 0;
};

function imp_image(win,img,w,h,design)
{
    var toth = h + 30 + 40;
    var totw = w + 30;
    var smallwindow = win.open('','_blank',"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+totw+",height="+toth);
    var doc = smallwindow.document;
    doc.clear();
    doc.write("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1 \"><title>Image</title>");
    doc.write("</head>");
    doc.write("<body background=\"#FFFFFF\" >\n") ;
    doc.write("<div align=\"center\"><center><table border=\"0\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" height=\"100%\">");
    doc.write("<tr>");
    doc.write("<td colspan=\"2\" width=\""+w+"\" height=\""+h+"\"><img src=\"");
    doc.write(img);
    doc.write("\" width=\""+w+"\" height=\""+h+"\"></td>");
    doc.write("</tr>");
    doc.write("<tr>");
    doc.write("<td width=\"30%\" height=\"30\">");
    doc.write("<a href=\"javascript:window.close()\"><img name=\"Imgfermer\" align=\"absmiddle\" border=0 src=\""+design+"/bt_quit.png\" alt=\"Fermer\" width=\"20\" height=\"20\"></a>");
    doc.write("&nbsp;<a href=\"javascript:window.print()\"><IMG src=\""+design+"/imprim.gif\" width=\"59\" height=\"35\" border=\"0\" alt=\"Imprimer\" align=\"absmiddle\"></a>");
    doc.write("</td>");
    doc.write("<td width=\"70%\" height=\"30\">");
    doc.write("<font size=\"2\" face=\"Verdana\">&nbsp;</font>");
    doc.write("</td>");
    doc.write("</tr>");
    doc.write("</table>");
    doc.write("</center></div>");
    doc.write("</body>");
    doc.write("</html>");
    doc.close();
    smallwindow.focus();
}
function fenetre_image(win,img,w,h)
{
    var toth = h + 30 ;
    var totw = w + 30;
    var smallwindow = win.open('','_blank',"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+totw+",height="+toth);
    var doc = smallwindow.document;
    doc.clear();
    doc.write("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1 \"><title>Zoom Image</title>");
    doc.write("</head>");
    doc.write("<body background=\"#FFFFFF\" >\n") ;
    doc.write("<div align=\"center\"><center><table border=\"0\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" height=\"100%\">");
    doc.write("<tr>");
    doc.write("<td colspan=\"2\" width=\""+w+"\" height=\""+h+"\"><img src=\"");
    doc.write(img);
    doc.write("\" width=\""+w+"\" height=\""+h+"\"></td>");
    doc.write("</tr>");
    doc.write("</table>");
    doc.write("</center></div>");
    doc.write("</body>");
    doc.write("</html>");
    doc.close()
}
function imp_flash(win,fic,w,h,design)
{
    var toth = h + 30 + 40;
    var totw = w + 30;
    var smallwindow = win.open('','_blank',"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+totw+",height="+toth);
    var doc = smallwindow.document;
    doc.clear();
    doc.write("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1 \"><title>Coupon</title>");
    doc.write("</head>");
    doc.write("<body background=\"#FFFFFF\" >\n") ;
    doc.write("<div align=\"center\"><center><table border=\"0\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" height=\"100%\">");
    doc.write("<tr>");
    doc.write("<td colspan=\"2\" width=\""+w+"\" height=\""+h+"\">");
    doc.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" +w + "\" height=\""+ h + "\" id=\"plan\" align=\"middle\">");
    doc.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
    doc.write("<param name=\"movie\" value=\""+ fic + "\" />");
    doc.write("<param name=\"quality\" value=\"high\" />");
    doc.write("<param name=\"wmode\" value=\"transparent\" />");
    doc.write("<param name=\"bgcolor\" value=\"#ffffff\" />");
    doc.write("<embed src=\""+ fic + "\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#ffffff\" width=\""+w+"\" height=\""+h+"\" name=\"plan\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>");
    doc.write("</td>");
    doc.write("</tr>");
    doc.write("<tr>");
    doc.write("<td width=\"30%\" height=\"30\">");
    //doc.write("<a href=\"javascript:window.close()\"><img name=\"Imgfermer\" align=\"absmiddle\" border=0 OnMouseOver=\"Imgfermer.src='"+design+"/bt_quit_on.png'\" OnMouseOut=\"Imgfermer.src='"+design+"/bt_quit_off.png'\" src=\""+design+"/bt_quit_off.png\" OnLoad=\"tempImg=new Image(0,0); tempImg.src='"+design+"/bt_quit_on.png'\" alt=\"Fermer\"></a>");
    doc.write("<a href=\"javascript:window.close()\"><img name=\"Imgfermer\" align=\"absmiddle\" border=0 src=\""+design+"/bt_quit.png\" width=\"20\" height=\"20\" alt=\"Fermer\"></a>");
    doc.write("</td>");
    doc.write("<td width=\"70%\" height=\"30\">");
    doc.write("&nbsp;");
    doc.write("</td>");
    doc.write("</tr>");
    doc.write("</table>");
    doc.write("</center></div>");
    doc.write("</body>");
    doc.write("</html>");
    doc.close();
    smallwindow.focus();
}

function envoie_page(win,url,w,h,design)
{
    var toth = h + 30 + 40;
    var totw = w + 30;
    var smallwindow = win.open('','_blank',"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+totw+",height="+toth);
    var doc = smallwindow.document;
    doc.clear();
    doc.write("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1 \"><title>Envoyer page</title>");
    doc.write("<link rel=\"stylesheet\" href=\""+design+"/styles.css\">");
    doc.write("</head>");
    doc.write("<body class=\"IFrame\" background=\""+design+"/fondiframe.jpg\" >\n") ;
    doc.write("<div align=\"center\"><center><table border=\"0\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" height=\"100%\">");
    doc.write("<tr>");
    doc.write("<td colspan=\"2\" width=\""+w+"\" height=\""+h+"\" align=\"center\">Envoyer cette page à un ami");
    doc.write("<form action=\"/bin/email.php\" method=\"post\" name=\"mainform\">");
    doc.write("<input type=\"hidden\" value=\""+url+"\" name=\"URL\">");
    doc.write("Adresse Email : <input name=\"EMAIL\" type=\"text\" class=\"TBL_Form_Formulaire\" size=\"30\" maxlen=\"50\">");
    doc.write("<br /><br /><input name=\"ENVOYER\" type=\"image\" src=\""+design+"/bt_envoyer.png\"></form>");
    doc.write("</td>");
    doc.write("</tr>");
    doc.write("<tr>");
    doc.write("<td width=\"30%\" height=\"30\" style=\"text-align: left;vertical-align: bottom;\">");
    doc.write("<a href=\"javascript:window.close()\"><img name=\"Imgfermer\" align=\"absmiddle\" border=0 src=\""+design+"/bt_quit.png\" width=\"20\" alt=\"Fermer\" height=\"20\"></a>");
    doc.write("</td>");
    doc.write("<td width=\"70%\" height=\"30\">");
    doc.write("<font size=\"2\" face=\"Verdana\">&nbsp;</font>");
    doc.write("</td>");
    doc.write("</tr>");
    doc.write("</table>");
    doc.write("</center></div>");
    doc.write("</body>");
    doc.write("</html>");
    doc.close();
    smallwindow.focus();
}

var textischanged = false;

function OnChangeText(form)
{
    //form.Reserver.disabled = true;
    textischanged = true;
}

function ContinueCommande()
{
    if (!textischanged)
        document.continueform.submit()
    else alert("Vous devez cliquer sur le bouton 'Valider les quantités' avant de pouvoir continuer");
}

function CompteCar(txtarea,max) {

  var txt=txtarea.value;
  var nb=txt.length;
  if (nb>max) {
    alert("Pas plus de "+max+" caractères dans ce champ");
    txtarea.value=txt.substring(0,max);
    nb=max;
  }
}

function RunFlash(swf, hauteur, largeur, couleur, wmode, nom) {
document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+hauteur+"\" height=\""+largeur+"\" id=\""+nom+"\" align=\"middle\">\n");
document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />\n");
if ((wmode == "transparent") || (wmode == "opaque"))
    document.write("<param name=\"wmode\" value=\""+wmode+"\" />\n");
document.write("<param name=\"bgcolor\" value=\""+couleur+"\" />\n");

document.write("<param name=\"movie\" value=\""+swf+"\" /><param name=\"quality\" value=\"high\" /><embed src=\""+swf+"\" quality=\"high\" ");
if ((wmode == "transparent") || (wmode == "opaque"))
    document.write("wmode=\""+wmode+"\" ");
document.write("bgcolor=\""+couleur+"\" width=\""+hauteur+"\" height=\""+largeur+"\" name=\""+nom+"\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n");
document.write("</object>\n");
}

function start(){
if (document.all) iemarquee(slider);
else if (document.getElementById)
ns6marquee(document.getElementById('slider'));
else if(document.layers)
ns4marquee(document.slider1.document.slider2);
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
iediv.innerHTML=wholemessage 
iediv.style.pixelTop=sheight
sizeup=iediv.offsetHeight
ieslide()
}
function ieslide(){
if (iediv.style.pixelTop>=sizeup*(-1)){
iediv.style.pixelTop-=sspeed
setTimeout("ieslide()",100)
}
else{
iediv.style.pixelTop=sheight
ieslide()
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
ns4layer.document.write(wholemessage)
ns4layer.document.close()
sizeup=ns4layer.document.height
ns4layer.top-=sizeup
ns4slide()
}
function ns4slide(){
if (ns4layer.top>=sizeup*(-1)){
ns4layer.top-=sspeed
setTimeout("ns4slide()",100)
}
else{
ns4layer.top=sheight
ns4slide()
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
ns6div.innerHTML=wholemessage
ns6div.style.top=sheight
sizeup=ns6div.offsetHeight
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-1)){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6slide()",100)
}
else{
ns6div.style.top=sheight
ns6slide()
}
}
//-->


