/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','40891',jdecode('Impressionen'),jdecode(''),'/40891.html','true',[],''],
	['PAGE','40688',jdecode('Galerie+Nr.+1'),jdecode(''),'/40688.html','true',[],''],
	['PAGE','62011',jdecode('Galerie+Nr.+2'),jdecode(''),'/62011.html','true',[],''],
	['PAGE','66811',jdecode('Galerie+Nr.+3'),jdecode(''),'/66811.html','true',[],''],
	['PAGE','42573',jdecode('Philosophie'),jdecode(''),'/42573.html','true',[],''],
	['PAGE','43941',jdecode('Videofilm'),jdecode(''),'/43941.html','true',[],''],
	['PAGE','73611',jdecode('Diaschau'),jdecode(''),'/73611.html','true',[],''],
	['PAGE','40370',jdecode('Kontakt'),jdecode(''),'/40370.html','true',[],''],
	['PAGE','43818',jdecode('Links'),jdecode(''),'/43818.html','true',[],''],
	['PAGE','40379',jdecode('Impressum'),jdecode(''),'/40379.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Billy';
theSitetree.paletteFamily='8D7C50';
theSitetree.keyvisualId='7078';
theSitetree.keyvisualName='kv_7078.jpg';
theSitetree.fontsetId='16390';
theSitetree.graphicsetId='12126';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='8D7C50';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Billy',
				paletteFamily: 	'8D7C50',
				keyvisualId: 	'7078',
				keyvisualName: 	'kv_7078.jpg',
				fontsetId: 		'16390',
				graphicsetId: 	'12126',
				contentColor: 	'FFFFFF',
				contentBGColor: '8D7C50',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-1079543bc12']={
webappId:    '1007',
documentId:  '40688',
internalId:  '1079543bc12',
customField: 'g.10uagp5mo.ae74f4p7pu.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20120207-133714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42573',
internalId:  '',
customField: '20120106-195809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40370',
internalId:  '',
customField: '20100225-105322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40379',
internalId:  '',
customField: '20120209-100935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40891',
internalId:  '',
customField: '20110402-002548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40688',
internalId:  '',
customField: '20120111-190445'
};
webappMappings['1007']=webappMappings['1007-1270a72277e']={
webappId:    '1007',
documentId:  '62011',
internalId:  '1270a72277e',
customField: 'g.14s567lu5.5tj632bg4j0.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62011',
internalId:  '',
customField: '20120111-190534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43818',
internalId:  '',
customField: '20120209-111427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43941',
internalId:  '',
customField: '20091104-104620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66811',
internalId:  '',
customField: '20120111-190604'
};
webappMappings['1008']=webappMappings['1008-62990865']={
webappId:    '1008',
documentId:  '40370',
internalId:  '62990865',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['1007']=webappMappings['1007-1270feb1b63']={
webappId:    '1007',
documentId:  '66811',
internalId:  '1270feb1b63',
customField: 'g.14s7r46vl.1ikkacuugs.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73611',
internalId:  '',
customField: '20100301-095516'
};
webappMappings['7091']=webappMappings['7091-43035']={
webappId:    '7091',
documentId:  '73611',
internalId:  '43035',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['7091']=webappMappings['7091-43034']={
webappId:    '7091',
documentId:  '73611',
internalId:  '43034',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['7091']=webappMappings['7091-62979']={
webappId:    '7091',
documentId:  '43818',
internalId:  '62979',
customField: 'align:left;language:de;country:DE;'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INFXNP';
var companyName   = 'Wildnisbilder.de';
var htmlTitle	  = 'Wildnisbilder.de';
var metaKeywords  = 'Natur%2C+Naturfotografie%2C+Naturfilm%2C+Tierfotografie%2C+Tierfilm%2C+Wildnisbilder%2C+Wildnis+in+der+Heimat%2C+Heimische+Wildnis%2C+Heimat%2C+Wildnis%2C+Flora%2C+Fauna%2C+Erde%2C+Wasser%2C+Sch%C3%B6pfung%2C+Umwelt%2C+Leben%2C+Philosophie%2C+Lebensart';
var metaContents  = 'Willkommen+bei+Wildnisbilder.de%2C+Film+-+u.+Fotoaufnahmen+aus+der+Natur++';
					                                                                    
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 */					                                                            

