/*
*
* Objet de construction des composantes HTML
*
*/
var playZone = {
    /** Vars **/
    name                : 's2tWare-playZone',
    id                  : '#s2tWare-playZone',
    /*-> options */
    height              : "40",

    /** Méthodes **/
    init: function () {
        this.construct(s2tWare.id);
        this.resize();
        $j(this.id).fadeIn()
    },
    construct: function(parent) {
       var HTML = '<div id="' + this.name + 'd"></div>';
       $j(parent).prepend(HTML);
    },

    resize: function() {
       $j(this.id).css({
                height: function(){
                   var size = playZone.height;
                   return size + "px";
                },
                 width: function() {
                   var size = (s2tWare.width/2) - (s2tWare.logoWidth/2) - (s2tWare.margin * 3)
                   return size + "px";
                },
                top: function (){
                   var posi = s2tWare.margin;
                   return posi + 'px'
                },
                right: function (){
                   var posi = s2tWare.margin;
                   return posi + 'px'
                }

       });
    }
}

