// fading keyvisuals
function images() {
  // only change images, when there are more than one
  var countOfImages = $('#keyvisual').children().size();
  if (countOfImages > 1) {
    var $alt = $('#keyvisual img.topLayer');
    var $neu = $alt.next().length ? $alt.next() : $('#keyvisual img:first');
    $alt.addClass('nextLayer');
    $alt.removeClass('topLayer');
    $neu.css({
      opacity: 0.0
    });
    $neu.addClass('topLayer');
    $neu.animate({
      opacity: 1.0
    }, 2000, function() {
      $alt.removeClass('nextLayer');
    });
  }
}
