/**
* @author iioriatti
* @version 1.0
* @extends Sinfo_Container
* @class This Class extend the Sinfo_Container class and provide to built one Caption container and one Content container in one container
* @param {Html_Container} par_oOwner Html_Container object owner of this Block.
* @param {String}[par_sCaption] String value for the Caption container
*/ 
Sinfo_Block = function (par_oOwner, par_sCaption)
{
    this.extend = Sinfo_Container;
    this.extend(par_oOwner);
    delete this.extend
   
    this.HtmlAddClassName('Block');
       
   if(!(!par_sCaption))
   {
      var oCaption = this.createContainer();
      oCaption.HtmlWrite(par_sCaption);
      oCaption.HtmlAddClassName("Caption");
   }
   var oContent = this.createContainer();
      oContent.HtmlAddClassName("Content");

   /**
   * This attribute return the type of the object.
   * @property
   * @type String
   */
   this.type = 'Sinfo_Block';

    /**
    * This attribute return the Sinfo_Container caption object.
    * @property
    * @type {Sinfo_Container}
    */
   this.Caption = oCaption;

    /**
    * This attribute return the Sinfo_Container content object.
    * @property
    * @type {Sinfo_Container}
    */
   this.Content = oContent;
}
