//overload to use the onReady Event vs. the onLoad (which fires after the image load)
Behaviour.addLoadEvent = function(f){Event.onReady(f);};

//overload to use the Prototype $$(selector) method which is faster
//and use the Protoype Enumerable.each which enhances readability
Behaviour.apply = function(){
  Behaviour.list.each(function(sheet){
    for (selector in sheet){
      list = $$(selector);

      if (!list){
        return;
      }

      list.each(function(element){
        sheet[selector](element);
      });
    };
  });
};

