/////////////////////////////////
/*Dessine le bandeau haut de la page*/
function DrawEntete ( strBandeau )
{
    document.write('<body BGCOLOR="#FFFFFF" >');
    document.write('<center>');
    document.write('<table width="750" border="0" cellpadding="0" cellspacing="0">');
    document.write('<TR>');
    document.write('<TD>');
    document.write('<Table  cellpadding="0" cellspacing="0" width="700">');
    document.write('<TR>');
    document.write('<TD>');
    document.write('<a href="http://www.picxyz.fr">')
    document.write('<img src="images/logotourne.gif" border="0" />');
    document.write('</a">')
    document.write('</TD>');
    document.write('<TD>');
    document.write('<img src="'+strBandeau+'" >');
    document.write('</TD>');
    document.write('</TR>');
    document.write('<TR>');
    document.write('</TABLE>');
}

function StartContenu ( strBandeauLeft )
{
  document.write('<table cellpadding="0" cellspacing="0" >');
  document.write('<TR>');
  document.write('<TD valign="top"">');
  document.write('<img src="'+strBandeauLeft+'">');
  document.write('</TD>');
  document.write('<td valign="top" width="100%">');
  CreateStdMenus();
  document.write('<table>');
  document.write('<TR><TD width="10"/>');
  document.write('<TD valign="top">');
}

function EndContenu()
{
    document.write('</TD>');
    document.write('</TR>');
    document.write('</TABLE>');
    document.write('</TD>');
    document.write('</TR>');
    document.write('</TABLE>');
    document.write('</TR>');
    document.write('</TD>');
    document.write('</TABLE>');
    document.write('</Center>');
}


/* GESTION DES MENUS */
/////////////////////////////////
function SelectMenu( strMenu )
{
  menu = document.getElementById(strMenu);
  strNom = menu.src;
  laFin = strNom.substr(strNom.length-4,4);
  if ( laFin != 'over' )
  {
      strNom = strNom+"over";
      menu.src = strNom;
  }
}

/////////////////////////////////
function UnSelectMenu( strMenu )
{
  menu = document.getElementById(strMenu);
  strNom = menu.src;
  laFin = strNom.substr(strNom.length-4,4);
  if ( laFin == 'over' )
  {
      strNom = strNom.substr(0,strNom.length-4);
      menu.src = strNom;
  }
}

/////////////////////////////////
function OnMenu ( strMenu )
{
  lecran = document.getElementById("ecran");
  lecran.src="images/ecraninverse.gif";
}

/////////////////////////////////
/*Crée un menu. les images doivent être dans le répertoire
images/menus. et avoir pour nom strName.gif et strName.gifover pour
l'image quand on passe sur le menu.*/
var m_menus = Array();

function CMenu ( strName, strLien )
{
   this.m_strName=strName;
   this.m_strLien = strLien;
}



function AddMenu ( strName, strLien )
{
    m_menus[m_menus.length] = new CMenu ( strName, strLien );
}

function DrawMenus ( )
{
    document.write('<table cellpadding="0" cellspacing="0" width="100%">');
    document.write('<TR>');
    document.write('<TD width="107" background="images/menus/leftmenu.gif"></TD>')
    for ( nMenu =0; nMenu < m_menus.length; nMenu ++)
    {
        document.write('<TD>');
        menu = m_menus[nMenu];
        document.write('<a href="'+menu.m_strLien+'"');
        document.write('onmouseover="SelectMenu(\''+menu.m_strName+'\')"');
        document.write('onmouseout="UnSelectMenu(\''+menu.m_strName+'\')">');
        document.write('<img id="'+menu.m_strName+'"  src="images/menus/'+menu.m_strName+'.gif" border="0">');
        document.write('</a>');
        document.write('</TD>');
    }
    document.write('</TR>');
    document.write("</table>");
    document.write('<table cellpadding="0" cellspacing="0" width="100%">');
    document.write('<TR><TD background="images/menus/lignebasmenu.gif"/></TR>');
    document.write('</TABLE>');
    
}

function CreateStdMenus()
{
    //AddMenu("accueil","index.html");
    AddMenu("activites","index.html");
   // AddMenu("news","news.html");
    AddMenu("contact","contact.html");
    //AddMenu("espaceclients","espaceclients.html");
    DrawMenus();
}

//Gestion de flash
function ShowFlash ( strFichier, largeur, hauteur )
{
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"');
  document.write('width="'+largeur+'" height="'+hauteur+'">');
  document.write('<param name="eanim" value="!e-anim:ecran">');
  document.write('<param name="movie" value="'+strFichier+'">');
  document.write('<param name="quality" value="high">');
  document.write('<embed src="'+strFichier+'"');
  document.write(' quality="high"');
  document.write('pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('type="application/x-shockwave-flash"');
  document.write('width="'+largeur+'" height="'+hauteur+'">');
  document.write('</embed>');
  document.write('</object>');
}

//Listes
