// JavaScript Document
Ext.enableGarbageCollector = false;
var ComLanding = function(){
	
	return {
		init : function(){
			new Ext.Panel({
						  title:Ext.get('newscenter_panel_title').dom.innerHTML,
						  renderTo:'newscenter_panel_holder',
						  contentEl:'newscenter_panel',
						  collapsible:false,
						  headerAsText:true,
						  iconCls:'moduleIcon',
						  frame:true
						  });
			
			new Ext.Panel({
						  title:Ext.get('howtojoin_panel_title').dom.innerHTML,
						  renderTo:'howtojoin_panel_holder',
						  contentEl:'howtojoin_panel',
						  collapsible:false,
						  headerAsText:true,
						  iconCls:'moduleIcon',
						  frame:true
						  });
			
			new Ext.Panel({
						  title:Ext.get('school_panel_title').dom.innerHTML,
						  renderTo:'school_panel_holder',
						  contentEl:'school_panel',
						  collapsible:false,
						  headerAsText:true,
						  iconCls:'moduleIcon',
						  frame:true
						  });
			
			new Ext.Panel({
						  title:Ext.get('event_panel_title').dom.innerHTML,
						  renderTo:'event_panel_holder',
						  contentEl:'event_panel',
						  collapsible:false,
						  headerAsText:true,
						  iconCls:'moduleIcon',
						  frame:true,
						  width:180
						  });
			
			
			
			new Ext.Panel({
						  title:Ext.get('expert_panel_title').dom.innerHTML,
						  renderTo:'expert_panel_holder',
						  contentEl:'expert_panel',
						  header:true,
						  collapsible:false,
						  headerAsText:true,
						  iconCls:'moduleIcon',
						  frame:true,
						  width:180
						  });
			
			
			
			/*
			new Ext.Panel({
						  title:'帮助中心',
						  renderTo:'helpCenter_panel_holder',
						  contentEl:'helpCenter_panel',
						  collapsible:false,
						  headerAsText:true,
						  iconCls:'moduleIcon',
						  frame:true,
						  width:187
						  });
			*/
		}
	};
}();

Ext.onReady(ComLanding.init,ComLanding);
