<!--
 //Drop down menu link- © Dynamic Drive (www.dynamicdrive.com)
 //For full source code and 100's more DHTML scripts, visit http://www.dynamicdrive.com
 //Credit MUST stay intact for use

 var zindex = 100;
 var ns4 = document.layers;
 var ns6 = document.getElementById&&!document.all;
 var ie4 = document.all;
 var opr = navigator.userAgent.indexOf("Opera");


 function add_menuitem1(m,uri,a_name) {
  return "<tr><td width='1' height='14' bgcolor='#FFFFFF' id='" + m + "l'><img src='../images/invisible.gif' alt='' width='1' height='14'></td><td width='130' height='14' bgcolor='#E0E6F0' class='menudrop' id='" + m + "'><a href='" + uri + "' onMouseover=\"javascript:menuShow('" + m + "');\" onMouseOut=\"javascript:menuHide('" + m + "');\">" + a_name + "</a></td><td width='1' height='14' bgcolor='#FFFFFF' id='" + m + "r'><img src='../images/invisible.gif' alt='' width='1' height='14'></td></tr>";
 }

 function add_menuitem2(m,uri,a_name) {
  return "<tr><td width='1' height='14' bgcolor='#FFFFFF' id='" + m + "l'><img src='../images/invisible.gif' alt='' width='1' height='14'></td><td width='130' height='12' bgcolor='#E9E9E9' class='menudrop' id='" + m + "'><a href='" + uri + "' onMouseover=\"javascript:menuShow('" + m + "');\" onMouseOut=\"javascript:menuHide('" + m + "');\">" + a_name + "</a></td><td width='1' height='14' bgcolor='#FFFFFF' id='" + m + "r'><img src='../images/invisible.gif' alt='' width='1' height='14'></td></tr>";
 }

 function add_menuitem3(m,uri,a_name) {
  return "<tr><td width='1' height='14' bgcolor='#FFFFFF' id='" + m + "l'><img src='../images/invisible.gif' alt='' width='1' height='14'></td><td width='130' height='14' bgcolor='#E0E6F0' class='menudrop' id='" + m + "'><a href='" + uri + "' onMouseover=\"javascript:menuShow('" + m + "');\" onMouseOut=\"javascript:menuHide('" + m + "');\">" + a_name + "</a></td><td width='1' height='14' bgcolor='#FFFFFF' id='" + m + "r'><img src='../images/invisible.gif' alt='' width='1' height='14'></td></tr>";
 }

 function add_menuitem4(m,uri,a_name) {
  return "<tr><td width='1' height='14' bgcolor='#FFFFFF' id='" + m + "l'><img src='../images/invisible.gif' alt='' width='1' height='14'></td><td width='60' height='14' bgcolor='#E0E6F0' class='menudrop' id='" + m + "'><a href='" + uri + "' onMouseover=\"javascript:menuShow('" + m + "');\" onMouseOut=\"javascript:menuHide('" + m + "');\">" + a_name + "</a></td><td width='1' height='14' bgcolor='#FFFFFF' id='" + m + "r'><img src='../images/invisible.gif' alt='' width='1' height='14'></td></tr>";
 }

 //Contents for menu 1 - Hypnose
 var menu1 = new Array();
 menu1[0]  = add_menuitem1("s2",	"om_hypnose.php",		"Om hypnose");
 menu1[1]  = add_menuitem1("s1",	"glaede_af_hypnose.php",	"Hvem kan have glæde af hypnose?");
 menu1[2]  = add_menuitem1("s3",	"hvad_kan_behandles.php",	"Hvad kan behandles?");
 menu1[3]  = add_menuitem1("s4",	"om_behandlingen.php",		"Om selve behandlingen");
 menu1[4]  = add_menuitem1("s5",	"jalousi.php",			"Hypnose mod jalousi");
 menu1[5]  = add_menuitem1("s6",	"hypnose_for_vaegttab.php",	"Hypnose og NLP til vægttab");
 menu1[6]  = add_menuitem1("s7",	"hypnose_mod_fobier.php",	"Hypnose og NLP mod fobier");
 menu1[7]  = add_menuitem1("s8",	"hypnose_mod_vrede.php",	"Hypnose og NLP mod vrede");
 menu1[8]  = add_menuitem1("s9",	"hypnose_mod_stress.php",	"Hypnose og NLP mod stress");
 menu1[9]  = add_menuitem1("s10",	"hypnose_mod_angst.php",	"Hypnose mod angst");
 menu1[10] = add_menuitem1("s11",	"hypnose_for_rygestop.php",	"Hypnose til rygestop");

 //Contents for menu 2 - NLP
 var menu2 = new Array();
 menu2[0]  = add_menuitem2("t1",	"om_nlp.php",			"Om NLP");
 menu2[1]  = add_menuitem2("t5",	"nlp_links.php",		"Links");
// menu2[2]  = add_menuitem2("t3",	"nlp_3.php",			"Hvem kan have glæde af NLP?");
// menu2[3]  = add_menuitem2("t2",	"nlp_2.php",			"Hvad kan behandles?");
// menu2[4]  = add_menuitem2("t4",	"nlp_4.php",			"NLP historisk set");

 //Contents for menu 3 - Behandlingen
 var menu3 = new Array();
 menu3[0]  = add_menuitem3("u1",	"kirsten.php",			"Kirsten Dahlerup");
 menu3[1]  = add_menuitem3("u2",	"liat.php",			"Liat Meyhoff");
 menu3[2]  = add_menuitem3("u3",	"udtalelser_fra_klienter.php",	"Udtalelser fra klienter");



 function menuShow(m) {
  document.getElementById(m).style.background = "#F9F9F9";
 }

 function menuHide(m) {
  document.getElementById(m).style.background = "#E0E6F0";
 }


 //Drop down menu by http://www.dynamicdrive.com
 function dropit(e,whichone) {
  curmenuID = ns6 ? document.getElementById(whichone).id : eval(whichone).id;
  if (window.themenu&&themenu.id != curmenuID) {
   themenuStyle.visibility = ns4 ? "hide" : "hidden";
  }

  themenu = ns6 ? document.getElementById(whichone) : eval(whichone);
  themenuStyle = (ns6 || ie4) ? themenu.style : themenu;

  themenuoffsetX = (ie4 && opr == -1) ? document.body.scrollLeft : 0;
  themenuoffsetY = (ie4 && opr == -1) ? document.body.scrollTop : 0;

if (whichone == "dropmenu3") {
  themenuStyle.left = (ns6 || ns4) ? e.pageX-e.layerX-58 : themenuoffsetX+event.clientX-event.offsetX-58;
  themenuStyle.top = (ns6 || ns4) ? e.pageY-e.layerY+17 : themenuoffsetY+event.clientY-event.offsetY+16;
}else{
  themenuStyle.left = (ns6 || ns4) ? e.pageX-e.layerX-4 : themenuoffsetX+event.clientX-event.offsetX-4;
  themenuStyle.top = (ns6 || ns4) ? e.pageY-e.layerY+17 : themenuoffsetY+event.clientY-event.offsetY+16;
}

  hiddenconst = (ns6||ie4) ? "hidden" : "hide";
  if (themenuStyle.visibility == hiddenconst){
   themenuStyle.visibility = (ns6||ie4) ? "visible" : "show";
   themenuStyle.zIndex = zindex++;
  }

  return false;
 }

 function hideall() {
  numb = new Array();
  numb = ["dropmenu1", "dropmenu2", "dropmenu3"];

  for (i=0; i < numb.length; i++) {
   themenu = ns6 ? document.getElementById(numb[i]) : eval(numb[i]);
   themenuStyle = (ns6 || ie4) ? themenu.style : themenu;
   hiddenconst = (ns6 || ie4) ? "hidden" : "hide";
   themenuStyle.visibility = hiddenconst;
  }
 }

 function hidemenu() {
  if ((ie4 || ns6) && window.themenu) {
   themenuStyle.visibility = "hidden";
  }else if (ns4) {
   themenu.visibility = "hide";
  }
 }

 if (ie4||ns6) {
  document.onclick = hidemenu;
 }
//-->