/* [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','homepage',jdecode('home'),jdecode('JesusHouse'),'/homepage.shtml','',[],''],
	['PAGE','aktuelles',jdecode('aktuelles'),jdecode('Blog+%26+News'),'/aktuelles.shtml','',[],''],
	['PAGE','wasistjh',jdecode('wasistjh'),jdecode('Was+ist+JesusHouse%3F'),'/wasistjh.shtml','',[],''],
	['PAGE','bilder',jdecode('bilder'),jdecode('Bilder+und+Filmclips'),'/bilder.shtml','',[],''],
	['PAGE','termine',jdecode('termine'),jdecode('Event-Termine'),'/termine/index.shtml','',[ 
		['PAGE','lokal2010',jdecode('lokal2010'),jdecode('JesusHouse+lokal+2010'),'/termine/lokal2010.shtml','',[],''],
		['PAGE','zentral2011',jdecode('zentral2011'),jdecode('JesusHouse+zentral+2011'),'/termine/zentral2011.shtml','',[],''],
		['PAGE','zusatz',jdecode('zusatz'),jdecode('Und+danach%3F'),'/termine/zusatz.shtml','',[],'']
	],''],
	['PAGE','socnetworks',jdecode('socnetworks'),jdecode('Social+Networking'),'/socnetworks.shtml','',[],''],
	['PAGE','gaestebuch',jdecode('gaestebuch'),jdecode('G%C3%A4stebuch'),'/gaestebuch.shtml','',[],''],
	['PAGE','sonstiges',jdecode('sonstiges'),jdecode('Sonstiges'),'/sonstiges.shtml','',[],''],
	['PAGE','kontakt',jdecode('kontakt'),jdecode('Kontakt'),'/kontakt.shtml','',[],''],
	['PAGE','impressum',jdecode('impressum'),jdecode('Impressum'),'/impressum.shtml','',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='JesusHouse';
theSitetree.paletteFamily='938C46';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='';
theSitetree.fontsetId='56014';
theSitetree.graphicsetId='14384';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E9E5D4';
var theTemplate={
  name: 			      'JesusHouse',
	 paletteFamily: 	  '938C46',
	 keyvisualId: 	      '-1',
	 keyvisualName: 	  '',
	 fontsetId: 		  '56014',
	 graphicsetId: 	      '14384',
	 contentColor: 	      '000000',
	 contentBGColor:      'E9E5D4',
	 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',
	 g_color: 		      'FFFFFF',
	 h_color: 		      'FFFFFF',
	 i_color: 		      'FFFFFF',
	 j_color: 		      'FFFFFF',
	 hasCustomLogo: 	  '?',
	 contentFontFace:     'Arial, Helvetica, sans-serif',
	 contentFontSize:     '12'
};
var coho = {
  multipleDesignMode:  'false',
	 designDefinition: 	  'subcategory_id=DE99-01&design_name=jesushouse&hexname=938C46&keyvisual_id=-1&palette_id=24165&graphicset_id=14384&fontset_id=56014',
	 TERM_END: 	          ''
};
var canonHostname = 'UNRESOLVED';
var accountId     = 'AHP01NXXXZ50';
var companyName   = '';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

