/* [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('Home'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40012',jdecode('Unsere+H%C3%A4user'),jdecode(''),'/40012.html','true',[],''],
	['PAGE','40071',jdecode('Bungalows'),jdecode(''),'/40071.html','true',[],''],
	['PAGE','41208',jdecode('Winkelbungalow'),jdecode(''),'/41208.html','true',[],''],
	['PAGE','240122',jdecode('Bungalows+Vario'),jdecode(''),'/240122.html','true',[],''],
	['PAGE','40062',jdecode('Einfamilienh%C3%A4user'),jdecode(''),'/40062.html','true',[],''],
	['PAGE','40080',jdecode('Zweifamilienh%C3%A4user'),jdecode(''),'/40080.html','true',[],''],
	['PAGE','40089',jdecode('Doppelh%C3%A4user'),jdecode(''),'/40089.html','true',[],''],
	['PAGE','164501',jdecode('Stadtvillen'),jdecode(''),'/164501.html','true',[],''],
	['PAGE','236101',jdecode('Ferienhaus+unter+Reet'),jdecode(''),'/236101.html','true',[],''],
	['PAGE','41748',jdecode('Leistungsbeschreibung'),jdecode(''),'/41748.html','true',[],''],
	['PAGE','42687',jdecode('Gesamtpreisliste'),jdecode(''),'/42687.html','true',[],''],
	['PAGE','41217',jdecode('Grundst%C3%BCcksservice'),jdecode(''),'/41217.html','true',[],''],
	['PAGE','183401',jdecode('Verkaufsb%C3%BCros'),jdecode(''),'/183401.html','true',[],''],
	['PAGE','255601',jdecode('Handwerker'),jdecode(''),'/255601.html','true',[],''],
	['PAGE','47025',jdecode('Kontakt'),jdecode(''),'/47025.html','true',[],''],
	['PAGE','138601',jdecode('Anfahrt'),jdecode(''),'/138601.html','false',[],''],
	['PAGE','40021',jdecode('Impressum'),jdecode(''),'/40021.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='TOI_Freizeit_1';
theSitetree.paletteFamily='BEBDBD';
theSitetree.keyvisualId='10777';
theSitetree.keyvisualName='kv_10777.jpg';
theSitetree.fontsetId='31831';
theSitetree.graphicsetId='13624';
theSitetree.contentColor='DEDBDB';
theSitetree.contentBGColor='2A2A2A';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Freizeit_1',
				paletteFamily: 	'BEBDBD',
				keyvisualId: 	'10777',
				keyvisualName: 	'kv_10777.jpg',
				fontsetId: 		'31831',
				graphicsetId: 	'13624',
				contentColor: 	'DEDBDB',
				contentBGColor: '2A2A2A',
				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:     'true'
			  };
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: '20091119-181343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40021',
internalId:  '',
customField: '20110725-145435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40089',
internalId:  '',
customField: '20111027-102100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40012',
internalId:  '',
customField: '20111027-102857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40071',
internalId:  '',
customField: '20111027-100136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42687',
internalId:  '',
customField: '20111027-102639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41208',
internalId:  '',
customField: '20111027-100347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41217',
internalId:  '',
customField: '20100507-155156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40062',
internalId:  '',
customField: '20111027-101353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40080',
internalId:  '',
customField: '20111027-101901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41748',
internalId:  '',
customField: '20110909-102439'
};
webappMappings['7091']=webappMappings['7091-47230']={
webappId:    '7091',
documentId:  '41217',
internalId:  '47230',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236101',
internalId:  '',
customField: '20090813-205528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240122',
internalId:  '',
customField: '20111027-100745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '255601',
internalId:  '',
customField: '20110725-155851'
};
webappMappings['1501']=webappMappings['1501-44024074']={
webappId:    '1501',
documentId:  '39994',
internalId:  '44024074',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47025',
internalId:  '',
customField: '20071220-214530'
};
webappMappings['1008']=webappMappings['1008-44024661']={
webappId:    '1008',
documentId:  '47025',
internalId:  '44024661',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164501',
internalId:  '',
customField: '20111118-184813'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '138601',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138601',
internalId:  '',
customField: '20080117-162732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183401',
internalId:  '',
customField: '20111027-103434'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7BY48';
var companyName   = 'IBK+MASSIVHAUS+GmbH';
var htmlTitle	  = 'Generalbauunternehmen+f%C3%BCr+schl%C3%BCsselfertiges+Bauen';
var metaKeywords  = 'IBK+Baumanagement+GmbH%2C+MASSIVHAUS%2C+R%C3%BCgen%2CRostock%2CStralsund%2C+MV%2C+Mecklenburg-Vorpommern%2C+Neubau%2C+Haus%2C+Eigenheim%2C+exklusiv%2C+Hausbau%2C+massiv%2C+Bauunternehmer%2CGeneralunternehmen%2C+Bauunternehmen%2C+schl%C3%BCsselfertig%2C+Eigenleistung%2C+Finanzierung%2C+Immobilien%2C+Service%2C+Miete%2C+Kauf%2C+Wohnen%2C+Buero%2C+Gewerbe%2C+Verkauf%2C+vermieten%2C+verpachten%2C+Immobilie%2C+Makler%2C+mieten%2C+Wohnung%2C+Wohnungen%2C+Bueroflaeche%2C+Wohnungsboerse%2C+Grundstueck%2C+Eigentum%2C+Eigentumswohnung%2C+Vermietung%2C+verkaufen%2C+Gewerbegrundst%C3%BCck%2C+Gewerbeimmobilie%2C+Zwangsversteigerung%2C+Wohneigentum%2C+Finanzierung%2C+Gutachten%2C+Gutachter%2C+Mieterschutz%2C+Mieterschutzbund%2C+Mietspiegel%2C+Mitwohnzentrale%2C+RdM%2C+real+estate+agent%2C+real+estate+property%2C+real+estate+world%2C+Ring+deutscher+Makler%2C+Sachverstaendiger%2C+VdM%2CVerband+deutscher+Makler%2C+Immobilienauskunft%2C+Immobilienboerse%2C+Immobilienmakler%2C+Doppelhaus%2C+Haus%2C+Haeuser%2C+Laden%2C+Ladenflaeche%2C+Ladengeschaeft%2C+Einfamilienhaus%2C+Zweifamilienhaus';
var metaContents  = 'massiv+und+schl%C3%BCsselfertig+bauen%2C+IBK+MASSIVHAUS+GmbH+';
					                                                                    
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 */					                                                            

