/* [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','13725',jdecode('Home'),jdecode(''),'/13725.html','true',[],''],
	['PAGE','18606',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/18606/home.html','true',[ 
		['PAGE','18611',jdecode('Geschichte'),jdecode(''),'/18606/18611.html','true',[],''],
		['PAGE','18601',jdecode('Verbandszweck'),jdecode(''),'/18606/18601.html','true',[],''],
		['PAGE','18616',jdecode('Mitglied+werden'),jdecode(''),'/18606/18616.html','true',[],'']
	],''],
	['PAGE','18626',jdecode('Interessante+Links'),jdecode(''),'/18626/home.html','true',[ 
		['PAGE','32601',jdecode('Partner'),jdecode(''),'/18626/32601.html','true',[],''],
		['PAGE','26301',jdecode('Politik'),jdecode(''),'/18626/26301.html','true',[],'']
	],''],
	['PAGE','38301',jdecode('Archiv'),jdecode(''),'/38301.html','true',[],''],
	['PAGE','18631',jdecode('Kontakt'),jdecode(''),'/18631.html','true',[],''],
	['PAGE','39801',jdecode('Anfahrt'),jdecode(''),'/39801.html','true',[],''],
	['PAGE','18636',jdecode('Impressum'),jdecode(''),'/18636.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Stitch';
theSitetree.paletteFamily='E9F1EE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10769';
theSitetree.graphicsetId='10797';
theSitetree.contentColor='4E7C6A';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stitch',
				paletteFamily: 	'E9F1EE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10769',
				graphicsetId: 	'10797',
				contentColor: 	'4E7C6A',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'969595',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13725',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-28568503']={
webappId:    '1501',
documentId:  '13725',
internalId:  '28568503',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13725',
internalId:  '',
customField: '20111130-205033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18626',
internalId:  '',
customField: '20110305-162952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20050507-184855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18606',
internalId:  '',
customField: '20090317-173252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18611',
internalId:  '',
customField: '20090317-173333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18616',
internalId:  '',
customField: '20091211-195005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20080824-171642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18631',
internalId:  '',
customField: '20110305-165357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18636',
internalId:  '',
customField: '20110305-163926'
};
webappMappings['1011']=webappMappings['1011-ddp-politik']={
webappId:    '1011',
documentId:  '26301',
internalId:  'ddp-politik',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26301',
internalId:  '',
customField: '20080614-174612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20110219-175314'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '39801',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39801',
internalId:  '',
customField: '20110305-184550'
};
webappMappings['1008']=webappMappings['1008-45785798']={
webappId:    '1008',
documentId:  '18631',
internalId:  '45785798',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INE6X3';
var companyName   = 'BDS%2FDGV%2C+LV+Sachsen-Anhalt+e.+V.';
var htmlTitle	  = 'Bund+der+Selbst%C3%A4ndigen';
var metaKeywords  = 'Bund+der+Selbst%C3%A4ndigen%2C+Deutscher+Gewerbeverband%2C+Sachsen-Anhalt%2C+Verbaende%2C+Verband%2C+Verbaendeforum%2C+association%2C+associations%2C+Deutschland%2C+Bundesverband%2C+Landesverband%2C+Kreisverband%2C+Hauptverband%2C+Zentralverband%2C+Berufsverband%2C+Berufsverbaende%2C+Wirtschaftsverband%2C+Wirtschaftsf%C3%B6rderung%2C+Industrieverband%2C+Handwerksverband++';
var metaContents  = 'Willkommen+beim+Bund+der+Selbst%C3%A4ndigen+%2F+Deutscher+Gewerbeverband%2C+Landesverband+Sachsen-Anhalt+e.+V.+Wir+sind+eine+%C3%BCberparteiliche+Interessenvertretung+der+Selbst%C3%A4ndigen.';
					                                                                    
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 */					                                                            

