// funct.js
menu = new Array (
"Librairie|http://www.temperance.com/livres_pnl_hypnose.html",
"Articles|http://www.temperance.com/dossiers_pnl_hypnose.html",
"Psychoth&eacute;rapie|http://www.temperance.com/psychotherapie_pnl_hypnose.html",
"Formations|http://www.temperance.com/formation_pnl_hypnose.html",
"Revue|http://www.temperance.com/la_temperance_psychotherapie.html",
"Plan&nbsp;du&nbsp;Site|http://www.temperance.com/pnl_hypnose_psychotherapie/plan.php3",
"Contact|http://www.temperance.com/cgi-bin/forms/app.cgi"
);
menu2 = new Array (
"Lettre&nbsp;d'Information|document.location='http://www.temperance.com/cgi-bin/forms/app.cgi?a=ml'",
"Recommander&nbsp;ce&nbsp;Site|document.location='http://www.temperance.com/cgi-bin/forms/app.cgi?a=recom'",
"Nous&nbsp;&eacute;crire|document.location='http://www.temperance.com/cgi-bin/forms/app.cgi?a=mail'",
"G&icirc;te|document.location='http://www.legr3.com'",
"Gratuit|document.location='http://www.temperance.com/fichiers_gratuits.html'",
"Liens|document.location='http://www.temperance.com/annuaire/general/ressources.html'"
);
//Change class name
function changeclass(objet, myClass) { 
  objet.className = myClass;
};
function launch(URL, newName, newFeatures, orgName) {
  var remote=open(URL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
};
// Open glossary window
function spip_gloss(id) {
  var URL="/doc/gloss.php3?id_breve="+id ;	
  window.open(URL,'agent','width=395,height=385,left=100,top=100,scrollbars=no,resizable=no');		
}
// Open Window
function openWindow(URL) {
  Popup=launch(URL, 'popup', 'dependent=0,height=300,width=350,screenX=200,left=200,screenY=200,top=200,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0', 'launcher');
};
// blue bar
function blue_bar(text){document.write("<TABLE WIDTH='570' BORDER='0' CELLSPACING='1' CELLPADDING='1' VSPACE='0' HSPACE='0' ALIGN='CENTER'><tr><td CLASS='sectionHeaderStyle' width='600'>&nbsp;<font CLASS='sectionHeaderStyle'>"+text+"</font></tr></td></table>")};
function copybar(){blue_bar("&copy; 1996-2004 LA TEMP&Eacute;RANCE")};
function bottom(){document.write("<TR VALIGN='TOP'><TD VALIGN='TOP' WIDTH='170' bgcolor='#FFF7B5'>&nbsp;</td><TD VALIGN='TOP' WIDTH='10' >&nbsp;</TD><TD VALIGN='TOP' WIDTH='570' ALIGN='LEFT'>");copybar();document.write("</TD></TR>");}

// menu bar 1
function menu_bar1() {
  document.write("<TR BGCOLOR='#CEE7FF'><TD COLSPAN='2' HEIGHT='27' VALIGN='BOTTOM' BGCOLOR='#cee7ff'>"
  +"<B>&nbsp;<A HREF='/cgi-bin/lib_entry.cgi?view=BasicDataView&simple_search_string=-1-'>"
  +"Librairie</A> | <A HREF='/doc'>Documents</A> | <A HREF='/psycho.html'>"
  +"Psychoth&eacute;rapie</A> | <A HREF='/Calendrier-2-0-2.html'>Formations</A>"
  +" | <A HREF='/revue.html'>Revue</A></B></TR>");
};
//
function menu_bar2() {
  document.write("<TR><TD COLSPAN='2'  HEIGHT='27' VALIGN='CENTER' BGCOLOR='#ebce76'>"
  +"<B>&nbsp;<A HREF=\"javascript:openWindow('/Mail-list.html');\">Lettre d'Information</A>&nbsp;"
  +"|&nbsp;<A HREF=\"javascript:var w = window.open('/rcmdme.html','agent','width=395,height=425,"
  +"left=100,top=100,scrollbars=no,resizable=yes')\">Recommander</A>&nbsp;|&nbsp;"
  +"<A HREF='http://www.temperance.org/cgi-bin/sendme/sendme.cgi'>Envoyer la page</A></B></TD></TR>");
} ;
// menu
function menubar(data,bgc,type) {
document.write("<TR BGCOLOR='"+bgc+"'><TD COLSPAN=2 HEIGHT=24 VALIGN='BOTTOM' BGCOLOR='"
+bgc+"'><table BORDER=0 CELLSPACING=0 CELLPADDING=2 width=750 height=24><tr>");
for (i = 0; i < data.length; i++) {
  var menu = data[i].split("|");
  document.write("<td BGCOLOR="+bgc+" height=24 width='"+menu[0].length+"' class='menu'onMouseOver=\"changeclass(this,'menuselect')\" onMouseOut=\"changeclass(this,'menu')\"");
  if (type=='J') {
      document.write("onClick=\""+menu[1]+"\">&nbsp;"+menu[0]+"&nbsp;&nbsp;</td>");
  } else { 
      document.write("onClick=\"document.location='"+menu[1]+"'\">&nbsp;"+menu[0]+"&nbsp;&nbsp;</td>");
  }
}
document.write("<td class='menu'>&nbsp;</td></tr></table></td></tr>");
}