/* [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','4579',jdecode('Home'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','35301',jdecode('Immobilienangebote'),jdecode(''),'/35301.html','true',[],''],
	['PAGE','158329',jdecode('Stilvoll+Wohnen'),jdecode(''),'/158329/home.html','true',[ 
		['PAGE','159029',jdecode('1-Zimmer+Wohnung'),jdecode(''),'/158329/159029.html','true',[],''],
		['PAGE','159050',jdecode('2-Zimmer+Wohnung'),jdecode(''),'/158329/159050.html','true',[],''],
		['PAGE','159071',jdecode('3-Zimmer+Wohnung'),jdecode(''),'/158329/159071.html','true',[],''],
		['PAGE','159092',jdecode('4-Zimmer+Wohnung'),jdecode(''),'/158329/159092.html','true',[],''],
		['PAGE','159113',jdecode('Mehrzimmer+Wohnung'),jdecode(''),'/158329/159113.html','false',[],''],
		['PAGE','163829',jdecode('Gewerbe'),jdecode(''),'/158329/163829.html','true',[],'']
	],''],
	['PAGE','102229',jdecode('Hausverwaltung'),jdecode(''),'/102229.html','true',[],''],
	['PAGE','21801',jdecode('Wir+suchen'),jdecode(''),'/21801.html','true',[],''],
	['PAGE','18336',jdecode('Service'),jdecode(''),'/18336.html','true',[],''],
	['PAGE','153729',jdecode('Downloads'),jdecode(''),'/153729.html','true',[],''],
	['PAGE','21501',jdecode('Kontakt'),jdecode(''),'/21501/home.html','true',[ 
		['PAGE','21534',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/21501/21534.html','false',[],'']
	],''],
	['PAGE','131129',jdecode('Newsletter'),jdecode(''),'/131129.html','true',[],''],
	['PAGE','106629',jdecode('Anfahrt'),jdecode(''),'/106629.html','true',[],''],
	['PAGE','147929',jdecode('Karriere'),jdecode(''),'/147929.html','true',[],''],
	['PAGE','56629',jdecode('Sponsoring+%2F+Partner'),jdecode(''),'/56629.html','true',[],''],
	['PAGE','21001',jdecode('Impressum'),jdecode(''),'/21001.html','true',[],''],
	['PAGE','35101',jdecode('Kaufobjekte+International'),jdecode(''),'/35101.html','false',[],''],
	['PAGE','35206',jdecode('Ungarn'),jdecode(''),'/35206.html','false',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Jakarta';
theSitetree.paletteFamily='9E9C9C';
theSitetree.keyvisualId='7854';
theSitetree.keyvisualName='kv_7854.jpg';
theSitetree.fontsetId='16854';
theSitetree.graphicsetId='12295';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D2D2D2';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'true',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Jakarta',
				paletteFamily: 	'9E9C9C',
				keyvisualId: 	'7854',
				keyvisualName: 	'kv_7854.jpg',
				fontsetId: 		'16854',
				graphicsetId: 	'12295',
				contentColor: 	'000000',
				contentBGColor: 'D2D2D2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'9E9C9C',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20120130-094114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20120130-094136'
};
webappMappings['1001']=webappMappings['1001-atoix0in2jkk102217022c1']={
webappId:    '1001',
documentId:  '21501',
internalId:  'atoix0in2jkk102217022c1',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0in2jkk102217022c1']={
webappId:    '1001',
documentId:  '21534',
internalId:  'atoix0in2jkk102217022c1',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56629',
internalId:  '',
customField: '20120130-095147'
};
webappMappings['1501']=webappMappings['1501-2886011']={
webappId:    '1501',
documentId:  '4579',
internalId:  '2886011',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159050',
internalId:  '',
customField: '20120130-094635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159113',
internalId:  '',
customField: '20111107-092459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159092',
internalId:  '',
customField: '20120130-094905'
};
webappMappings['7091']=webappMappings['7091-59345']={
webappId:    '7091',
documentId:  '35301',
internalId:  '59345',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35101',
internalId:  '',
customField: '20050706-225542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159029',
internalId:  '',
customField: '20120130-094259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35206',
internalId:  '',
customField: '20050707-135041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159071',
internalId:  '',
customField: '20120130-094837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163829',
internalId:  '',
customField: '20120130-094934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147929',
internalId:  '',
customField: '20120130-095133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158329',
internalId:  '',
customField: '20120130-094209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20120130-095009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102229',
internalId:  '',
customField: '20120130-094952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18336',
internalId:  '',
customField: '20120130-095024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20120130-095051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21534',
internalId:  '',
customField: '20110513-103100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20120130-095210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106629',
internalId:  '',
customField: '20120130-095121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131129',
internalId:  '',
customField: '20120130-095104'
};
webappMappings['1008']=webappMappings['1008-44292668']={
webappId:    '1008',
documentId:  '131129',
internalId:  '44292668',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153729',
internalId:  '',
customField: '20120130-095037'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN2JKK';
var companyName   = 'Ihr+Immobilien-Partner+in+Plauen+und+Sachsen%21';
var htmlTitle	  = '2M+Immobilien+Plauen';
var metaKeywords  = 'Immobilien%2CImmobilie%2CHaus%2CWohnung%2CGrundst%C3%BCck%2CVerkauf%2CVermietung%2Cverkaufen%2Cvermieten%2CHaussuche%2CWohnungssuche%2C321DEIN%2C+2M%2C+Immobilien+Plauen%2CFinanzierung%2Ckaufen%2C+mieten%2CKaufobjekt%2CMietobjekt%2C321DEIN+Immobilien+Plauen%2Cwohnen%2C2M-Immobilien';
var metaContents  = 'Dies+ist+die+Homepage+von+2M+Immobilien%2C+Ihr+Serviceunternehmen+rund+um+kaufen%2C+verkaufen%2C+mieten+und+vermieten+von+Wohn-+und+Gerwebeimmobilien+sowie+Grundst%C3%BCcken.+Nat%C3%BCrlich+kommt+auch+Finanzierung%2C+Hausmeister-+und+Hausverwalterdienste+nicht+zu+kurz.';
					                                                                    
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 */					                                                            

