var NiceLayer = function(config,existingEl)
{
	NiceLayer.superclass.constructor.call(this,config,existingEl);
	var html='';
	if(existingEl) html=Ext.getDom(existingEl).innerHTML; 
	this.addClass('nice-layer');
	this.update([
		'<table width="100%" height="100%" style="width:100%;height:100%" cellpadding="0" cellspacing="0" >',
			'<tr><td width="8" class="tl">&nbsp;</td><td class="tc">&nbsp;</td><td class="tr">&nbsp;</td></tr>',
			'<tr><td class="ml"></td><td class="mc"></td><td class="mr"></td></tr>',
			'<tr><td class="bl">&nbsp;</td><td class="bc">&nbsp;</td><td class="br">&nbsp;</td></tr>',
		'</table>'	
	].join(''));
    if(config.width) this.setWidth(config.width);
	if(config.height) this.setHeight(config.height);
	this.body = this.child('td.mc');
	this.body.update(html);
}
Ext.extend(NiceLayer,Ext.Layer);
