Ext.ns('Ext.ux.clv2')

Ext.ux.clv2.StatsHeaderPanel= function(config) {
    // call parent constructor
    Ext.ux.clv2.StatsHeaderPanel.superclass.constructor.call(this, config);
};

// extend
Ext.extend(Ext.ux.clv2.StatsHeaderPanel, Ext.Panel, {
                           closable:true,
                           width:100,
                           height:200,
                           plain:true,
                           layout: 'fit',
                           resizable:false                           
    
});

Ext.reg('statsHeaderPanel', Ext.ux.clv2.StatsHeaderPanel);

Ext.ux.clv2.StatsWindow= function(config) {
    // call parent constructor
    Ext.ux.clv2.StatsWindow.superclass.constructor.call(this, config);
	
	this.on('beforeclose', this.hideSpotlight, this);
	this.on('beforehide', this.hideSpotlight, this);
	this.on('beforeshow', this.showSpotlight, this);
	this.on('collapse', this.showSpotlight, this);
	this.on('move', this.showSpotlight, this);
	this.on('resize', this.showSpotlight, this);
}; // end of Ext.ux.IconCombo constructor

// extend
Ext.extend(Ext.ux.clv2.StatsWindow, Ext.Window, {
						   closeAction:'close',
						   closable:true,
                           width:660,
                           height:600,
                           plain:true,
                           layout: 'fit',
                           resizable:false,
	hideSpotlight : hideSpotlight,
	showSpotlight : showSpotlight,
	addTitleBarItems: addExtTitleBarItems,
    setElementAction: setExtElementAction
});