/* [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','1401',jdecode('Home'),jdecode(''),'/1401.html','true',[],''],
	['PAGE','2943',jdecode('Angebot'),jdecode(''),'/2943.html','true',[],''],
	['PAGE','8601',jdecode('Hufprobleme'),jdecode(''),'/8601.html','true',[],''],
	['PAGE','3301',jdecode('Fotos%2FGalerie'),jdecode(''),'/3301.html','true',[],''],
	['PAGE','2901',jdecode('Philosophie'),jdecode(''),'/2901.html','true',[],''],
	['PAGE','3001',jdecode('Berufl.+Werdegang'),jdecode(''),'/3001.html','true',[],''],
	['PAGE','2922',jdecode('%C3%9Cber+mich%2FKenntnisse'),jdecode(''),'/2922.html','true',[],''],
	['PAGE','9401',jdecode('Unsere+Werkstatt'),jdecode(''),'/9401.html','true',[],''],
	['PAGE','8801',jdecode('Arbeitsgebiet'),jdecode(''),'/8801.html','true',[],''],
	['PAGE','7101',jdecode('Links'),jdecode(''),'/7101.html','true',[],''],
	['PAGE','9701',jdecode('News-Blog'),jdecode(''),'/9701.html','true',[],''],
	['PAGE','19101',jdecode('G%C3%A4stebuch'),jdecode(''),'/19101.html','true',[],''],
	['PAGE','8101',jdecode('Kontakt'),jdecode(''),'/8101.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Sportfan1';
theSitetree.paletteFamily='CBCBC3';
theSitetree.keyvisualId='10047';
theSitetree.keyvisualName='kv_10047.jpg';
theSitetree.fontsetId='21079';
theSitetree.graphicsetId='13171';
theSitetree.contentColor='FF8C26';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Sportfan1',
				paletteFamily: 	'CBCBC3',
				keyvisualId: 	'10047',
				keyvisualName: 	'kv_10047.jpg',
				fontsetId: 		'21079',
				graphicsetId: 	'13171',
				contentColor: 	'FF8C26',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20090726-125954'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']={
webappId:    '7060',
documentId:  '3301',
internalId:  '397da92d9b54d24a741c57690c528fa0',
customField: 'language:de;country:CH;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2943',
internalId:  '',
customField: '20090422-165424'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20090824-091529'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20090422-165527'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20090422-165548'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2922',
internalId:  '',
customField: '20090720-184039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20090820-085231'
};
webappMappings['7008']={
webappId:    '7008',
documentId:  '8101',
internalId:  '870',
customField: 'language:de;country:CH;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20090720-185400'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20090812-112433'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8801',
internalId:  '',
customField: '20090810-152248'
};
webappMappings['7060']={
webappId:    '7060',
documentId:  '9401',
internalId:  '5d12cd7a3af6a2f3c1ce0de9f8ebccb9',
customField: 'language:de;country:CH;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20090824-194632'
};
webappMappings['7050']={
webappId:    '7050',
documentId:  '9701',
internalId:  '474',
customField: 'language:de;country:CH;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20090721-090652'
};
webappMappings['7002']={
webappId:    '7002',
documentId:  '19101',
internalId:  '788',
customField: 'language:de;country:CH;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20090923-094508'
};
var canonHostname = 'localhost.localdomain';
var accountId     = 'AGT010IN27Q6';
var companyName   = 'Hufschmied+Christian+Sch%C3%BCtz';
var htmlTitle	  = 'Hufschmied+Sch%C3%BCtz+-+Pferde+Hufschmiede+Basel%2FBaselland+Schweiz+Elsass+Bern+Jura+Hufbeschlag+Hufpfleger+Hufpflege+Hufschuhe';
var metaKeywords  = 'Hufschmied%2C+Sch%C3%BCtz%2C+Christian%2C+Pferde%2C+Hufschmiede%2C+Basel%2C+Baselland%2C+Schweiz%2C+Hufbeschlag%2C+Hufpfleger%2C+Hufpflege%2C+Hufschuhe%2C';
var metaContents  = 'Christian+Sch%C3%BCtz+-+Hufschmiede++Schlosserei+in+Muttenz+%28BL%29+-+Schweiz+-+Freizeitbeschlag+%7C+Sportbeschlag+%7C+Orthop%C3%A4discher+Beschlag+%7C+Futtermittel++Hufpflegeprodukte';
					                                                                    
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 */					                                                            
