//----------------------------------------------------------------------
// theAppBindings
//----------------------------------------------------------------------
if (typeof(window.theApp)=='object' && window.theApp!=null)
{
	// theApp Configurations
	if (!window.theApp.isbinded)
	{
		// theApp Server Error Messages
		window.theApp.AddProperty('theServerError.Footer','')
		window.theApp.AddProperty('theServerError.404.Title','The page cannot be found')
		window.theApp.AddProperty('theServerError.404.Body','The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.')
		window.theApp.AddProperty('theServerError.500.Title','The page cannot be displayed')
		window.theApp.AddProperty('theServerError.500.Body','There is a problem with the page you are trying to reach and it cannot be displayed.')
		
		// theNavigator filter & images definitions
		window.theApp.navigatorfilter='Customer Support\\Voice Support\nCustomer Support\\Data Support\nCustomer Support\\Video Support\nCustomer Support\\Misc Support\nCustomer Support\\Billing Support';
		//window.theApp.AddProperty('Customer Support\\Voice Support.IMG','images/cs_subnav_voice.gif')
		//window.theApp.AddProperty('Customer Support\\Data Support.IMG','images/cs_subnav_data.gif')
		//window.theApp.AddProperty('Customer Support\\Video Support.IMG','images/cs_subnav_video.gif')
		//window.theApp.AddProperty('Customer Support\\Misc Support.IMG','images/cs_subnav_misc.gif')
		//window.theApp.AddProperty('Customer Support\\Billing Support.IMG','images/cs_subnav_billing.gif')

		window.theApp.navigatorfilter='Customer Support\\Voice Support\nCustomer Support\\Data Support\nCustomer Support\\Video Support\nCustomer Support\\Misc Support\nCustomer Support\\Billing Support';
		window.theApp.AddProperty('Customer Support\\Voice Support.IMG','Voice Support')
		window.theApp.AddProperty('Customer Support\\Data Support.IMG','Data Support')
		window.theApp.AddProperty('Customer Support\\Video Support.IMG','Video Support')
		window.theApp.AddProperty('Customer Support\\Misc Support.IMG','Misc Support')
		window.theApp.AddProperty('Customer Support\\Billing Support.IMG','Billing Support')
		
		
		// theArticleSearch strings
		window.theApp.AddProperty('theArticleSearchForm.Scope.All','All Categories')
		window.theApp.AddProperty('theArticleSearchResults.Name','Search Results')
		window.theApp.AddProperty('theArticleSearchResults.No Results','Your query did not produce any results. Please try again.')
		// theApp Object Data Binding
		// theApp Data Containers
		
		window.theApp.folder=window.theApp.rootfolder=(typeof(vFx)=='object' && vFx!=null) ? vFx : new theArticleFolder(null,'sprt_root_folder','Missing Data - Root Folder','','alert(\'Missing Data\')');;

		// theArticleSearchResults
		if (typeof(vKCSearchResultsFolder)!='undefined' &&  vKCSearchResultsFolder!=null)
		{
			vKCSearchResultsFolder.name=this.theApp.GetPropertyValue('theArticleSearchResults.Name');
			vKCFolders[vKCFolders.length]=window.theApp.searchresultsfolder=vKCSearchResultsFolder;
			window.theApp.searchresultsfolder.parent=((window.theApp.searchresultsfolder) ? window.theApp.folder : null )
		}
		// Package Announcements & Quick Links
		vKCFolders[vKCFolders.length]=window.theApp.announcements=((typeof(vKCAnnouncements)!='undefined' && vKCAnnouncements!=null) ? vKCAnnouncements  : new theArticleFolder(null,'','Announcements','',''))
//		window.theApp.announcements.parent=((window.theApp.announcements) ? window.theApp.folder : null )
		vKCFolders[vKCFolders.length]=window.theApp.quicklinks=((typeof(vKCQuickLinks)!='undefined' && vKCQuickLinks!=null) ? vKCQuickLinks  : new theArticleFolder(null,'','Quick Links','',''))
//		window.theApp.quicklinks.parent=((window.theApp.quicklinks) ? window.theApp.folder : null )


		// Package MyAccount & Instant Answers / Feedback
		vKCFolders[vKCFolders.length]=window.theApp.myaccount=((typeof(vKCMyAccount)!='undefined' && vKCMyAccount!=null) ? vKCMyAccount : new theArticleFolder(null,'','My Account','',''))
		vKCFolders[vKCFolders.length]=window.theApp.instantanswers=((typeof(vKCInstantAnswers)!='undefined' && vKCInstantAnswers!=null) ? vKCInstantAnswers : new theArticleFolder(null,'','Instant Answers / Feedback','',''))
		
		window.theApp.folders=vKCFolders;
		if (typeof(vKCArticle)!='undefined' && vKCArticle!=null)
		{
			var vTKCArticle=window.theApp.GetArticleByID(vKCArticle.id);
			window.theApp.article=vKCArticle;
			window.theApp.article.parent=((vTKCArticle!=null) ? vTKCArticle.parent : window.theApp.rootfolder);
		}

		if (typeof(vKCTopArticlesFolder)=='object' && vKCTopArticlesFolder!=null)
		{
			window.theApp.toparticlesfolder=vKCTopArticlesFolder;
		}
		else
			window.theApp.toparticlesfolder= new theArticleFolder(null,'','Most Viewed Articles','','');;

		window.theApp.theNavigator=new theNavigator(window.theApp);
		window.theApp.theServerError=new theServerError(window.theApp);
		window.theApp.theWebPageHeader=new theWebPageHeader(window.theApp);
		window.theApp.theWebPageFooter=new theWebPageFooter(window.theApp);
		window.theApp.theWebPageHeaderMenu=new theWebPageHeaderMenu(window.theApp);
		
		
		
		window.theApp.theBoxElementTop=new theBoxElementTop(window.theApp);
		window.theApp.theBoxElementBot=new theBoxElementBot(window.theApp);
		window.theApp.theMyAcctMenu=new theMyAcctMenu(window.theApp);
		
		
		window.theApp.theHomePage=new theHomePage(window.theApp);
		window.theApp.theMyAccount=new theMyAccount(window.theApp);
		window.theApp.theInstantAnswers=new theInstantAnswers(window.theApp);
		window.theApp.theTopArticles=new theTopArticles(window.theApp);
		
		//window.theApp.theTopArticles=new theTopArticles(window.theApp);
		
		window.theApp.theAdditionalResources=new theAdditionalResources(window.theApp);
		window.theApp.theContactInfo=new theContactInfo(window.theApp);
		window.theApp.theArticleSearchForm=new theArticleSearchForm(window.theApp);
		window.theApp.theArticleAdvancedSearchForm=new theArticleAdvancedSearchForm(window.theApp);
		window.theApp.theArticleSearchResults=new theArticleSearchResults(window.theApp);
		window.theApp.theArticleFolderView=new theArticleFolderView(window.theApp);
		window.theApp.theArticleView=new theArticleView(window.theApp);
		window.theApp.theAnnouncements=new theAnnouncements(window.theApp);
		window.theApp.theFeedbackForm=new theFeedbackForm(window.theApp);
		window.theApp.theContentRatingForm=new theContentRatingForm(window.theApp);
		window.theApp.theQuickLinks=new theQuickLinks(window.theApp);
		window.theApp.theWebPageTemplate=new theWebPageTemplate(window.theApp);
		window.theApp.isbinded=true;
	}
}