/*
 * Extensions to jQuery
 */

// play nice with prototype
window.$j = jQuery.noConflict();

// escape html
String.prototype.out = function() {
  return this.replace(/</g, '&lt;');
};

// see if string contains text
String.prototype.has = function(text) {
  return this.indexOf(text) > -1;
};

// get element by id
var $e = function(id) {
  return document.getElementById(id);
};