﻿function afficher_date()
{
  today = new Date(); 
  jour = today.getDate(); if (jour<10) jour = "0"+jour;
  mois = today.getMonth()+1; if (mois<10) mois = "0"+mois;
  heure = today.getHours(); if (heure<10) heure = "0"+heure;
  minute = today.getMinutes(); if (minute<10) minute = "0"+minute;
  document.write(jour+"/"+mois+"/"+today.getYear()+" "+heure+":"+minute);
}

function afficher_menuhaut()
{
  var textHTML="";
  textHTML+="<TABLE style=\"width:100%;height:163px\" cellspacing=0 cellpadding=0 border=0>";
  textHTML+="  <TR>";
  textHTML+="    <TD WIDTH=10px HEIGHT=155px ALIGN=center VALIGN=MIDDLE></TD>";
  textHTML+="    <TD WIDTH=200px ALIGN=center VALIGN=MIDDLE>";
  textHTML+="      <div id=\"swf_arread_logo\">";
  textHTML+="        Merci de télécharger la dernière version de Flash.";
  textHTML+="      </div>";
  textHTML+="      <script type=\"text/javascript\">";
  textHTML+="        var FO = {";
  textHTML+="            movie:\"arread_logo.swf\", width:\"195px\", height:\"163px\", majorversion:\"9\", build:\"28\", minorversion:\"8\", bgcolor:\"#FFFFFF\"";
  textHTML+="        };";
  textHTML+="        UFO.create(FO, \"swf_arread_logo\");";
  textHTML+="      </script>";
  textHTML+="    </TD>";
  textHTML+="    <TD ALIGN=center VALIGN=MIDDLE>";
  textHTML+="      <IMG src=\"image/img_titre.png\" border=0 ALT=\"arread\">";
  textHTML+="    </TD>";
  textHTML+="  </TR>";
  textHTML+="</TABLE>";
  textHTML+="";
  textHTML+="<TABLE style=\"height:30px\" cellspacing=0 cellpadding=0 border=0>";
  textHTML+="  <TR>";
  textHTML+="    <TD width=100px ALIGN=center VALIGN=MIDDLE>";
  textHTML+="      <A class=\"menuhaut\" href=\"index.htm\">&nbsp;&nbsp;Accueil&nbsp;&nbsp;</A>";
  textHTML+="    </TD>";
  textHTML+="    <TD width=100px ALIGN=center VALIGN=MIDDLE>";
  textHTML+="    <A class=\"menuhaut\" href=\"presentation.htm\">&nbsp;Présentation&nbsp;</A>";
  textHTML+="    </TD>";
  textHTML+="    <TD width=100px ALIGN=center VALIGN=MIDDLE>";
  textHTML+="    <A class=\"menuhaut\" href=\"produit.htm\">&nbsp;&nbsp;Produits&nbsp;&nbsp;</A>";
  textHTML+="    </TD>";
  textHTML+="    <TD width=100px ALIGN=center VALIGN=MIDDLE>";
  textHTML+="    <A class=\"menuhaut\" href=\"contact.htm\">&nbsp;&nbsp;Contact&nbsp;&nbsp;</A>";
  textHTML+="    </TD>";
  textHTML+="    <TD width=100px ALIGN=center VALIGN=MIDDLE>";
  textHTML+="    <A class=\"menuhaut\" href=\"societe.htm\">&nbsp;&nbsp;Société&nbsp;&nbsp;</A>";
  textHTML+="    </TD>";
  textHTML+="  </TR>";
  textHTML+="</TABLE>";
  document.write(textHTML);
}

function afficher_menudoit()
{
  today = new Date(); 
  jour = today.getDate(); if (jour<10) jour = "0"+jour;
  mois = today.getMonth()+1; if (mois<10) mois = "0"+mois;
  heure = today.getHours(); if (heure<10) heure = "0"+heure;
  minute = today.getMinutes(); if (minute<10) minute = "0"+minute;
  //document.write(jour+"/"+mois+"/"+today.getYear()+" "+heure+":"+minute);

  var textHTML="";
  textHTML+="<BR>";
  textHTML+="<TABLE WIDTH=100% cellspacing=0 cellpadding=0 border=0 style=\"border-collapse: collapse\">";
  textHTML+="  <TR>";
  textHTML+="    <TD WIDTH=10px ALIGN=center VALIGN=center></TD>";
  textHTML+="    <TD VALIGN=center>";
  textHTML+="      <CENTER>";
  textHTML+="      <FONT size=2>" + jour+"/"+mois+"/"+today.getYear() + "</FONT><BR>";
  textHTML+="      <BR>";
  textHTML+="      </CENTER>";
  textHTML+="      <DIV ID=ejs_box2_box STYLE=\"background:#FFFFFF;color:#444444;font-family:Verdana;font-size:11;width:110;height:100;padding:5\"></DIV>";
  textHTML+="      <SCRIPT>";
  textHTML+="        afficher_maj();";
  textHTML+="      </SCRIPT>";
  textHTML+="        ";
  textHTML+="    </TD>";
  textHTML+="    <TD WIDTH=10px ALIGN=center VALIGN=center></TD>";
  textHTML+="  </TR>";
  textHTML+="</TABLE>";
  document.write(textHTML);
}

function afficher_pied()
{
  var textHTML="";
  textHTML+="<TABLE style=\"WIDTH:800px;HEIGHT:55px\" cellspacing=0 cellpadding=0 border=0 style=\"border-collapse: collapse\" background=\"image/img_pied.jpg\">";
  textHTML+="  <TR>";
  textHTML+="    <TD HEIGHT=24px ALIGN=center VALIGN=MIDDLE></TD>";
  textHTML+="    <TD></TD>";
  textHTML+="  </TR>";
  textHTML+="    <TD WIDTH=15px></TD>";
  textHTML+="    <TD ALIGN=left VALIGN=top>";
  textHTML+="      <FONT size=2 color=#444444>";
  textHTML+="      &copy Arread 2008 |";
  textHTML+="      <A class=\"menubas\" href=\"arreadasso.htm\" TITLE=\"ArreadAsso\"> <B>Asso</B> </A>| ";
  textHTML+="      <A class=\"menubas\" href=\"arreadweb.htm\" TITLE=\"ArreadCreaWeb\"> <B>CreaWeb</B> </A>| ";
  textHTML+="      <A class=\"menubas\" href=\"arreadgolf.htm\" TITLE=\"ArreadGolf\"> <B>Golf</B> </A>| ";
  textHTML+="      <A class=\"menubas\" href=\"arreadresa.htm\" TITLE=\"ArreadResa\"> <B>Resa</B> </A>| ";
  textHTML+="      <A class=\"menubas\" href=\"arreadsurf.htm\" TITLE=\"ArreadSurf\"> <B>Surf</B> </A>| ";
  textHTML+="      <A class=\"menubas\" href=\"partenaires.htm\"> Partenaires </A>| ";
  textHTML+="      <a class=\"menubas\" href=\"plansite.htm\"> Plan du site </a>| ";
  textHTML+="      <script language=\"javascript\">";
  textHTML+="        document.write(\"Mise à jour le \",document.lastModified.substring(3, 6) + document.lastModified.substring(0, 3) + document.lastModified.substring(6, 10));";
  textHTML+="      </script>";
  textHTML+="      </FONT>";
  textHTML+="    </TD>";
  textHTML+="  </TR>";
  textHTML+="</TABLE>";
  document.write(textHTML);
}


function ejs_box2_go()
{
  if(document.getElementById)
  {
    ejs_box2_char = 1;
    ejs_box2_affich(ejs_box2_actual)
    ejs_box2_actual++;
    if(ejs_box2_actual >= ejs_box2_message.length)
      ejs_box2_actual = 0;
  }
}

function ejs_box2_affich(lactual)
{
  var pix = ejs_box2_message[lactual].charAt(ejs_box2_char);
  if(pix == "<")
    ejs_box2_html_flag = 1;
  if(pix == ">")
    ejs_box2_html_flag = 0;
  var texte = ejs_box2_message[lactual].substring(0,ejs_box2_char);
  document.getElementById("ejs_box2_box").innerHTML = texte;
  if(ejs_box2_char < ejs_box2_message[lactual].length)
  {
    ejs_box2_char++;
    if(ejs_box2_html_flag == 1)
      ejs_box2_affich(lactual);
    else
      setTimeout("ejs_box2_affich("+lactual+")",50);
  }
  else
    setTimeout("ejs_box2_go()",3000);
}

function afficher_maj()
{
  ejs_box2_message = new Array;
  ejs_box2_message[2] = '<B>ArreadResa</B><br><br>En <B><A HREF="arreadresa_demo.htm" TITLE="Tester ArreadResa">cliquant ici</A></B> une version démo de <B>ArreadResa</B> s\'offre à vous.';
  ejs_box2_message[0] = '<B>ArreadPsy</B><br><br>Cotation<br>Psychogramme<br>Résumé formel<br>Interprétation<B><br><br>Version de démo disponible en <A HREF="http://www.arreadpsy.arread.fr/demo.htm" TITLE="Tester ArreadPsy">cliquant ici</A></B>';
  ejs_box2_message[1] = '<B>Nouveau !!!</B><BR><BR>ArreadPsy <B>Méthode Française</B> disponible<br><br>Version de démo disponible en <A HREF="http://www.arreadpsy.arread.fr/demo.htm" TITLE="Tester ArreadPsy">cliquant ici</A></B>';
  
  ejs_box2_actual = 0;
  ejs_box2_html_flag = 0;
  window.onload = ejs_box2_go;
}

