/*  behaviour_rules.js - Rules for use with the behaviour.js library.
Behaviour lets you use CSS selectors to specify elements to which
JavaScript events should be added. http://bennolan.com/behaviour */

var brules = {
  '.thumb' : function(element){
    element.onclick = function() {
      img = document.getElementById("aboutImg");
      src = this.src;
      img.src = src.substr(0, src.indexOf("_")) + '.jpg';
    }
  }
};

Behaviour.register(brules);
