/**
 * default.js
 *
 * Version history (please keep backward compatible):
 * 1.0, 2009-02-26: Cornelius Hansjakob
 *
 * @author Cornelius Hansjakob <cha@massiveart.com>
 * @version 1.0
 */

Website = Class.create({

  initialize: function() {
	  this.imgCounter;
  },
   
  /**
   * changeBg changes background all 15 sec
   */
  changeBg: function() {
     src = imageSrc[this.imgCounter % imageSrc.length];
     img = $('bg_' + this.imgCounter % 2);
     if(this.imgCounter % 2 == 0) {
       $('bg_0').fade({duration: 4});
     } else { 
       $('bg_0').appear({duration: 4});
     }
     setTimeout('img.src = src', 4100);
     this.imgCounter++;
     window.setTimeout('myWebsite.changeBg()', 10*1000);
   }
});



