function CufonTracker_registerevent(elem, type, listener, useCapture, noAutoStart)
{
   var proto = arguments.callee.prototype;

   this.e = elem;
   this.type = type;
   this.cap = useCapture;
   this.l = listener;


   proto.start = function()
   {
      if( this.e.attachEvent )
      {
         this.e.attachEvent("on" + this.type, this.l);
      }
      else if( this.e.addEventListener )
      {
         this.e.addEventListener(this.type, this.l, this.cap);
      }
   }

   if( ! noAutoStart )
   {
      this.start(elem, type, listener);
   }

   proto.stop = function()
   {
      if( this.e.detachEvent )
      {
          this.e.detachEvent("on" + this.type, this.l);
      }
      else if( this.e.removeEventListener )
      {
          this.e.removeEventListener(this.type, this.l, this.cap);
      }
   }
};

var CufonEvt = new CufonTracker_registerevent( window , 'load' , function( ev )
{
	Cufon.now();
}
, false , false );
