Ext.onReady(function() {
	Ext.ns("CSPublic");
	
	var headerPanel = {
			xtype		: "link-contentviewer",
			title		: "Combine",
			header		: false,
			style		: "background-color:transparent; margin-bottom:6px",
			dbPath		: "/link3/cs/content.nsf",
			category	: "Public",
			border		: true,
			subCategory	: "Homepage",
			template	: 
				"<div style='font-size:16px; font-family:Arial; font-weight:bold; color:#fff; background-color:#333; padding:6px'><a name='content-{unid}'></a>{xTitle}</div>" +
				"<div style='padding:10px; border:1px solid #bbb'>{xContentBody}</div><div style='height:6px; font-size:1px; background-color:#e4e4e4'>&nbsp;</div>"
	};
	

	CSPublic.Home = Ext.apply(new L3.V4.App(), {

		config	: {
			siteTitle	: "Central Scouting",
			siteTitleImage	: "/link3/sections/cs/resources/cs-header.gif",
			appTitle 	: "Welcome to NHL Central Scouting",
			appHeader	: CSPublic.appHeader,
			tbar		: CSPublic.tbar,
			appBody		: headerPanel,
			eastSidebar	: {
				items	: [{
					html	: "<img src='/link3/sections/cs/public/images/scouts-header.png' />",
					bodyStyle	: "background:transparent; border-bottom:4px solid #C41230",
					style	: "background:transparent",
					border	: false
				},{
					bodyStyle	: "text-align:center; padding-top:2px; padding-bottom:2px; background:transparent",
					contentEl	: "lw-body"
				}]
			}
		},

		
		initApp	: function() {
			CSPublic.init();
		}
	});


	CSPublic.Home.init();
});