/* [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','22486',jdecode('Home'),jdecode(''),'/22486.html','true',[],''],
	['PAGE','22492',jdecode('Dienstleistungen'),jdecode(''),'/22492/home.html','true',[ 
		['PAGE','24402',jdecode('Bilder'),jdecode(''),'/22492/24402.html','true',[],'']
	],''],
	['PAGE','22497',jdecode('Referenzen'),jdecode(''),'/22497.html','true',[],''],
	['PAGE','22502',jdecode('Kontakt'),jdecode(''),'/22502.html','true',[],''],
	['PAGE','22901',jdecode('Partner'),jdecode(''),'/22901.html','true',[],''],
	['PAGE','22522',jdecode('Impressum'),jdecode(''),'/22522.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Cuy';
theSitetree.paletteFamily='F7FDFD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='385';
theSitetree.graphicsetId='438';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F7FDFD';
var theTemplate={
				name: 			'Cuy',
				paletteFamily: 	'F7FDFD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'385',
				graphicsetId: 	'438',
				contentColor: 	'000000',
				contentBGColor: 'F7FDFD',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F7FDFD',
				b_color: 		'E4E5C0',
				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:  '22486',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-10366320f0c']={
webappId:    '1007',
documentId:  '24402',
internalId:  '10366320f0c',
customField: 'g.10dj0dj8t.9j9p75jd6t.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22486',
internalId:  '',
customField: '20080121-200015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22492',
internalId:  '',
customField: '20061103-091735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24402',
internalId:  '',
customField: '20050425-230232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22497',
internalId:  '',
customField: '20080121-195900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22502',
internalId:  '',
customField: '20080121-195954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20060831-191953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22522',
internalId:  '',
customField: '20050411-205818'
};
var canonHostname = 'cfawrk07.aul.t-online.de';
var accountId     = 'ATOIX0INEXA6';
var companyName   = 'Buscham+%26+Schaare+Ingenieurleistungen';
var htmlTitle	  = 'Management-Software+f%C3%BCr+die+systematische+Stra%C3%9Fenerhaltung';
var metaKeywords  = 'Software+Management+systematisch+systematische+Stra%C3%9Fenerhaltung+Strassenerhaltung+PMS+Pavement+System+Managementsystem+Mangementsysteme+Zustandserfassung+Zustandserfassungen+Griffigkeit+Datenbank+Datenbanken+Buscham+Schaare+StraMa';
var metaContents  = 'Darstellung+des+Angebots+von+Buscham++Schaare+Ingenieurleistungen%3A+visuelle+Zustandserfassungen%2C+Untersuchung+der+Griffigkeit%2C+Bereitstellung+und+Anpassung+der+PMS-Software+StraMa%2C+Progammierung+von+Datenbanken';
					                                                                    
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 */					                                                            

