var homepanel = [];
homepanel['apropos'] = {text:'Ce panneau permet de visualiser l\'aide en ligne pour le portail de cartographie interactive du COGESAF.'};


// Définition de la fenêtre d'Aide et information ainsi que de son contenu.
// Le contenu de chaque onglet est défini dans un fichier .html séparé qui se trouve dans le répertoire /html.
//
var wHelp = new Ext.Window ({
     id:'wHelp'
    ,title:'Aide et information'
    ,border:false
    ,closable:true
    ,layout:'fit'
    ,width:710
    ,height:450
    ,closeAction:'hide'
    ,plain:true
    ,buttonAlign:'center'
    ,items: [{
        xtype: 'tabpanel',
//        title: 'tpAide',
        id: 'tpAide',
        activeTab: 0,
        tabPosition: 'bottom',
        items: [{
            title: 'A propos...',
            id: 'tAPropos',
            autoScroll:true,
			autoLoad:'html/apropos.html',
            bodyStyle:"background-color:#ffffff;padding:15px;text-align:justify;"
        },{
            title: 'FAQ',
            id: 'tFAQ',
			autoLoad:'html/faq.html',
            autoScroll:true,
            bodyStyle:"background-color:#ffffff;padding:15px;text-align:justify;"
        },{
            title: 'Démos',
            id: 'tDemos',
            autoLoad:'html/demos.html',
            bodyStyle:"background-color:#ffffff;padding:15px;text-align:justify;"
        },{
            title: 'Nouveautés',
            id: 'tNouveautes',
            autoLoad:'html/nouveautes.html',
            autoScroll:true,
            bodyStyle:"background-color:#ffffff;padding:15px;text-align:justify;"
        },{
            title: 'Licences',
            id: 'tLicences',
            autoLoad:'html/licences.html',
            autoScroll:true,
            bodyStyle:"background-color:#ffffff;padding:15px;text-align:justify;"
        },{
            title: 'Crédits',
            id: 'tCredits',
            autoLoad:'html/credits.html',
            autoScroll:true,
            bodyStyle:"background-color:#ffffff;padding:15px;text-align:justify;"
        }]
    }]
    ,buttons: [{
        text: 'Fermer'
       ,align:'center'
       ,handler:function(){
           wHelp.hide();
       }
   }]
});

