/* [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('Home'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40718',jdecode('Agamidae+%2F+Agamen'),jdecode(''),'/40718.html','true',[],''],
	['PAGE','45517',jdecode('Boidae+%2F+Boaschlangen'),jdecode(''),'/45517.html','true',[],''],
	['PAGE','47332',jdecode('Furcifer+%2F+Cham%C3%A4leons'),jdecode(''),'/47332.html','true',[],''],
	['PAGE','47323',jdecode('Iguanidae+%2F+Leguane'),jdecode(''),'/47323.html','true',[],''],
	['PAGE','47341',jdecode('Pythoninae+%2F+Pythons'),jdecode(''),'/47341.html','true',[],''],
	['PAGE','54801',jdecode('Weitere+gepflegte+Arten'),jdecode(''),'/54801.html','true',[],''],
	['PAGE','48150',jdecode('Meine+Terrarien'),jdecode(''),'/48150.html','true',[],''],
	['PAGE','40727',jdecode('Abzugeben%2FSuche'),jdecode(''),'/40727.html','true',[],''],
	['PAGE','48288',jdecode('Links'),jdecode(''),'/48288.html','true',[],''],
	['PAGE','49201',jdecode('Impressum+%2F+Kontakt'),jdecode(''),'/49201.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='TOI_Waves_1';
theSitetree.paletteFamily='97C63D';
theSitetree.keyvisualId='10834';
theSitetree.keyvisualName='kv_10834.jpg';
theSitetree.fontsetId='31848';
theSitetree.graphicsetId='13639';
theSitetree.contentColor='614E02';
theSitetree.contentBGColor='ebdfad';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Waves_1',
				paletteFamily: 	'97C63D',
				keyvisualId: 	'10834',
				keyvisualName: 	'kv_10834.jpg',
				fontsetId: 		'31848',
				graphicsetId: 	'13639',
				contentColor: 	'614E02',
				contentBGColor: 'ebdfad',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				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:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20091014-162136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20100806-164340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48288',
internalId:  '',
customField: '20101006-194412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47341',
internalId:  '',
customField: '20100725-140008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47323',
internalId:  '',
customField: '20100807-180156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40718',
internalId:  '',
customField: '20100806-163920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45517',
internalId:  '',
customField: '20100725-120613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40727',
internalId:  '',
customField: '20100725-141352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47332',
internalId:  '',
customField: '20100725-140302'
};
webappMappings['1008']=webappMappings['1008-50283399']={
webappId:    '1008',
documentId:  '40727',
internalId:  '50283399',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48150',
internalId:  '',
customField: '20100725-141058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49201',
internalId:  '',
customField: '20100725-141436'
};
webappMappings['1008']=webappMappings['1008-50283399']={
webappId:    '1008',
documentId:  '49201',
internalId:  '50283399',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IR5CHN';
var companyName   = 'Kai%27s+Reptilienwelt';
var htmlTitle	  = 'Kai%27s+Reptilienwelt';
var metaKeywords  = '++reptilien%2C+rebtilien%2C+reptillien%2C+reptilin%2C+reptielien%2C+boas%2C+boiden%2C+riesenschlangen%2C+imperator%2C+imperatoren%2C+kaiserboa%2Ckaiserboas%2C+schlangen%2C+snakes%2C+uros%2C+uromastyx%2C+dornschwanzagamen%2C+dornschwanzagame%2C+geyri%2C+geyers+dornschwanz+agame%2Cagamen%2C+serpents%2C+boa+constrictor+imperator%2C+crawl+cay%2C+terrarientiere%2C+terraristik%2C+booas%2C+boaschlangen%2Cklu%2C+reptilien-klu%2Criesenschlangen%2C+w%C3%BCrgeschlangen';
var metaContents  = 'Pers%C3%B6hnliche+Erfahrungen+und+Informationen+%C3%BCber+diverse+Boas+und+Uromastyx%2C+sowie+andere+Reptilien.';
					                                                                    
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 */					                                                            

