BadgeHover = Behavior.create({
  onmouseover : function() { this.element.addClassName('over') },
  onmouseout  : function() { this.element.removeClassName('over') },
  onclick : function() { location.href = this.element.down('a').href }
});

GitHubRepoViewer = Behavior.create({
  json_url : "http://github.com/api/v1/json/davidbarral",
  
  initialize: function() {
    // Ajax call and fetch "repositories" array: key (each one has name, url, 
    //  description and home page)
    // Fetch repositories key
  }
});

Event.addBehavior({
  '.badge' : BadgeHover,
  '#github' : GitHubRepoViewer
});

