// register namespace
Ext.ns("EBO.Website.RUL.Navigation");

// define class
EBO.Website.RUL.Navigation.Footer = Ext.extend(Ext.Container, {
    
    // initialise component
    initComponent : function() {
        
        // apply config
        Ext.apply(this, {
            border:false,
            frame:true,
            layout: {
                type: 'hbox',
                pack: 'start',
                align: 'stretchmax'
            },
            items: [{
                border:false,
                height:100,
                width:195,
                baseCls:'x-ebo-footer-column',
                layout: {
                    type: 'vbox',
                    pack: 'start',
                    align: 'stretch'
                },
                items:[{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php" target="_self">Copyright</a>'
                },{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php" target="_self">Privacy policy</a>'
                },{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php" target="_self">Terms of service</a>'
                }]
            },{
                border:false,
                height:100,
                width:195,
                baseCls:'x-ebo-footer-column',
                layout: {
                    type: 'vbox',
                    pack: 'start',
                    align: 'stretch'
                },
                items:[{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/" target="_self">Home</a>'
                },{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php/services" target="_self">Services</a>'
                },{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php/references" target="_self">References</a>'
                }]
            },{
                border:false,
                height:100,
                width:195,
                baseCls:'x-ebo-footer-column',
                layout: {
                    type: 'vbox',
                    pack: 'start',
                    align: 'stretch'
                },
                items:[{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php/news" target="_self">News</a>'
                },{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php" target="_self">Search</a>'
                },{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php/contact" target="_self">Contact</a>'
                }]
            },{
                border:false,
                height:100,
                width:195,
                layout: {
                    type: 'vbox',
                    pack: 'start',
                    align: 'stretch'
                },
                items:[{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php/services/automatisering" target="_self">Automatisering</a>'
                },{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php/services/internet" target="_self">Glasvezel</a>'
                },{
                    border:false,
                    baseCls:'x-ebo-link-footer',
                    html:'<a href="/index.php/services/software" target="_self">Software</a>'
                }]
            }]
        });
        
        // init parent
        EBO.Website.RUL.Navigation.Footer.superclass.initComponent.call(this);
    }
});

// register xtype
Ext.reg('navigation.footer', EBO.Website.RUL.Navigation.Footer);
