var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
var isMinNS6 = (isMinNS4 && navigator.userAgent.indexOf("Gecko")>=0) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ? 1 : 0;
var isDOM = (document.getElementById) ? 1 : 0;
function showMenu(menuId, over_image)
{
  if (!getLayer('menu'+menuId)) return;
  var m=document.getElementById('menu'+menuId);
  if (m == null) return;
  m.childNodes[0].childNodes[0].src = over_image;
  var d=document.getElementById('uitklap'+menuId);
  if (d == null) return;
  var b=document.getElementsByTagName("body")[0];
  var x,y;
  if (d.firstChild == null) return;
  x=m.offsetLeft+(b.scrollWidth/2)-481;
  if (isMinNS4) 
    y=m.offsetHeight+115;
  else
    y=m.offsetHeight+115;
  if (isMinNS4) d.firstChild.nextSibling.width=m.offsetWidth;
  else d.firstChild.width=m.offsetWidth;
  moveLayerTo(d,x,y);
  if (isMinNS4) d.style.visibility='show';
  if (isMinIE4||isDOM) d.style.visibility='visible';
}
function hideMenu(menuId, menu_image)
{
  var m=document.getElementById('menu'+menuId);
  var d=document.getElementById('uitklap'+menuId);
  m.childNodes[0].childNodes[0].src = menu_image;
  if (d == null) return;
  m.className='menutop';
  d.style.visibility='hidden';
}
function moveLayerTo(l, x, y)
{
  l.style.left = x + "px";
  l.style.top  = y + "px";
  return;
}
function getLayer(name)
{
  if (isDOM) return document.getElementById(name);
  return null;
}
function findLayer(name, doc) {var i, l;for (i = 0; i < doc.layers.length; i++) {l = doc.layers[i];if (l.name == name) return l;if (l.document.layers.length > 0) {l = findLayer(name, l.document);if (l != null) return l;}} return null;}
function tableResize(sLogo) {window.parent.document.getElementById('logopic').src=sLogo;window.parent.document.getElementById('maintable').height=740;window.setTimeout("window.parent.document.getElementById('maintable').height=document.getElementById('clientTable').scrollHeight+100;", 1000);}
function right(evnt){
 if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null) {
  if (evnt.which >= 2){
   if (window.confirm("Als u foto\'s of teksten van onze website wilt gebruiken, dan kunt u gebruik maken van ons contactformulier. U kunt ook hoge resolutie foto's aanvragen.\n\nKlik op \'Ok\' om naar het contactformulier te gaan of op \'Cancel\' om naar de pagina terug te keren."))
    document.location.href='Default.aspx?FolderID=77';
   return false;
  }
 }else
 {
  if (event.button>=2){
   if (window.confirm("Als u foto\'s of teksten van onze website wilt gebruiken, dan kunt u gebruik maken van ons contactformulier. U kunt ook hoge resolutie foto's aanvragen.\n\nKlik op \'Ok\' om naar het contactformulier te gaan of op \'Cancel\' om naar de pagina terug te keren."))
    document.location.href='Default.aspx?FolderID=77';
  }
 }
 return false;
}
function doNotSelect() 
{ 
 return false; 
}
 
function showCal(calID)
{
 d = document.getElementById(calID);
 moveLayerTo(d, event.x-event.offsetX, event.y-event.offsetY+20);
 if (isMinNS4) d.style.visibility='show';
 if (isMinIE4||isDOM) d.style.visibility='visible';
}
function hideCal(calID)
{
 d = document.getElementById(calID)
 d.style.visibility='hidden';
 moveLayerTo(d, 0, 0);
}
function showBedrijf()
{
  if (!getLayer('menuBedrijf')) return;
  var m=document.getElementById('menuBedrijf');
  if (m == null) return;
  m.childNodes[0].childNodes[0].src = '/jetp/nav_images/bedrijf_over.jpg';
  var d=document.getElementById('uitklapBedrijf');
  if (d == null) return;
  var b=document.getElementsByTagName("body")[0];
  var x,y;
  if (d.firstChild == null) return;
  x=m.offsetLeft+(b.scrollWidth/2)+170;
  if (isMinNS4) 
    y=m.offsetHeight-12;
  else
    y=m.offsetHeight-14;
  if (isMinNS4) d.firstChild.nextSibling.width=m.offsetWidth;
  else d.firstChild.width=m.offsetWidth;
  moveLayerTo(d,x,y);
  if (isMinNS4) d.style.visibility='show';
  if (isMinIE4||isDOM) d.style.visibility='visible';
}
function hideBedrijf()
{
  var m=document.getElementById('menuBedrijf');
  var d=document.getElementById('uitklapBedrijf');
  m.childNodes[0].childNodes[0].src = '/jetp/nav_images/bedrijf.jpg';
  if (d == null) return;
  m.className='menutop';
  d.style.visibility='hidden';
}
function menu_over(d)
{
  d.background='/jetp/nav_images/menu_bg_over.jpg';
  d.parentElement.childNodes[0].childNodes[0].src='/jetp/nav_images/menu_left_over.jpg';
  d.parentElement.childNodes[2].childNodes[0].src='/jetp/nav_images/menu_right_over.jpg';
}
function menu_out(d)
{
  d.background='/jetp/nav_images/menu_bg.jpg';
  d.parentElement.childNodes[0].childNodes[0].src='/jetp/nav_images/menu_left.jpg';
  d.parentElement.childNodes[2].childNodes[0].src='/jetp/nav_images/menu_right.jpg';
}
 
function showInfo(lnk)
{
  var extra_width = 0;
  var extra_height = 0;
  if (document.body.clientWidth > 1024)
      extra_width = (document.body.clientWidth - 1024) / 2 + 18;
  javascript:window.open(lnk,'','status=0;location=0;toolbar=0,scrollbars=1,titlebar=0,resizable=0,width=460,height=320,left=' + (500+extra_width+window.screenLeft) + ',top='+ (125+window.screenTop) + ',0');
}

function OpenInNewWindow(lnk)
{
  window.open(lnk);
}