/* [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','41949',jdecode('Dorf+ohne+Welt%3F+'),jdecode(''),'/41949.html','true',[],''],
	['PAGE','41967',jdecode('Breitband+auf%26%23x27%3Bs+Land%21'),jdecode(''),'/41967/home.html','true',[ 
		['PAGE','41976',jdecode('Leistungsangebot'),jdecode(''),'/41967/41976.html','true',[],''],
		['PAGE','41985',jdecode('Technologie'),jdecode(''),'/41967/41985.html','true',[],''],
		['PAGE','44080',jdecode('Netzplanung'),jdecode(''),'/41967/44080.html','true',[],''],
		['PAGE','41940',jdecode('Bauweisen'),jdecode(''),'/41967/41940.html','true',[],''],
		['PAGE','45021',jdecode('Finanzierung'),jdecode(''),'/41967/45021.html','true',[],'']
	],''],
	['PAGE','42012',jdecode('Vorgehensweise'),jdecode(''),'/42012.html','true',[],''],
	['PAGE','41958',jdecode('Impressum+%2B+Kontakt'),jdecode(''),'/41958.html','true',[],''],
	['PAGE','45008',jdecode('Anfahrt'),jdecode(''),'/45008.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='3C5284';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10510';
theSitetree.graphicsetId='10913';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3C5284';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stars',
				paletteFamily: 	'3C5284',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10510',
				graphicsetId: 	'10913',
				contentColor: 	'FFFFFF',
				contentBGColor: '3C5284',
				a_color: 		'3C5284',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '41949',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41940',
internalId:  '',
customField: '20080715-161802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41949',
internalId:  '',
customField: '20080715-181830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41958',
internalId:  '',
customField: '20091202-152119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42012',
internalId:  '',
customField: '20080715-162611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44080',
internalId:  '',
customField: '20080710-184628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45008',
internalId:  '',
customField: '20080715-165317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45021',
internalId:  '',
customField: '20080715-165935'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '45008',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41967',
internalId:  '',
customField: '20080715-161303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41976',
internalId:  '',
customField: '20080710-180135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41985',
internalId:  '',
customField: '20080715-161238'
};
webappMappings['1008']=webappMappings['1008-30058767']={
webappId:    '1008',
documentId:  '41958',
internalId:  '30058767',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7BFT4';
var companyName   = 'UnserNetz+-+der+Dorfcarrier';
var htmlTitle	  = 'UnserNetz+-+der+Dorfcarrier';
var metaKeywords  = 'Unsernetz%2C+Untertaunus%2C+FTTH%2C+Wimax%2C+WLAN%2C+Breitband%2C+Land%2C+Dorf%2C+D%C3%B6rfer%2C+Kleinstadt%2C+Taunusstein%2C+Idstein%2C+H%C3%BCnstetten%2C+Aarbergen%2C+Bad+Schwalbach%2C+Aarbergen%2C+Hohenstein%2C+Niedernhausen%2C+Heidenrod%2C+Schlangenbad%2C+Bad+Camberg%2C+Waldems%2C+GPON%2C+Ethernet%2C+Kai+Seim%2C+Seim++und+Partner%2C+Seim+Consulting+GmbH%2C+Heiner+Kreft%2C+Helmut+Giger%2C+FTTX%2C+Sasbachwalden%2C+Schwarzwald%2C+Finanzierung%2C+Bauweise%2C+Bauweisen%2C+Finanzierungen';
var metaContents  = 'Unsernetz+-+wir+bringen+Breitband+aufs+Land%21';
					                                                                    
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 */					                                                            

