/* [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('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41350',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41350/home.html','true',[ 
		['PAGE','42191',jdecode('Das+Team'),jdecode(''),'/41350/42191.html','true',[],''],
		['PAGE','41778',jdecode('RA+Ralf+Mydlak'),jdecode(''),'/41350/41778.html','true',[],''],
		['PAGE','41787',jdecode('RAin+Heike+Ruge-Mydlak'),jdecode(''),'/41350/41787.html','true',[],'']
	],''],
	['PAGE','41341',jdecode('Kontakt'),jdecode(''),'/41341.html','true',[],''],
	['PAGE','41412',jdecode('Anfahrt'),jdecode(''),'/41412.html','true',[],''],
	['PAGE','42836',jdecode('Rechtsgebiete'),jdecode(''),'/42836/home.html','true',[ 
		['PAGE','42366',jdecode('Arbeitsrecht'),jdecode(''),'/42836/42366.html','true',[],''],
		['PAGE','42325',jdecode('Erbrecht'),jdecode(''),'/42836/42325.html','true',[],''],
		['PAGE','42000',jdecode('Maklerrecht'),jdecode(''),'/42836/42000.html','true',[],''],
		['PAGE','42654',jdecode('Mietrecht'),jdecode(''),'/42836/42654.html','true',[],''],
		['PAGE','42079',jdecode('Wohnungseigentumsrecht'),jdecode(''),'/42836/42079.html','true',[],''],
		['PAGE','42938',jdecode('Extra%3A+K%C3%BCndigungsschutz+'),jdecode(''),'/42836/42938.html','true',[],'']
	],''],
	['PAGE','42233',jdecode('Aktuelles'),jdecode(''),'/42233.html','true',[],''],
	['PAGE','42090',jdecode('Anwaltskosten'),jdecode(''),'/42090.html','true',[],''],
	['PAGE','41377',jdecode('Impressum'),jdecode(''),'/41377.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='TOI_Smoothsurface';
theSitetree.paletteFamily='97A8CD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33402';
theSitetree.graphicsetId='14263';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Smoothsurface',
				paletteFamily: 	'97A8CD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33402',
				graphicsetId: 	'14263',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				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:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20110607-210728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42079',
internalId:  '',
customField: '20091222-163217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42191',
internalId:  '',
customField: '20090131-131323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41341',
internalId:  '',
customField: '20110416-132953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41350',
internalId:  '',
customField: '20090131-131251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42000',
internalId:  '',
customField: '20110406-123156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42654',
internalId:  '',
customField: '20110816-220845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41377',
internalId:  '',
customField: '20100517-124611'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41412',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41412',
internalId:  '',
customField: '20090122-224916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42233',
internalId:  '',
customField: '20100501-224037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42090',
internalId:  '',
customField: '20090129-103050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41778',
internalId:  '',
customField: '20110506-182617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41787',
internalId:  '',
customField: '20100417-150119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42938',
internalId:  '',
customField: '20110528-143452'
};
webappMappings['7090']=webappMappings['7090-552004']={
webappId:    '7090',
documentId:  '42233',
internalId:  '552004',
customField: 'type:atom-1.0;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42325',
internalId:  '',
customField: '20100218-160034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42836',
internalId:  '',
customField: '20110506-182929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42366',
internalId:  '',
customField: '20110527-140112'
};
webappMappings['1008']=webappMappings['1008-75019938']={
webappId:    '1008',
documentId:  '41341',
internalId:  '75019938',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IRQ90W';
var companyName   = 'Ruge-Mydlak+Rechtsanw%C3%A4lte';
var htmlTitle	  = 'Ruge-Mydlak+Rechtsanw%C3%A4lte+Berlin+Charlottenburg-Wilmersdorf%2C+Mietrecht%2CArbeitsrecht%2CVertragsrecht%2C+Maklerrecht+und+Verkehrsrecht';
var metaKeywords  = 'Rechtsanwalt%2CRechtsanw%C3%A4lte%2CAnwalt%2CMakler%2CMaklerprovision%2CMiete%2CNebenkosten%2CBetriebskosten%2CMieterh%C3%B6hung%2CGrundst%C3%BCcksrecht';
var metaContents  = 'Individueller+Rechtsrat++in+allen+Fragen+des+Arbeitsrechts%2C+Mietrechts%2C+Maklerrechts%2CWohnungseigentumsrechts%2CVertragsrechts%2CErbrechts%2C+Familienrechts%2CKaufrechts+und+des+Verkehrsrechts.';
					                                                                    
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 */					                                                            

