
/* All CodeSourcery declarations are placed within the CS "namespace".  */
var CS = {};

(function() {
  /* Initialization functions that run after the DOM has been loaded.
     Use:

       CS.ctors.push(function() { ... });

     to register constructors.  */
  var ctors = [];

  /* The global YUI loader object.  */
  var loader = new YAHOO.util.YUILoader({
    base: "http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/",
    onSuccess: function() {
      YAHOO.util.Event.onDOMReady(function () {
        for (var i = 0; i < ctors.length; ++i)
          ctors[i]();
      });
    }
  });

  /* Register CodeSourcery modules.  */
  loader.addModule({
    name: "CS.ElasticTextarea",
    type: "js",
    requires: ["element"],
    fullpath: "http://www.codesourcery.com/js/elastic_textarea.js"
  });

  /* Declare variables that are part of the public interface.  */
  CS.ctors = ctors;
  CS.loader = loader;
})();
