/* [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','home',jdecode('home'),jdecode('Home'),'/home.shtml','',[],''],
	['PAGE','infos',jdecode('info'),jdecode('Infos'),'/infos.shtml','',[],''],
	['PAGE','aktuelles',jdecode('blog'),jdecode('Aktuelles'),'/aktuelles.shtml','',[],''],
	['PAGE','gallerie',jdecode('gallerie'),jdecode('Gallerie'),'/gallerie.shtml','',[],''],
	['PAGE','kontakt',jdecode('kontakt'),jdecode('Kontakt'),'/kontakt.shtml','',[],''],
	['PAGE','impressum',jdecode('impressum'),jdecode('Impressum'),'/impressum.shtml','',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Champagne';
theSitetree.paletteFamily='426388';
theSitetree.keyvisualId='11356';
theSitetree.keyvisualName='kv_11356.jpg';
theSitetree.fontsetId='31946';
theSitetree.graphicsetId='13786';
theSitetree.contentColor='213245';
theSitetree.contentBGColor='426388';
var theTemplate={
  name: 			      'Champagne',
	 paletteFamily: 	  '426388',
	 keyvisualId: 	      '11356',
	 keyvisualName: 	  'kv_11356.jpg',
	 fontsetId: 		  '31946',
	 graphicsetId: 	      '13786',
	 contentColor: 	      '213245',
	 contentBGColor:      '426388',
	 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=DE10-03&design_name=champagne&hexname=426388&keyvisual_id=11356&palette_id=22022&graphicset_id=13786&fontset_id=31946',
	 TERM_END: 	          ''
};
var canonHostname = 'UNRESOLVED';
var accountId     = 'AHP01NXXXNOO';
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 */					                                                            
