/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40385',jdecode('Mein+Angebot'),jdecode(''),'/40385.html','true',[],''],
	['PAGE','40656',jdecode('Mein+Appartement'),jdecode(''),'/40656.html','true',[],''],
	['PAGE','40403',jdecode('Preis%2C+Leistung+und+Kontakt'),jdecode(''),'/40403.html','true',[],'']];
var siteelementCount=4;
theSitetree.topTemplateName='FliegendeEcke';
theSitetree.paletteFamily='FFFCB7';
theSitetree.keyvisualId='11046';
theSitetree.keyvisualName='kv_11046.jpg';
theSitetree.fontsetId='32081';
theSitetree.graphicsetId='13776';
theSitetree.contentColor='502206';
theSitetree.contentBGColor='FFFCB7';
var theTemplate={
				name: 			'FliegendeEcke',
				paletteFamily: 	'FFFCB7',
				keyvisualId: 	'11046',
				keyvisualName: 	'kv_11046.jpg',
				fontsetId: 		'32081',
				graphicsetId: 	'13776',
				contentColor: 	'502206',
				contentBGColor: 'FFFCB7',
				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: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20080318-135030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40385',
internalId:  '',
customField: '20080318-102709'
};
webappMappings['1501']=webappMappings['1501-47575495']={
webappId:    '1501',
documentId:  '39994',
internalId:  '47575495',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40403',
internalId:  '',
customField: '20080320-195234'
};
webappMappings['1007']=webappMappings['1007-118b8ca0d78']={
webappId:    '1007',
documentId:  '40656',
internalId:  '118b8ca0d78',
customField: 'g.132scckf6.932pg3i25h.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40656',
internalId:  '',
customField: '20080320-173635'
};
var canonHostname = 'cfawrk11.aul.t-online.de';
var accountId     = 'ATOIX0IRKP8V';
var companyName   = 'Ferienwohnung+%22Am+Bruderwald%22';
var htmlTitle	  = 'Fewo+Am+Bruderwald+Bamberg+Bergstadt';
var metaKeywords  = 'Am+Bruderwald%2C+Ferienappartement%2C+Ferienwohnung+Am+Bruderwald%2C+++';
var metaContents  = 'Willkommen+auf+der+Homepage+der+gediegen+eingerichteten+Ferienwohnung+++';
					                                                                    
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 */					                                                            

