/**
 * MindCMS 3
 *
 * @class   msHtml
 * @extends msContainer
 *
 * @package CMS3
 * @author Francisc Ungureanu <francisc.ungureanu@mindbench.nl> 
 * @copyright Mindbench Active Media B.V.
 * @version $Id: msHtml.js 7214 2009-01-05 15:37:19Z rma $
 *
 * Details:
 * This will hold pure html content
 * 
 */

var msHtml = Class.create(msContainer, {
  xtype: 'html',
  state: 0,
  
  initialize: function ($super, config)
  {  
    $super(config);
    
    this.config =  { content: '' };
    Object.extend(this.config, config || {});

    this.build();
  },
   
  build: function() {
    this.el = new Element('div');
   
    this.el.innerHTML = this.config.content;
    var wrapper = new Element('div', { 'id': this.config.id });

    this.el = Element.wrap(this.el,wrapper);
  },

  getWidthForState: function(state) {
    return this.getWidth();
  },
  
  setState: function (state) {
    return;
  }
  
});

