/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var theSitetree=[ 
	['PAGE','1101',jdecode('Home'),jdecode(''),'/1101.html','true',[],''],
	['PAGE','110812',jdecode('Menu'),jdecode(''),'/110812/index.html','true',[ 
		['PAGE','110833',jdecode('Cold+Sandwiches'),jdecode(''),'/110812/110833.html','true',[],''],
		['PAGE','110854',jdecode('Hot+Sandwiches'),jdecode(''),'/110812/110854.html','true',[],''],
		['PAGE','110875',jdecode('Crisp+Salads'),jdecode(''),'/110812/110875.html','true',[],'']
	],''],
	['PAGE','112812',jdecode('Specials'),jdecode(''),'/112812.html','true',[],''],
	['PAGE','97875',jdecode('Feedback'),jdecode(''),'/97875/index.html','true',[ 
		['PAGE','109912',jdecode('Price+and+service+%28follow+up+page%29'),jdecode(''),'/97875/109912.html','false',[],'']
	],''],
	['PAGE','109212',jdecode('Map'),jdecode(''),'/109212.html','true',[],''],
	['PAGE','122612',jdecode('Christian+Youth+Forum'),jdecode(''),'/122612.html','true',[],''],
	['PAGE','123012',jdecode('Christian+Adult+Forum'),jdecode(''),'/123012.html','true',[],''],
	['PAGE','123033',jdecode('Christian+Men+Forum'),jdecode(''),'/123033.html','true',[],''],
	['PAGE','123054',jdecode('Christian+Women+Forum'),jdecode(''),'/123054.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Konzept';
theSitetree.paletteFamily='FD9601';
theSitetree.keyvisualId='560';
theSitetree.keyvisualName='transport.jpg';
theSitetree.fontsetId='119';
theSitetree.graphicsetId='138';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Konzept',
				paletteFamily: 	'FD9601',
				keyvisualId: 	'560',
				keyvisualName: 	'transport.jpg',
				fontsetId: 		'119',
				graphicsetId: 	'138',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'FD9601',
				b_color: 		'EEE2A0',
				c_color: 		'000000',
				d_color: 		'374B09',
				e_color: 		'C5B39F',
				f_color: 		'D78B1D',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1101',
internalId:  '12476918',
customField: '1501'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1101',
internalId:  '1006',
customField: '1006'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '123012',
internalId:  'aen010inlkhv118eb44612f',
customField: 'en:US:'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '109212',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '122612',
internalId:  'aen010inlkhv118eb43d2e4',
customField: 'en:US:'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '123033',
internalId:  'aen010inlkhv118eb44b96a',
customField: 'en:US:'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '123054',
internalId:  'aen010inlkhv118eb449212',
customField: 'en:US:'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '97875',
internalId:  'aen010inlkhv118d281b9be',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '109912',
internalId:  'aen010inlkhv118d281b9be',
customField: 'followUp'
};
var canonHostname = 'wsc.ehost-services.com';
var accountId     = 'AEN010INLKHV';
var companyName   = 'Mt.+Charleston+Deli';
var htmlTitle	  = 'Home+of+Deli+delights%21';
var metaKeywords  = 'Jesus+Christ%2C+body+of+Christ%2C+blood+of+Jesus%2C+Christian+books%2C+To+be+a+Christian%2C+Christian+used+books%2C+used+Bibles%2C+Church+web+design%2C+Missions+web+design%2C+Church+domain+registration%2C+Church+web+hosting%2C+customized+web+design%2C+++';
var metaContents  = 'Online+resource+center+for+Christian+books%2C+Bibles%2C+literature%2C++web+services+such+as+domain+registration%2C+web+hosting+and+web+design.';
					                                                                    
theSitetree.getById = function(id, ar) {												
							if (typeof(ar) == 'undefined')                              
								ar = this;                                              
							for (var i=0; i < ar.length; i++) {                         
								if (ar[i][POS_ID] == id)                                
									return ar[i];                                       
								if (ar[i][POS_CHILDS].length > 0) {                     
									var result=this.getById(id, ar[i][POS_CHILDS]);     
									if (result != null)                                 
										return result;                                  
								}									                    
							}                                                           
							return null;                                                
					  };                                                                
					                                                                    
theSitetree.getParentById = function(id, ar) {                                        
						if (typeof(ar) == 'undefined')                              	
							ar = this;                                             		
						for (var i=0; i < ar.length; i++) {                        		
							for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {   		
								if (ar[i][POS_CHILDS][j][POS_ID] == id) {          		
									// child found                                 		
									return ar[i];                                  		
								}                                                  		
								var result=this.getParentById(id, ar[i][POS_CHILDS]);   
								if (result != null)                                 	
									return result;                                  	
							}                                                       	
						}                                                           	
						return null;                                                	
					 }								                                    
					                                                                    
theSitetree.getName = function(id) {                                                  
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAME];                                      
						return null;	                                                
					  };			                                                    
theSitetree.getNavigationText = function(id) {                                        
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAVIGATIONTEXT];                            
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getHREF = function(id) {                                                  
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_HREF];                                      
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getIsNavigation = function(id) {                                          
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_ISNAVIGATION];                              
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getTemplateName = function(id, lastTemplateName, ar) {             		
	                                                                                 
	if (typeof(lastTemplateName) == 'undefined')                                     
		lastTemplateName = this.topTemplateName;	                                 
	if (typeof(ar) == 'undefined')                                                   
		ar = this;                                                                   
		                                                                             
	for (var i=0; i < ar.length; i++) {                                              
		var actTemplateName = ar[i][POS_TEMPLATENAME];                               
		                                                                             
		if (actTemplateName == '')                                                   
			actTemplateName = lastTemplateName;		                                 
		                                                                             
		if (ar[i][POS_ID] == id) {                                			         
			return actTemplateName;                                                  
		}	                                                                         
		                                                                             
		if (ar[i][POS_CHILDS].length > 0) {                                          
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]); 
			if (result != null)                                                      
				return result;                                                       
		}									                                         
	}                                                                                
	return null;                                                                     
	};                                                                               
/* EOF */					                                                            

