/* [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','40664',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40664/home.html','true',[ 
		['PAGE','56001',jdecode('So+finden+Sie+uns'),jdecode(''),'/40664/56001.html','true',[],'']
	],''],
	['PAGE','64701',jdecode('Unsere+Leistungen+f%C3%BCr+Sie'),jdecode(''),'/64701.html','true',[],''],
	['PAGE','78801',jdecode('Aufwertung+Ihres+Heims'),jdecode(''),'/78801.html','true',[],''],
	['PAGE','40673',jdecode('Impressum'),jdecode(''),'/40673.html','true',[],''],
	['PAGE','47113',jdecode('%22Tiger%60s%22+Partner'),jdecode(''),'/47113.html','true',[],''],
	['PAGE','47212',jdecode('Umwelt+und+Energiesparen'),jdecode(''),'/47212.html','true',[],''],
	['PAGE','50301',jdecode('Photovoltaik'),jdecode(''),'/50301.html','true',[],''],
	['PAGE','47501',jdecode('Ihr+Hei%C3%9Fer+Draht+'),jdecode(''),'/47501.html','true',[],''],
	['PAGE','50801',jdecode('Aktuelle+Angebote'),jdecode(''),'/50801.html','true',[],''],
	['PAGE','62701',jdecode('anbieten'),jdecode(''),'/62701.html','true',[],''],
	['PAGE','62622',jdecode('Suchen'),jdecode(''),'/62622.html','true',[],''],
	['PAGE','65401',jdecode('Referenzen'),jdecode(''),'/65401.html','true',[],''],
	['PAGE','66901',jdecode('Pressemitteilungen'),jdecode(''),'/66901.html','true',[],''],
	['PAGE','74101',jdecode('D%C3%BCt+und+Dat%2C+f%C3%BCr+jeden+wat%21'),jdecode(''),'/74101.html','true',[],''],
	['PAGE','80801',jdecode('%22Der+Baustofftiger%22+sucht+selber'),jdecode(''),'/80801.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='TOI_Bauen_1';
theSitetree.paletteFamily='7E6344';
theSitetree.keyvisualId='10649';
theSitetree.keyvisualName='kv_10649.jpg';
theSitetree.fontsetId='31771';
theSitetree.graphicsetId='13544';
theSitetree.contentColor='3C3C3C';
theSitetree.contentBGColor='F4F3F1';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Bauen_1',
				paletteFamily: 	'7E6344',
				keyvisualId: 	'10649',
				keyvisualName: 	'kv_10649.jpg',
				fontsetId: 		'31771',
				graphicsetId: 	'13544',
				contentColor: 	'3C3C3C',
				contentBGColor: 'F4F3F1',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, 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: '20110226-191847'
};
webappMappings['1501']=webappMappings['1501-57367812']={
webappId:    '1501',
documentId:  '39994',
internalId:  '57367812',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40664',
internalId:  '',
customField: '20101217-221121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40673',
internalId:  '',
customField: '20110219-214002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47113',
internalId:  '',
customField: '20101102-104537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62622',
internalId:  '',
customField: '20100517-110132'
};
webappMappings['1008']=webappMappings['1008-70353324']={
webappId:    '1008',
documentId:  '62622',
internalId:  '70353324',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62701',
internalId:  '',
customField: '20100517-105629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47212',
internalId:  '',
customField: '20101022-211109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47501',
internalId:  '',
customField: '20110226-191924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50301',
internalId:  '',
customField: '20110122-182320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50801',
internalId:  '',
customField: '20110213-194811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56001',
internalId:  '',
customField: '20100309-205744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64701',
internalId:  '',
customField: '20110211-151523'
};
webappMappings['1008']=webappMappings['1008-70354462']={
webappId:    '1008',
documentId:  '62701',
internalId:  '70354462',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65401',
internalId:  '',
customField: '20100625-201111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74101',
internalId:  '',
customField: '20110220-151305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66901',
internalId:  '',
customField: '20100822-092607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78801',
internalId:  '',
customField: '20110117-201714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80801',
internalId:  '',
customField: '20110117-154153'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IR71ZJ';
var companyName   = 'www.der-baustofftiger.de';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            

