/*var RotatingLogos = function() {}
RotatingLogos.prototype = {
  initialize: function() {
    this.repeating = false;
    this.currentIndex = 1;
    this.imagesInGroup = 4;

    this.container = $('rotating_logos');
    Event.observe(this.container, 'click', function() {
      window.location = '#';
    });
    this.totalCount = this.container.getElementsBySelector(".//div.logo").length;

    this.fade();
  },

  fade: function() {
    //console.log('fading from %s to %s', this.currentIndex, this.currentIndex + this.imagesInGroup - 1);

    for (var i = this.currentIndex; i < this.currentIndex + this.imagesInGroup; i++) {
      Effect.Fade('logo' + i);
    }

    this.currentIndex += this.imagesInGroup;
    if (this.currentIndex > this.totalCount) {
      this.repeating = true;
      this.currentIndex = 1;
    }

    setTimeout("logos.appear()", 1500);
  },

  appear: function() {
    //console.log('appearing from %s to %s', this.currentIndex, this.currentIndex + this.imagesInGroup - 1);

    var images = new Array();
    var totalWidth = 0;

    for(var i = this.currentIndex; i < this.currentIndex + this.imagesInGroup; i++) {
      var container = $('logo' + i);
      images.push(container);

      if (container.getWidth() == 0) {
        container.style.visibility = 'hidden';
        container.style.display = 'block';
        totalWidth += container.getWidth();
        container.style.visibility = 'visible';
        container.style.display = 'none';
      }
      else {
        totalWidth += container.getElementsBySelector(".//img")[0].width;
      }
    }

    var paddingRight = parseInt((520 - totalWidth) / 3);

    images.each(function(image) {
      if (!image.hasClassName('last')) {
        image.style.padding = '0px ' + paddingRight + 'px 0px 0px;';
      }


      Effect.Appear(image);

    });

    setTimeout("logos.fade()", 2500);
  }
}

var logos = new RotatingLogos();
Event.observe(window, 'load', logos.initialize.bind(logos)) */

