new Behavior({
  '#photoset .residential:load': function() {
    new ElementTransition(this, {
      elements_selector: 'img.background',
      delay: 4,
      duration: 0.75
    })
  },
  '#photoset .commercial:load': function() {
    (function() {
      new ElementTransition(this, {
        elements_selector: 'img.background',
        delay: 4,
        duration: 0.75
      })
    }).bind(this).delay(2)
  },
  '#project-reports .col1 img.background:load': function() {
    var all = $(this.parentNode).select('img.background');
    this.image_index = all.indexOf(this);
  },
  '#project-reports .col1:load': function() {
    new HandledTransition(this, {
      elements_selector: 'img.background',
      delay: 5,
      duration: 0.75
    });
  }
})
