var url="http://www.globalspine.nl";
var title="GlobalSpine - All you need to know about your spine.";

var tid;
var closetimeout;closetimeout=200; //Timeout to close open menu window
var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
                parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;
var isNS6    = (navigator.appName.indexOf("Netscape") >=0 && parseFloat(navigator.appVersion) >= 5) ? 1 : 0;

var activemenu = -1;

var beginx; beginx = 45; //Left TOP Point X of menu's beginning
var beginy; beginy = 85; //Left TOP Point Y of menu's beginning
var stepy; stepy = 20; //displacement of top layer y

var mwidth; mwidth = 150; // Width of menus
var mheight; mheight = 150; //Height of menus
var selitem; selitem = -1; //selected menu item, if not -1 is selected;
var canopen; //The bit to show, that pop-up can be oppenned
canopen = true;


function show(what,action) {
 if (canopen) {
   obj = 'menu'+ what;
   if (action=="hide") {
      if(isMinNS4 && (!isNS6)) {
         layer = document.layers[obj];
      } else {
         layer = (document.getElementById)? document.getElementById(obj) : document.all[obj];
      }     
      if (isMinNS4 && (!isNS6)) 
        layer.visibility = "hide";
      if (isNS6) 
        document.getElementById(obj).style.visibility = "hidden";
      if (isMinIE4)
        layer.style.visibility = "hidden";     
      selitem = -1;
      activemenu = -1;
   }
   if (action=="show") {
      clearTimeout(tid);
      if (activemenu>-1) {
        show(activemenu,'hide');
      }
      obj = 'menu'+what;
      if (menu[what].length>1) {
        if(isMinNS4 && (!isNS6)) {
          layer = document.layers[obj];
        } else {
          layer = (document.getElementById)? document.getElementById(obj) : document.all[obj];
        }     
        if (isMinNS4 && (!isNS6))
           layer.visibility = "show";
        if (isNS6)
           document.getElementById(obj).style.visibility = "visible";
        if (isMinIE4)
           layer.style.visibility = "visible";       
        activemenu = what;
     }
   }
 }
}

function closeit() {
   if(isMinNS4 && (!isNS6)) {
      layer = document.layers['adver'];
   } else {
      layer = (document.getElementById)? document.getElementById('adver') : document.all['adver'];
   }     
   if (isMinNS4 && (!isNS6))
     layer.visibility = "hide";
   if (isNS6)
      document.getElementById(obj).style.visibility = "hidden";
   if (isMinIE4)
      layer.style.visibility = "hidden";
}

function addfavorcheck() {
  if (isMinIE4 && (window.external)) return true;
  else {
     alert('Press CTRL + D to bookmark this page.');
     return false;
  }
}