function loadImages(roll) {
    var images = new Array();
    for ( var i = 0; i <= 6; i++) {
      var img = new Image();
      if (roll) {
        img.src = 'footer_images/' + i + '_b.png';
      } else {
        img.src = 'footer_images/' + i + '.png';
      }
      images[i] = img;
    }
    return images;
}
jQuery(window).load(function() {
var Images = loadImages(false);
var RollImages = loadImages(true);
jQuery('#footer_anim a > img').each(function(i, item) {
  jQuery(this).mouseover(
    function() {
    //alert(i+'\n'+RollImages.length+'\n'+jQuery(item).html());
      this.src=RollImages[i+1].src;
    });
  jQuery(this).mouseout(
    function() {
//    alert(i+'\n'+Images.length);
      this.src=Images[i+1].src;
    });
  });
});
