/* [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','14201',jdecode('Home'),jdecode(''),'/14201.html','true',[],''],
	['PAGE','28601',jdecode('Neueinbau'),jdecode(''),'/28601.html','true',[],''],
	['PAGE','28622',jdecode('Austausch'),jdecode(''),'/28622.html','true',[],''],
	['PAGE','28643',jdecode('Sonnenschutz'),jdecode(''),'/28643/home.html','true',[ 
		['PAGE','28664',jdecode('Roto'),jdecode(''),'/28643/28664.html','true',[],''],
		['PAGE','28685',jdecode('Velux'),jdecode(''),'/28643/28685.html','true',[],'']
	],''],
	['PAGE','28706',jdecode('Kundendienst'),jdecode(''),'/28706.html','true',[],''],
	['PAGE','14232',jdecode('Kontakt'),jdecode(''),'/14232/home.html','true',[ 
		['PAGE','26101',jdecode('Kontaktaufnahme'),jdecode(''),'/14232/26101.html','true',[],''],
		['PAGE','26201',jdecode('Kontaktaufnahme+%28Folgeseite%29'),jdecode(''),'/14232/26201.html','false',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Simple';
theSitetree.paletteFamily='F9FADA';
theSitetree.keyvisualId='2538';
theSitetree.keyvisualName='bauen.jpg';
theSitetree.fontsetId='10753';
theSitetree.graphicsetId='10460';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='f9fada';
var theTemplate={
				name: 			'Simple',
				paletteFamily: 	'F9FADA',
				keyvisualId: 	'2538',
				keyvisualName: 	'bauen.jpg',
				fontsetId: 		'10753',
				graphicsetId: 	'10460',
				contentColor: 	'000000',
				contentBGColor: 'f9fada',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'857157',
				e_color: 		'AAAAAA',
				f_color: 		'817E7E',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28601',
internalId:  '',
customField: '20070108-132906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28643',
internalId:  '',
customField: '20070108-132906'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '14201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20060118-153336'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14232',
internalId:  '',
customField: '20060130-153256'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '26101',
internalId:  'atoix0inen2f1091b6e3629',
customField: ''
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '14201',
internalId:  '21291396',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '26201',
internalId:  'atoix0inen2f1091b6e3629',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28706',
internalId:  '',
customField: '20070108-132906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28622',
internalId:  '',
customField: '20070108-132906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28664',
internalId:  '',
customField: '20070108-132906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28685',
internalId:  '',
customField: '20070108-132906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20060130-141118'
};
var canonHostname = 'cfawrk08.aul.t-online.de';
var accountId     = 'ATOIX0INEN2F';
var companyName   = 'Michael+Hilpert+der-+dachfensterprofi.de';
var htmlTitle	  = 'Velux+und+Roto+Dachfenster+vom+Profi';
var metaKeywords  = 'Dachfenster%2FAusstiegsfenster%2FDachf%C3%A4chenfenster%2FVelux%2FRoto%2FZubeh%C3%B6r%2FAussenroll%C3%A4den%2FEindeckrahmen%2FInnenfutter%2FMontage%2FWartung%2FPlanung%2FInnenrollos%2FVerkauf%2FService';
var metaContents  = 'Dies+ist+die+Homepage+von+Michael+Hilpert+ihr+Dachfensterpartner+vom+Fach.+Velux+und++Roto+Dachfenster+und+Zubeh%C3%B6r.';
					                                                                    
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 */					                                                            

