/* [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','40005',jdecode('Fewo+%26+Reservierung'),jdecode(''),'/40005.html','true',[],''],
	['PAGE','40014',jdecode('Anreise'),jdecode(''),'/40014.html','true',[],'']];
var siteelementCount=3;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='FFCC66';
theSitetree.keyvisualId='1684';
theSitetree.keyvisualName='abendsonne.jpg';
theSitetree.fontsetId='280';
theSitetree.graphicsetId='343';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFCC66';
var theTemplate={
				name: 			'Architekt',
				paletteFamily: 	'FFCC66',
				keyvisualId: 	'1684',
				keyvisualName: 	'abendsonne.jpg',
				fontsetId: 		'280',
				graphicsetId: 	'343',
				contentColor: 	'000000',
				contentBGColor: 'FFCC66',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFCC66',
				b_color: 		'CC6600',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
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: '20071223-143539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40014',
internalId:  '',
customField: '20070208-005142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40005',
internalId:  '',
customField: '20071116-095642'
};
webappMappings['1008']=webappMappings['1008-29456021']={
webappId:    '1008',
documentId:  '40005',
internalId:  '29456021',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['1501']=webappMappings['1501-29456528']={
webappId:    '1501',
documentId:  '39994',
internalId:  '29456528',
customField: '1501'
};
webappMappings['1008']=webappMappings['1008-31363789']={
webappId:    '1008',
documentId:  '39994',
internalId:  '31363789',
customField: 'de:DE:'
};
var canonHostname = 'cfawrk10.aul.t-online.de';
var accountId     = 'ATOIX0I76QV1';
var companyName   = 'Insel+R%C3%BCgen+-+Fewo+Bohlendorf';
var htmlTitle	  = 'Insel+R%C3%BCgen+-+Ferienwohnung+Bohlendorf';
var metaKeywords  = 'R%C3%BCgen%2C+Fewo%2C+Ferienwohnung%2C+Kap+Arkona%2C+Wittow%2C+Schaabe%2C+Sandstrand%2C+K%C3%B6nigstuhl%2C+Stubbenkammer%2C+Binz%2C+ruegen%2C+Sassnitz%2C+Sellin%2C+Ostsee%2C+B%C3%A4der%2C+Sand%2C+Breege%2C+Norden%2C+Wasser';
var metaContents  = 'Traumhafter+Urlaub+in+komfortablen+Ferienwohnungen+in+Bohlendorf++im+Norden+der+Insel+R%C3%BCgen+auf+d.+Halbinsel+Wittow+nahe+d+sch%C3%B6nsten+Ostseestrand+R%C3%BCgens%2C+Kap+Arkona%2C+Hiddensee+und+zwei+Boddengew%C3%A4ssern';
					                                                                    
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 */					                                                            
