/* [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','40376',jdecode('Kompetenzen'),jdecode(''),'/40376/home.html','true',[ 
		['PAGE','42412',jdecode('Baurecht'),jdecode(''),'/40376/42412.html','true',[],''],
		['PAGE','42421',jdecode('Strafrecht'),jdecode(''),'/40376/42421.html','true',[],''],
		['PAGE','42430',jdecode('Bu%C3%9Fgeldsachen'),jdecode(''),'/40376/42430.html','true',[],''],
		['PAGE','42439',jdecode('Verkehrsrecht'),jdecode(''),'/40376/42439.html','true',[],''],
		['PAGE','42448',jdecode('Oldtimerrecht'),jdecode(''),'/40376/42448.html','true',[],'']
	],''],
	['PAGE','40385',jdecode('Kontakt'),jdecode(''),'/40385.html','true',[],''],
	['PAGE','40403',jdecode('Impressum'),jdecode(''),'/40403.html','true',[],''],
	['PAGE','42600',jdecode('Anfahrt'),jdecode(''),'/42600.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='EBEAEA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='88';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F5F5F5';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'EBEAEA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'88',
				contentColor: 	'000000',
				contentBGColor: 'F5F5F5',
				a_color: 		'EBEAEA',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
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: '20090223-160729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40376',
internalId:  '',
customField: '20070831-122626'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '42600',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42412',
internalId:  '',
customField: '20090223-161338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42421',
internalId:  '',
customField: '20070831-105416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40403',
internalId:  '',
customField: '20100909-100511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42430',
internalId:  '',
customField: '20070831-155718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42439',
internalId:  '',
customField: '20070921-111220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42448',
internalId:  '',
customField: '20100422-171259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40385',
internalId:  '',
customField: '20070907-105138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42600',
internalId:  '',
customField: '20070831-160736'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0I7VG9V';
var companyName   = 'ANWALTSKANZLEI++GAULKE++%7C+Fachanwalt+f%C3%BCr+Bau-+und+Architektenrecht+++++++++++++++++++++++++++++++++++++++++++++++++';
var htmlTitle	  = 'Anwaltskanzlei+Gaulke+-+Lemgo';
var metaKeywords  = 'Rechtsanwalt%2C+Gaulke%2C+Lemgo%2C+Thomas+Gaulke%2C+Strafrecht%2C+Baurecht%2C+Werkvertragsrecht%2C+Lippe%2C+OWL%2C+RA%2C+Kanzlei%2C+Anwaltskanzlei%2C+Forderungseinzug%2C+Bu%C3%9Fgeld%2C+F%C3%BChrerschein%2C+Verkehrsunfall%2C+Unfall%2C+Hilfe%2C+Golf%2C+';
var metaContents  = 'Willkommen+auf+der+Homepage+der+Anwaltskanzlei+Gaulke+in+Lemgo+-+Fon+0+52+61+%2F+18+88+50';
					                                                                    
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 */					                                                            

