    
$(document).ready(function(){
  image_count = $("#banner div").hide().size(); // Zählt die DIVs im DOM durch
  current_image = Math.floor(Math.random()*image_count) // Zufallszahl zwischen 0 und Anzahl der Bild DIVs
  $("#banner div:eq("+current_image+")").show(); // setzt display:none auf display:block
  active = setInterval(feature_rotate,3500); // natives JS Interval  
  $("#banner div").mouseover(function(){
     clearInterval(active);
     $("#hint").fadeOut("slow");
     $("#hint2").fadeIn("slow");     
  }).mouseout(function(){
     active = setInterval(feature_rotate,3500);
     $("#hint").fadeIn("slow");
     $("#hint2").fadeOut("slow");     
  });  
});

function feature_rotate() {
  old_image = current_image%image_count; // Modulo-Division ergibt Rest
  new_image = ++current_image%image_count; // Count Up um 1 mit Modulo-Division
  $("#banner div:eq(" + new_image + ")").fadeIn("slow", function() {
    $("#banner div:eq(" + old_image + ")").fadeOut("slow");
  });

}   
