/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],''],
	['PAGE','5048',jdecode('Philosophie'),jdecode(''),'/5048.html','true',[],''],
	['PAGE','6801',jdecode('Galerien'),jdecode(''),'/6801/index.html','true',[ 
		['PAGE','32801',jdecode('Akt'),jdecode(''),'/6801/32801.html','true',[],''],
		['PAGE','33601',jdecode('Natur'),jdecode(''),'/6801/33601.html','true',[],''],
		['PAGE','6864',jdecode('Diverses'),jdecode(''),'/6801/6864.html','true',[],'']
	],''],
	['PAGE','6885',jdecode('Tierfotografie'),jdecode(''),'/6885/index.html','true',[ 
		['PAGE','28701',jdecode('Hunde'),jdecode(''),'/6885/28701.html','true',[],''],
		['PAGE','32001',jdecode('Hundesport'),jdecode(''),'/6885/32001.html','true',[],''],
		['PAGE','34401',jdecode('Tiere'),jdecode(''),'/6885/34401.html','true',[],'']
	],''],
	['PAGE','35201',jdecode('Catcam'),jdecode(''),'/35201.html','true',[],''],
	['PAGE','5069',jdecode('Kontakt'),jdecode(''),'/5069.html','true',[],''],
	['PAGE','5090',jdecode('Links'),jdecode(''),'/5090.html','true',[],''],
	['PAGE','26106',jdecode('G%C3%A4stebuch'),jdecode(''),'/26106/index.html','true',[ 
		['PAGE','26101',jdecode('Eintr%C3%A4ge'),jdecode(''),'/26106/26101.html','true',[],'']
	],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Art';
theSitetree.paletteFamily='666666';
theSitetree.keyvisualId='1782';
theSitetree.keyvisualName='duene.jpg';
theSitetree.fontsetId='283';
theSitetree.graphicsetId='349';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='666666';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Art',
				paletteFamily: 	'666666',
				keyvisualId: 	'1782',
				keyvisualName: 	'duene.jpg',
				fontsetId: 		'283',
				graphicsetId: 	'349',
				contentColor: 	'FFFFFF',
				contentBGColor: '666666',
				a_color: 		'666666',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '26106',
internalId:  '26106ahopt0in3r1n',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '26101',
internalId:  '26106ahopt0in3r1n',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '28701',
internalId:  '11e874d4bba',
customField: 'g.13q3k6k9j.dmph96v549.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '32001',
internalId:  '11e8c8a59ad',
customField: 'g.13q68eblb.569pu9n1c71.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '32801',
internalId:  '11e8c977513',
customField: 'g.13q694gdg.1n36cgq3nekg.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '33601',
internalId:  '11e8ca01bc9',
customField: 'g.13q69m938.866t4kql9na.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '34401',
internalId:  '11e8ca586a2',
customField: 'g.13q6a816u.mrtse7s4mc.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '35201',
internalId:  '11e8cab21be',
customField: 'g.13q6aim7i.qn6hbceafb.1s'
};
var canonHostname = 'webomat';
var accountId     = 'AHOPT0IN3R1N';
var companyName   = 'Fotoprojekt';
var htmlTitle	  = 'Fotoprojekt+Home';
var metaKeywords  = 'Fotografie%2C+Fotografin%2C+Kunstfotografie%2C+Naturfotografie%2C+Tierfotografie%2C+Hundesport%2C+Hunde%2C+Aktfotografie%2C+Urn%C3%A4sch%2C+Appenzell%2C+Hochzeitsfotografiin';
var metaContents  = 'Fotografie%2C+Tierfotografie%2C+Kunstfotografie%2C+Naturfotografie%2C+Aktfotografie';
					                                                                    
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 */					                                                            
