/* [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','40225',jdecode('Home'),jdecode(''),'/40225.html','true',[],''],
	['PAGE','40245',jdecode('Bad+Malente+%22ausverkauft%22'),jdecode(''),'/40245.html','true',[],''],
	['PAGE','42910',jdecode('Hoisdorf+%22ausverkauft%22'),jdecode(''),'/42910.html','true',[],''],
	['PAGE','43006',jdecode('NEU%3A+Siek+%28Vorabinformation%29'),jdecode(''),'/43006.html','true',[],''],
	['PAGE','42234',jdecode('Alte+Wache+%22ausverkauft%22'),jdecode(''),'/42234.html','true',[],''],
	['PAGE','43047',jdecode('Glinde+Gewerbegebiet'),jdecode(''),'/43047.html','true',[],''],
	['PAGE','41939',jdecode('Glinde-Olande+I+%22ausverkauft%22'),jdecode(''),'/41939.html','true',[],''],
	['PAGE','42584',jdecode('Glinde-Olande+II+%22ausverkauft%22'),jdecode(''),'/42584.html','true',[],''],
	['PAGE','40254',jdecode('Reinbek+%22ausverkauft%22'),jdecode(''),'/40254.html','true',[],''],
	['PAGE','40263',jdecode('Havighorst+%22ausverkauft%22'),jdecode(''),'/40263.html','true',[],''],
	['PAGE','40236',jdecode('Grande+%22ausverkauft%22'),jdecode(''),'/40236.html','true',[],''],
	['PAGE','40281',jdecode('Siek+%22ausverkauft%22'),jdecode(''),'/40281.html','true',[],''],
	['PAGE','40290',jdecode('Impressum'),jdecode(''),'/40290.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Basic';
theSitetree.paletteFamily='2E681F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10829';
theSitetree.graphicsetId='11286';
theSitetree.contentColor='2E681F';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Basic',
				paletteFamily: 	'2E681F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10829',
				graphicsetId: 	'11286',
				contentColor: 	'2E681F',
				contentBGColor: 'FFFFFF',
				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',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40225',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40225',
internalId:  '',
customField: '20080613-111917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40236',
internalId:  '',
customField: '20101214-105955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40245',
internalId:  '',
customField: '20110928-105124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40254',
internalId:  '',
customField: '20100729-104806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40263',
internalId:  '',
customField: '20101214-105938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41939',
internalId:  '',
customField: '20101214-105852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40281',
internalId:  '',
customField: '20110310-134828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40290',
internalId:  '',
customField: '20071022-153850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42234',
internalId:  '',
customField: '20110310-134544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42910',
internalId:  '',
customField: '20110928-105206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42584',
internalId:  '',
customField: '20101214-105905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43006',
internalId:  '',
customField: '20110310-140617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43047',
internalId:  '',
customField: '20110928-105038'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7XNAO';
var companyName   = 'www.bauland-nord.de';
var htmlTitle	  = 'Bauland+direkt+vom+Eigentuemer';
var metaKeywords  = 'bauland-nord%2C+Bauland+im+Norden%2C+Baugrundstuecke+im+Hamburger+Umland%2C+erschlossenen+Baugrundstuecke%2C+++';
var metaContents  = 'www.Bauland-Nord.de%2C+erschlossene+Baugrundstuecke+direkt+vom+Eigent%C3%BCmer+im+Hamburger+Umland+und+in+Hamburg';
					                                                                    
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 */					                                                            

