/**
 * Copyright(c) 2006-2009, FeyaSoft Inc.
 */
Ext.ns('feyaSoft.oilAccount.accountPublic');

feyaSoft.oilAccount.accountPublic.HomeMainPanel = function(config){

    // this is open news pane;
    this.openNewsPanel = new feyaSoft.oilAccount.account.home.OpenNewsPanel();

    // this is technology panel
    this.technologyPanel = new feyaSoft.oilAccount.account.home.TechnologyPanel();

    // site panel
    config.oiltitle='Links';
    this.topSitesPanel=new feyaSoft.oilAccount.account.home.TopSitesPanel(config);

    //call super
    feyaSoft.oilAccount.accountPublic.HomeMainPanel.superclass.constructor.call(this, {
        //id: config.id,
       // margins:'35 5 5 0',
        layout: 'column',
        title:'Home',
       // border:true,
        defaults: {
                columnWidth: .33,
                style:'padding:10px 0 10px 10px'
        },
        items: [{title: config.oiltitle,layout:'fit',frame:true,items:[this.topSitesPanel]}, this.technologyPanel, this.openNewsPanel]
    });

    this.on('resize', function(p,aw,ah,rw,rh){
        this.openNewsPanel.setHeight(ah);
        this.get(0).setHeight(ah);
        this.technologyPanel.setHeight(ah);
    }, this);
};

Ext.extend(feyaSoft.oilAccount.accountPublic.HomeMainPanel, Ext.Panel);
