/* [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','41888',jdecode('Variante+1'),jdecode(''),'/41888.html','false',[],''],
	['PAGE','41897',jdecode('Variante+2'),jdecode(''),'/41897.html','false',[],''],
	['PAGE','43356',jdecode('Tiefstpreis-Gesetz'),jdecode(''),'/43356.html','false',[],''],
	['PAGE','40823',jdecode('Wie+rechnet+sich+das%3F'),jdecode(''),'/40823.html','false',[],''],
	['PAGE','43945',jdecode('%22Neuer%C3%B6ffnungen%22'),jdecode(''),'/43945.html','false',[],''],
	['PAGE','43792',jdecode('Wir+suchen+Anw%C3%A4lte'),jdecode(''),'/43792.html','false',[],''],
	['PAGE','43463',jdecode('Neue+PLZ-Gebiete'),jdecode(''),'/43463.html','false',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='TOI_Health_1';
theSitetree.paletteFamily='FEFBF2';
theSitetree.keyvisualId='10592';
theSitetree.keyvisualName='kv_10592.jpg';
theSitetree.fontsetId='31746';
theSitetree.graphicsetId='13519';
theSitetree.contentColor='534F48';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Health_1',
				paletteFamily: 	'FEFBF2',
				keyvisualId: 	'10592',
				keyvisualName: 	'kv_10592.jpg',
				fontsetId: 		'31746',
				graphicsetId: 	'13519',
				contentColor: 	'534F48',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20091120-204121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41897',
internalId:  '',
customField: '20090909-164755'
};
webappMappings['1008']=webappMappings['1008-47497490']={
webappId:    '1008',
documentId:  '41897',
internalId:  '47497490',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43945',
internalId:  '',
customField: '20091020-193205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41888',
internalId:  '',
customField: '20091120-204421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43356',
internalId:  '',
customField: '20090726-224335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40823',
internalId:  '',
customField: '20090622-142000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43463',
internalId:  '',
customField: '20090726-230130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43792',
internalId:  '',
customField: '20091002-005909'
};
webappMappings['1008']=webappMappings['1008-56076328']={
webappId:    '1008',
documentId:  '41888',
internalId:  '56076328',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'cfawrk01.aul.t-online.de';
var accountId     = 'ATOIX0IR9TG4';
var companyName   = 'Anwalt18Euro.de+++';
var htmlTitle	  = 'Anwalt18Euro.de';
var metaKeywords  = 'Anwalts-Discounter+Discount-Anwalt+Discount-Rechtsberatung';
var metaContents  = 'Wir+bieten+Anwaltsbesuche+zu+18+Euro+netto';
					                                                                    
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 */					                                                            
