/* [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','14101',jdecode('Firmenvideo'),jdecode(''),'/14101.html','true',[],''],
	['PAGE','10178',jdecode('Peter+Stary+Immobilien'),jdecode(''),'/10178.html','true',[],''],
	['PAGE','10471',jdecode('Immobiliendatenbank+'),jdecode(''),'/10471.html','true',[],''],
	['PAGE','10480',jdecode('Verwaltung+und+Hausmeister'),jdecode(''),'/10480.html','true',[],''],
	['PAGE','10489',jdecode('Formulare'),jdecode(''),'/10489.html','true',[],''],
	['PAGE','10498',jdecode('Kontakt'),jdecode(''),'/10498.html','true',[],''],
	['PAGE','10507',jdecode('Impressum'),jdecode(''),'/10507.html','true',[],''],
	['PAGE','10614',jdecode('Anfahrt'),jdecode(''),'/10614.html','true',[],''],
	['PAGE','10668',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/10668.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='TOI_Segel_1';
theSitetree.paletteFamily='7586C1';
theSitetree.keyvisualId='10733';
theSitetree.keyvisualName='kv_10733.jpg';
theSitetree.fontsetId='31816';
theSitetree.graphicsetId='13589';
theSitetree.contentColor='2F458D';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Segel_1',
				paletteFamily: 	'7586C1',
				keyvisualId: 	'10733',
				keyvisualName: 	'kv_10733.jpg',
				fontsetId: 		'31816',
				graphicsetId: 	'13589',
				contentColor: 	'2F458D',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10178',
internalId:  '',
customField: '20110127-115752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10471',
internalId:  '',
customField: '20110127-115858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10480',
internalId:  '',
customField: '20111019-205655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10489',
internalId:  '',
customField: '20100427-100618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10498',
internalId:  '',
customField: '20110127-124304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10507',
internalId:  '',
customField: '20110127-123826'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '10614',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10614',
internalId:  '',
customField: '20100310-125846'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '10668',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10668',
internalId:  '',
customField: '20100215-155059'
};
webappMappings['7060']=webappMappings['7060-af55a98f2f0798b45549fc0b6f10eb75']={
webappId:    '7060',
documentId:  '14101',
internalId:  'af55a98f2f0798b45549fc0b6f10eb75',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20111019-200333'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INVW3Q';
var companyName   = 'Peter+Stary+Immobilien';
var htmlTitle	  = 'Leipziger-+Vermittlungs-+Service';
var metaKeywords  = 'Vermietung%2C+Verwaltung%2C+Verkauf%2C+Baubetreuung%2C+Bausanierung%2C+Bauplanung%2C+Architektur%2C+Grundrissplanung%2C+Grundrisszeichnung+%2CVerkauf+von+immobilen+%2C+Vermietung+von+Immobilien%2C+lvs%2C+lvs-immobilien%2C+Makler%2C++Immobilien%2C+Verwaltung+in+und+um+Leipzig%2C+Verwaltung+in+Leipzig%2C++Eigenheim%2C+Wohnung%2C+Haus%2C+Doppelhaus%2C+Reihenhaus%2C+ETW%2C+EFH%2C+DHH%2C+Makler+in+Leipzig%2C+Gohlis%2C+Wohneigentum%2C+Kapitalanleger%2C+Eigenuzung%2C+Mieten%2C+Kaufen%2C+Wohnungen+in+Leipzig%2C+WG+Wohnungen%2C+Immobilienverwaltung%2C+Immobilienverkauf%2C+Immobilienverkauf+in+Leipzig%2C+Immobilienverwaltung+in+Leipzig%2C+Hausverwaltung+in+Leipzig%2C+Grundst%C3%BCck+in+Leipzig%2C';
var metaContents  = 'Willkommen+bei+der+LVS%21+Ihrem+freundlichem+Immobilienservice.++';
					                                                                    
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 */					                                                            

