code: function (fn, obj, overrideContext) {
  
              if (_initialized) {
  
                  setTimeout(function () {
                      var ctx = window;
                      if (overrideContext) {
                          if (overrideContext === true) {
                              ctx = obj;
                          } else {
                              ctx = overrideContext;
                          }
                      }
                      fn.call(ctx, "onLoad", [], obj);
                  }, 0);
  
              } else {
  
                  YAHOO.util.History.onLoadEvent.subscribe(fn, obj, overrideContext);
  
              }
          }
docs: Executes the supplied callback when the Browser History Manager is
  ready. This will execute immediately if called after the Browser
  History Manager onLoad event has fired.
  
  @method onReady
  @param {function} fn what to execute when the Browser History Manager is ready.
  @param {object} obj an optional object to be passed back as a parameter to fn.
  @param {boolean|object} overrideContext If true, the obj passed in becomes fn's execution scope.
  @see onLoadEvent