/* [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','false',[],''],
	['PAGE','41888',jdecode('Variante+1'),jdecode(''),'/41888.html','false',[],''],
	['PAGE','41897',jdecode('%22Termins-Vereinbarung%22'),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','true',[],''],
	['PAGE','43463',jdecode('Neue+PLZ-Gebiete'),jdecode(''),'/43463.html','false',[],''],
	['PAGE','44571',jdecode('Startseite'),jdecode(''),'/44571.html','true',[],''],
	['PAGE','54601',jdecode('Schw%C3%A4chen+%22alter%22+Onlineberatung'),jdecode(''),'/54601.html','true',[],''],
	['PAGE','44648',jdecode('Neuer+Denkansatz'),jdecode(''),'/44648.html','true',[],''],
	['PAGE','44657',jdecode('%22Open+Source%22+Revolution'),jdecode(''),'/44657.html','true',[],''],
	['PAGE','44666',jdecode('Zusammenarbeit+statt+%22Aussperrung%22'),jdecode(''),'/44666.html','true',[],''],
	['PAGE','55301',jdecode('Kostenlos+statt+Zahlungspflichtig'),jdecode(''),'/55301.html','true',[],''],
	['PAGE','55322',jdecode('Ganzes+Mandat+statt+Einzelantwort'),jdecode(''),'/55322.html','true',[],''],
	['PAGE','55343',jdecode('Internet-Rechtsakte'),jdecode(''),'/55343.html','true',[],''],
	['PAGE','56501',jdecode('Das+%22Qualit%C3%A4ts-Duell%22'),jdecode(''),'/56501.html','true',[],''],
	['PAGE','56701',jdecode('Zur+Beratungs-Plattform'),jdecode(''),'/56701.html','true',[],''],
	['PAGE','44724',jdecode('Newsletter'),jdecode(''),'/44724.html','true',[],''],
	['PAGE','44733',jdecode('Kanzlei'),jdecode(''),'/44733.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='TOI_Office_01';
theSitetree.paletteFamily='85A3C2';
theSitetree.keyvisualId='12233';
theSitetree.keyvisualName='kv_12233.jpg';
theSitetree.fontsetId='33368';
theSitetree.graphicsetId='14234';
theSitetree.contentColor='E5E5E5';
theSitetree.contentBGColor='293C4F';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Office_01',
				paletteFamily: 	'85A3C2',
				keyvisualId: 	'12233',
				keyvisualName: 	'kv_12233.jpg',
				fontsetId: 		'33368',
				graphicsetId: 	'14234',
				contentColor: 	'E5E5E5',
				contentBGColor: '293C4F',
				a_color: 		'000000',
				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:     '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: '20100304-213210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41888',
internalId:  '',
customField: '20100720-000855'
};
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;'
};
webappMappings['1008']=webappMappings['1008-74620919']={
webappId:    '1008',
documentId:  '44724',
internalId:  '74620919',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55301',
internalId:  '',
customField: '20110928-164329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55322',
internalId:  '',
customField: '20110928-164242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55343',
internalId:  '',
customField: '20110930-185500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56701',
internalId:  '',
customField: '20111024-011343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44571',
internalId:  '',
customField: '20111024-011030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56501',
internalId:  '',
customField: '20110928-171955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54601',
internalId:  '',
customField: '20110928-175346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44657',
internalId:  '',
customField: '20110930-185724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44666',
internalId:  '',
customField: '20110928-163424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44648',
internalId:  '',
customField: '20110930-185154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44724',
internalId:  '',
customField: '20110928-165813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44733',
internalId:  '',
customField: '20120105-220801'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IR9TG4';
var companyName   = 'Meine-Rechtsakte-im-Netz';
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 */					                                                            

