
  $(document).ready(function() {
    $('.imgBtm a').lightBox({txtImage:'Afbeelding',txtOf:'v/d'});

    $('#menu .mFl').hover(function() {
      $(this).children('img').attr('src', $(this).children('img').attr('src').replace('_i.jpg', '_a.jpg'));
    }, function() {
      $(this).children('img').attr('src', $(this).children('img').attr('src').replace('_a.jpg', '_i.jpg'));
    });

    $('.click_goto_a').click(function() {
      document.location = $(this).find('a:first').attr('href');
    });

    $('.product').hover(function() {
      $(this).removeClass("product").addClass("product_over");
      $('.product').css({opacity:0.5});
    }, function() {
      $('.product').css({opacity:1});
      $(this).removeClass("product_over").addClass("product");
    });
    
    $('.product_home').hover(function() {
      $(this).removeClass("product_home").addClass("product_home_over");
      $('.product_home').css({opacity:0.5});
    }, function() {
      $('.product_home').css({opacity:1});
      $(this).removeClass("product_home_over").addClass("product_home");
    });
    
    if($('.headerImg').length > 0) {
      iIntervalId = setInterval('homeSlide()', 7000);
    }
  });
  
  function headerSlide() {
    iCurrentSlide ++;
    if(iCurrentSlide >= aSlideImages.length) iCurrentSlide = 0;
    $('#img_content_header_next').attr('src', aSlideImages[iCurrentSlide]);
    $('#img_content_header').fadeOut(1000, function() {
      $('#img_content_header').show().attr('src', aSlideImages[iCurrentSlide]);
    });
  }

  function homeSlide() {
    $('.headerImg:first').clone().insertAfter('.headerImg:last');
    $('.headerImg:first').animate({marginLeft: '-980px'}, 500, function() {
      $(this).remove();
    });
  }

