/**
 * @author George Miller
 */
Ext.onReady(function(){
    var xd = Ext.data;

    var store = new Ext.data.JsonStore({
        url: 'includes/xml_menu_football.php',
        fields: ['name', 'link', 'title']
    });
  

    var tpl = new Ext.XTemplate(
	'<ul>',
		'<tpl for=".">',
            '<li class="thumb"><a href="{link}" title="{title}">{name}</a></li>',
        '</tpl>',
        '</ul>'
	);

    var panel = new Ext.Panel({
        id:'images-view',
        frame:true,
        width:230,
        autoHeight: true,
		renderTo: 'myMenu',
        layout:'fit',
        baseCls: 'x-plain',
        items: new Ext.DataView({
            store: store,
            tpl: tpl,
			loadingText: 'Loading Menu',
            autoHeight: true,
            overClass:'x-view-over',
            itemSelector:'li.thumb',
            emptyText: 'No events to display'
        })
    });
  store.load();
});