/* [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','4579',jdecode('Home'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','10606',jdecode('Behindertenarbeit'),jdecode(''),'/10606.html','true',[],''],
	['PAGE','10579',jdecode('Sport'),jdecode(''),'/10579.html','true',[],''],
	['PAGE','10980',jdecode('Fotos'),jdecode(''),'/10980/home.html','true',[ 
		['PAGE','37477',jdecode('Sportfotos'),jdecode(''),'/10980/37477.html','true',[],''],
		['PAGE','44935',jdecode('Urlaubsfotos'),jdecode(''),'/10980/44935.html','true',[],'']
	],''],
	['PAGE','10633',jdecode('Links'),jdecode(''),'/10633.html','true',[],''],
	['PAGE','10660',jdecode('Politik%2C+Auto%2C+Urlaub%2C+Musik+..'),jdecode(''),'/10660.html','true',[],''],
	['PAGE','56660',jdecode('auf+Vatersuche'),jdecode(''),'/56660.html','true',[],''],
	['PAGE','10851',jdecode('G%C3%A4stebuch'),jdecode(''),'/10851/home.html','true',[ 
		['PAGE','10852',jdecode('eure+Eintr%C3%A4ge'),jdecode(''),'/10851/10852.html','true',[],'']
	],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFF7E6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10743';
theSitetree.graphicsetId='10824';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFF7E6';
var theTemplate={
				name: 			'Roses',
				paletteFamily: 	'FFF7E6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10743',
				graphicsetId: 	'10824',
				contentColor: 	'666666',
				contentBGColor: 'FFF7E6',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1002']={
webappId:    '1002',
documentId:  '10851',
internalId:  '10851ATOIX0IN3PUJ',
customField: 'action=form&icq=false'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4579',
internalId:  '521182',
customField: '1501'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '44935',
internalId:  '10587475091',
customField: 'g.10m3kek4h.15v0s97ave2rt.6rn80'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '37477',
internalId:  '1058747508c',
customField: 'g.10m3kek4c.55nn82c25gnt2.6rn80'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '10852',
internalId:  '10851ATOIX0IN3PUJ',
customField: 'action=list'
};
var canonHostname = 'cfawrk07.aul.t-online.de';
var accountId     = 'ATOIX0IN3PUJ';
var companyName   = '+++++++Marianne+Schmidt';
					                                                                    
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 */					                                                            

