/**
  * Application Layout
  * by Jozef Sakalos, aka Saki
  * http://extjs.com/learn/Tutorial:Application_Layout_for_Beginners
  */
 

 
// create namespace
Ext.namespace('headlinepagepanels');
 
// create application
headlinepagepanels.app = function() {
    // do NOT access DOM from here; elements don't exist yet
 
    // private variables
    
 
    // private functions
  
    
    
    // public space
    return {
        // public properties, e.g. strings to translate
 		
        
        // public methods
       
        
        init: function() {
            
            var w = "95%";
            //print pubs panels
            for(var i=0;i<headlinesarray.length;i++){
            	var id='id'+ headlinesarray[i].textid;
            	headlinepagepanel = new Ext.Panel({
	                id:id,
	                title: headlinesarray[i].title,
	                titleCollapse:true,
	                collapsible:true,
	                collapsed:headlinesarray[i].collapsed,
	                renderTo: 'panel_index',
	                width:w,
	                cls:'panelmargin',
	                bodyStyle:'artbody',
	                buttonAlign:'left',
	                html:headlinesarray[i].summary
            	});
            	
            }
            
           
           
        }//end init function
		
		       
            
    };
}(); // end of app
 
// end of file
