cmv.news.panel=new cmv.slider.Panel({
  title:'Information > Nyheder',
  id:'cmvmenuitem3-panel',
  displayed: true,
  store:new Ext.data.JsonStore({
    // store configs
    autoDestroy: true,
    url: 'json/news.php',
    remoteSort: true,
    sortInfo: {
      field: 'dato',
      direction: 'ASC'
    },
    storeId: 'news',
    idProperty: 'idx',
    root: 'data',
    totalProperty: 'total',
    fields: [{
      name: 'idx',
      type: 'int'
    }, {
      name: 'dato',
      type: 'date',
      dateFormat: Date.patterns.ISO8601Long
    }, {
      name: 'overskrift'
    }, {
      name: 'artikel'
    },{
      name: 'link1'
    }, {
      name: 'link1_tekst'
    }, {
      name: 'link1_frame'
    },{
      name: 'link2'
    }, {
      name: 'link2_tekst'
    }, {
      name: 'link2_frame'
    }, {
      name: 'imagetype'
    }]
  }),
  listeners:{
    activate: {
      fn: function(panel){
        //Expand opslagstavlen
        cmv.opslag.Panel.expand();
        //Expand netop nu
        cmv.now.panel.expand();
      }
    }
  }
})
cmv.menu.wrc.add(cmv.news.panel);
