document.observe("dom:loaded", function() {

  /*Effect.Fade.delay(0.25,'loader', { 
    duration: 0.25
  });*/

  new HM.NewsScroller("nieuwsScroller", {
    src: "/nl/content-scroller.lp",
    direction: "horizontal",
    interval: 7000
  });

  setImage(window.hm_styleswitch_value);
});

function setImage(src) {
  //console.debug(src);
  if (!src || src == 'index') src = 'kamperen';

  var allowed = $A(['kamperen', 'kindercamping', 'voor-en-naseizoen', 'eenoudergezinnen']);

  window.hm_styleswitch = new HM.StyleSwitch({ values: allowed });

  if (allowed.include(src)) {
    window.hm_styleswitch.set(src);
  }else{
    window.hm_styleswitch.get();
    window.hm_styleswitch.update();
  }
}

function changelocation() {
  kikker_sound.location = "ifr_kikker_sound.lp";
}
