/* [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','40990',jdecode('%C3%BCber+mich...'),jdecode(''),'/40990.html','true',[],''],
	['PAGE','40784',jdecode('Bilder'),jdecode(''),'/40784.html','true',[],''],
	['PAGE','40889',jdecode('Bilder+'),jdecode(''),'/40889.html','true',[],''],
	['PAGE','40852',jdecode('Tiere+suchen+ein+zu+Hause'),jdecode(''),'/40852.html','true',[],''],
	['PAGE','41904',jdecode('FLUGPATEN+gesucht'),jdecode(''),'/41904.html','true',[],''],
	['PAGE','41321',jdecode('DRINGEND'),jdecode(''),'/41321.html','true',[],''],
	['PAGE','41549',jdecode('denk+mal+dr%C3%BCber+nach+%21%21%21'),jdecode(''),'/41549.html','true',[],''],
	['PAGE','41971',jdecode('MEINE+Tiere'),jdecode(''),'/41971.html','true',[],''],
	['PAGE','41772',jdecode('...mein+Paten-Kind'),jdecode(''),'/41772.html','true',[],''],
	['PAGE','40388',jdecode('G%C3%A4stebuch'),jdecode(''),'/40388/home.html','true',[ 
		['PAGE','40387',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40388/40387.html','true',[],'']
	],''],
	['PAGE','40406',jdecode('Links'),jdecode(''),'/40406.html','true',[],''],
	['PAGE','40949',jdecode('Links+aus+meiner+Stadt'),jdecode(''),'/40949.html','true',[],''],
	['PAGE','40931',jdecode('Kontakt'),jdecode(''),'/40931.html','true',[],''],
	['PAGE','41056',jdecode('Impressum'),jdecode(''),'/41056.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Saeule';
theSitetree.paletteFamily='C6C6D5';
theSitetree.keyvisualId='10853';
theSitetree.keyvisualName='kv_10853.jpg';
theSitetree.fontsetId='31860';
theSitetree.graphicsetId='13660';
theSitetree.contentColor='2F2F63';
theSitetree.contentBGColor='C6C6D5';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Saeule',
				paletteFamily: 	'C6C6D5',
				keyvisualId: 	'10853',
				keyvisualName: 	'kv_10853.jpg',
				fontsetId: 		'31860',
				graphicsetId: 	'13660',
				contentColor: 	'2F2F63',
				contentBGColor: 'C6C6D5',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-40388atoix0irsnpx']={
webappId:    '1002',
documentId:  '40388',
internalId:  '40388atoix0irsnpx',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-40388atoix0irsnpx']={
webappId:    '1002',
documentId:  '40387',
internalId:  '40388atoix0irsnpx',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40406',
internalId:  '',
customField: '20110408-171101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20100501-191217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40388',
internalId:  '',
customField: '20100815-155951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40387',
internalId:  '',
customField: '20100427-002234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41056',
internalId:  '',
customField: '20100628-202729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40949',
internalId:  '',
customField: '20110609-165632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40990',
internalId:  '',
customField: '20100626-172025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40889',
internalId:  '',
customField: '20100625-165557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40931',
internalId:  '',
customField: '20100728-110005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40784',
internalId:  '',
customField: '20100625-185243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40852',
internalId:  '',
customField: '20111217-201651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41549',
internalId:  '',
customField: '20110109-140325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41971',
internalId:  '',
customField: '20110625-231849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41904',
internalId:  '',
customField: '20110829-161804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41321',
internalId:  '',
customField: '20110405-225312'
};
webappMappings['1008']=webappMappings['1008-70799789']={
webappId:    '1008',
documentId:  '40931',
internalId:  '70799789',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41772',
internalId:  '',
customField: '20111012-191034'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IRSNPX';
var companyName   = 'bitte%2C+nur+5+Min.+ihrer+Zeit...';
var htmlTitle	  = 'bitte%2C+nur+5+Min.+ihrer+Zeit...';
var metaKeywords  = '++ein+Portal%2C+f%C3%BCr+alle%2C+die+was+zum+Thema+Tierschutz+zu+sagen+haben';
var metaContents  = '++rettet-Tiere-online';
					                                                                    
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 */					                                                            

