/* [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','41950',jdecode('Nachzuchten'),jdecode(''),'/41950.html','true',[],''],
	['PAGE','41959',jdecode('Landschildkr%C3%B6ten'),jdecode(''),'/41959.html','true',[],''],
	['PAGE','41968',jdecode('Wasserschildkr%C3%B6ten1'),jdecode(''),'/41968.html','true',[],''],
	['PAGE','42534',jdecode('Wasserschildkr%C3%B6ten2'),jdecode(''),'/42534.html','true',[],''],
	['PAGE','42106',jdecode('Bildgalerie+1'),jdecode(''),'/42106.html','true',[],''],
	['PAGE','42368',jdecode('+Bildgalerie+2'),jdecode(''),'/42368.html','true',[],''],
	['PAGE','42387',jdecode('Launen+der+Natur'),jdecode(''),'/42387.html','true',[],''],
	['PAGE','41264',jdecode('Impressum'),jdecode(''),'/41264.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='11400B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10510';
theSitetree.graphicsetId='10914';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='11400B';
var theTemplate={
				name: 			'Stars',
				paletteFamily: 	'11400B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10510',
				graphicsetId: 	'10914',
				contentColor: 	'FFFFFF',
				contentBGColor: '11400B',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'11400B',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20070403-214135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41264',
internalId:  '',
customField: '20070222-171451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41950',
internalId:  '',
customField: '20070930-000226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41959',
internalId:  '',
customField: '20070927-170155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41968',
internalId:  '',
customField: '20070128-225031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42106',
internalId:  '',
customField: '20061113-171744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42368',
internalId:  '',
customField: '20070120-204128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42387',
internalId:  '',
customField: '20070114-211730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42534',
internalId:  '',
customField: '20070127-115816'
};
var canonHostname = 'cfawrk08.aul.t-online.de';
var accountId     = 'ATOIX0I7QLX6';
var companyName   = 'Turtle+-+World';
var htmlTitle	  = 'Land-+und+Wasserschildkr%C3%B6ten';
var metaKeywords  = 'Dr.+Michael+Reimann%2C+Zoologe%2C+Land-u.+Wasserschildkr%C3%B6ten%2C+Reptilien%2C+Greifv%C3%B6gel%2C+seltene+H%C3%BChnerrassen%2C+';
var metaContents  = 'Willkommen+bei+Turtle-World.++Landschildk%C3%B6ten%2C+Wasserschildkr%C3%B6ten%2C+';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            

