/**
 * @author George Miller
 */
Ext.namespace('MyXT');
//the common elements of the newsreader
//the news stories
MyXT.myData = [
[0, 'One', 'Mon 20th July 2008',  'Monkey Marketing Ltd are in the final stages off completing their new web site.<br> This site will be a full AJAX driven site, using Mootools and ExtJS.<br>The complete site will be available to customers very soon!'],
 [1, 'Two', 'Thursday 24th July 2008', 'Monkey Marketing Ltd. have a number of new projects underway.<br><a href="http://www.adshares.co.uk" target="_blank">Adshares</a>A revolutionary site that takes advantage of the growth in online advertising.<br>We have recently launched <a href="http://www.pimpmyboots.com" target="_blank">Pimp My Boots</a>An e-commerce site selling the latest fashion at the lowest prices.',
 [2, 'Three', 'Tuesday 4th November 2008', 'Monkey Marketing have completed and are in the stage of marketing a new venture, <a href="http://www.oddsonsports.co.uk" target="_blank">Odds on Sports</a> - it features 9 different sports from Football to Snooker. <br><br>It has live odds and information for all these sports, also a free desktop widget to download.']]
 ];

MyXT.tpl = new Ext.XTemplate(
    '<tpl for="."><div class="thumb-wrap">',
        '<div class="newsTitle"><b>Article {number}<br><font size="1">{date}</font></b></div>',
        '<div style="padding:5px;">{text}</div></div>',
    '</tpl>'
);
MyXT.RecordDef = Ext.data.Record.create([
{name: 'id', mapping: 0},
{name: 'number', mapping: 1},{name:'date', mapping: 2},{name:'text', mapping: 3}
]);
 MyXT.reader = new Ext.data.ArrayReader({id: 0}, MyXT.RecordDef);
	
	MyXT.store = new Ext.data.Store({
            reader: MyXT.reader
        });
MyXT.num = MyXT.myData.length;
