/* [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','4579',jdecode('Startseite'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','48101',jdecode('Kontakt'),jdecode(''),'/48101.html','true',[],''],
	['PAGE','49201',jdecode('Hier+finden+Sie+uns'),jdecode(''),'/49201.html','true',[],''],
	['PAGE','46943',jdecode('Malerarbeiten'),jdecode(''),'/46943.html','true',[],''],
	['PAGE','46964',jdecode('Service'),jdecode(''),'/46964.html','true',[],''],
	['PAGE','46985',jdecode('Referenzen'),jdecode(''),'/46985/home.html','true',[ 
		['PAGE','52601',jdecode('Haust%C3%BCren'),jdecode(''),'/46985/52601.html','true',[],''],
		['PAGE','52622',jdecode('Hausfassaden'),jdecode(''),'/46985/52622.html','true',[],''],
		['PAGE','52643',jdecode('Wohnr%C3%A4ume'),jdecode(''),'/46985/52643.html','true',[],'']
	],''],
	['PAGE','47506',jdecode('G%C3%A4stebuch'),jdecode(''),'/47506/home.html','true',[ 
		['PAGE','47501',jdecode('Eintr%C3%A4ge'),jdecode(''),'/47506/47501.html','true',[],'']
	],''],
	['PAGE','49401',jdecode('Links'),jdecode(''),'/49401.html','true',[],''],
	['PAGE','48122',jdecode('Impressum'),jdecode(''),'/48122.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Wellen';
theSitetree.paletteFamily='CECECE';
theSitetree.keyvisualId='10998';
theSitetree.keyvisualName='kv_10998.jpg';
theSitetree.fontsetId='31927';
theSitetree.graphicsetId='13745';
theSitetree.contentColor='303031';
theSitetree.contentBGColor='CECECE';
var theTemplate={
				name: 			'Wellen',
				paletteFamily: 	'CECECE',
				keyvisualId: 	'10998',
				keyvisualName: 	'kv_10998.jpg',
				fontsetId: 		'31927',
				graphicsetId: 	'13745',
				contentColor: 	'303031',
				contentBGColor: 'CECECE',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20080227-204905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49401',
internalId:  '',
customField: '20080226-202550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46943',
internalId:  '',
customField: '20080225-182543'
};
webappMappings['1002']=webappMappings['1002-47506atoix0ines1i']={
webappId:    '1002',
documentId:  '47501',
internalId:  '47506atoix0ines1i',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48122',
internalId:  '',
customField: '20080226-213753'
};
webappMappings['1002']=webappMappings['1002-47506atoix0ines1i']={
webappId:    '1002',
documentId:  '47506',
internalId:  '47506atoix0ines1i',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46964',
internalId:  '',
customField: '20080225-182543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46985',
internalId:  '',
customField: '20080225-182543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20080226-202831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47506',
internalId:  '',
customField: '20080226-210840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47501',
internalId:  '',
customField: '20080225-183520'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '49201',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49201',
internalId:  '',
customField: '20080226-203306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52601',
internalId:  '',
customField: '20080302-221951'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52622',
internalId:  '',
customField: '20080302-221951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52643',
internalId:  '',
customField: '20080302-221951'
};
var canonHostname = 'cfawrk10.aul.t-online.de';
var accountId     = 'ATOIX0INES1I';
var companyName   = 'Der+Maler+Ulf+Wedekind';
var htmlTitle	  = 'Der+Maler+Ulf+Wedekind';
var metaKeywords  = 'Ulf+Wedekind%2C+der+maler+ulf+wedekind%2C+Farbe%2C+Farben%2C+Anstrich%2C+Malerhandwerk%2C+Maler%2C+malern%2C+Fassadengestaltung%2C+Tapezierarbeiten%2C+tapezieren%2C+Tapeten%2C+Lackierer%2C+Malereibetrieb%2C+Lackierarbeiten%2C+Lacke%2C+Foehr%2C+insel+f%C3%B6hr%2C+Insel+F%C3%B6hr%2C+Urlaub+auf+F%C3%B6hr%2C+Malerarbeiten+';
var metaContents  = 'Der+Maler+Ulf+Wedekind...+Ihre+4+W%C3%A4nde+in+gute+H%C3%A4nde';
					                                                                    
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 */					                                                            

