/**----------------------------------------------------------------------------
 *  IMS_JS_WIDGET
 *  (c) 2007 Third Light Ltd
 * ----------------------------------------------------------------------------
 */

/**
 * A static namespace for IMS's JS widget collection.
 */

IMS_JS_WIDGET = {
    arrInstances: new Array()
};

/**
 * The super class for all IMS JS widgets.
 */

IMS_JS_WIDGET.Widget = Class.create({
    initialize: function(required, options) {           
        this.required = required || { };
        this.options  = options  || { }; 
        this.registerInstance();           
    },
    
    registerInstance: function() {
        this.nInstanceIndex = IMS_JS_WIDGET.arrInstances.length;
        IMS_JS_WIDGET.arrInstances[this.nInstanceIndex] = this;
    }
});
    
	
	