<!--
 //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_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",	"about_hypnosis.php",		"About hypnosis");
 menu1[1]  = add_menuitem1("s1",	"who_can_benefit.php",		"Who can benefit?");
 menu1[2]  = add_menuitem1("s3",	"what_can_be_treated.php",	"What can be treated?");

 //Contents for menu 2 - NLP
 var menu2 = new Array();
 menu2[0]  = add_menuitem2("t1",	"about_nlp.php",		"About NLP");
 menu2[1]  = add_menuitem2("t5",	"nlp_links.php",		"Links");

 //Contents for menu 4 - Kontakt
 var menu4 = new Array();
 menu4[0]  = add_menuitem4("v1",	"contact.php",			"Contact");
 menu4[1]  = add_menuitem4("v2",	"profile.php",			"Profile");


 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;

  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", "dropmenu4"];

  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;
 }
//-->