function load() {
  if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map"));
    map.setCenter(new GLatLng(52.1021, 5.190), 13);
  }
}

function runSlideShow() {
  if (document.all) {
    document.images.SlideShow.style.filter="blendTrans(duration=2)";
    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
    document.images.SlideShow.filters.blendTrans.Apply();
  }
  document.images.SlideShow.src = preLoad[j].src;
  if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
  }
  j = j + 1;
  if (j > (p - 1)) j = 0;
  t = setTimeout('runSlideShow()', slideShowSpeed);
}

function beeldwissel(){
  if (window.createPopup)
    blok.filters[0].apply()
    document.images.blok.src=afb[teller].src;
    document.images.data.src=text[teller].src;
  if (window.createPopup)
    blok.filters[0].play()
    teller++;
  if (teller==afb.length)
    teller=0;
  setTimeout("beeldwissel()",tussentijd)
}

function animatiewissel() {
  if (window.createPopup)
  blok.filters[0].apply()
  document.images.blok.src=impr[teller].src;
  document.images.blok.width=impr[teller].width;
  document.images.blok.height=impr[teller].height;
  if (window.createPopup)
  blok.filters[0].play()
  teller++;
  if (teller==impr.length)
  teller=0;
  setTimeout("animatiewissel()",tussentijd2)
}

function lichtop(item) {
  var licht = document.getElementById('l'+item);
  var dim = document.getElementById('d'+item);
  //window.status="in element:"+item;
  dim.style.display='none';
  licht.style.display='';
}

function dimmen(item) {
  var licht = document.getElementById('l'+item);
  var dim = document.getElementById('d'+item);
  //window.status="in element:"+item;
  licht.style.display='none';
  dim.style.display='';
}

function resetForms(items) {
  for (i=1; i<=items; i++) {
    reset(i);
  }
}



function getHeight() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      document.documentElement.clientHeight ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && document.body.clientHeight ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return(myHeight);
}


