/* [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','501',jdecode('Home+%2F+Index'),jdecode(''),'/501.html','true',[],''],
	['PAGE','176812',jdecode('Sonne'),jdecode(''),'/176812/index.html','true',[ 
		['PAGE','154612',jdecode('Tafel+1'),jdecode(''),'/176812/154612.html','true',[],'']
	],''],
	['PAGE','154633',jdecode('Mond'),jdecode(''),'/154633/index.html','true',[ 
		['PAGE','162512',jdecode('Tafel+2'),jdecode(''),'/154633/162512.html','true',[],'']
	],''],
	['PAGE','200012',jdecode('Kometen'),jdecode(''),'/200012.html','true',[],''],
	['PAGE','148375',jdecode('Deep+Sky'),jdecode(''),'/148375/index.html','true',[ 
		['PAGE','161112',jdecode('Andromeda'),jdecode(''),'/148375/161112.html','true',[],''],
		['PAGE','161912',jdecode('F%C3%BCchschen'),jdecode(''),'/148375/161912.html','true',[],''],
		['PAGE','167412',jdecode('Giraffe'),jdecode(''),'/148375/167412.html','true',[],''],
		['PAGE','155112',jdecode('Herkules'),jdecode(''),'/148375/155112.html','true',[],''],
		['PAGE','169112',jdecode('Leier'),jdecode(''),'/148375/169112.html','true',[],''],
		['PAGE','159812',jdecode('Schwan'),jdecode(''),'/148375/159812.html','true',[],''],
		['PAGE','170212',jdecode('Stier'),jdecode(''),'/148375/170212.html','true',[],'']
	],''],
	['PAGE','188112',jdecode('Kreta+Sep.+07'),jdecode(''),'/188112/index.html','true',[ 
		['PAGE','189112',jdecode('Seite+1'),jdecode(''),'/188112/189112.html','true',[],''],
		['PAGE','189133',jdecode('Seite+2'),jdecode(''),'/188112/189133.html','true',[],''],
		['PAGE','189154',jdecode('Seite+3'),jdecode(''),'/188112/189154.html','true',[],''],
		['PAGE','198812',jdecode('Seite+4'),jdecode(''),'/188112/198812.html','true',[],'']
	],''],
	['PAGE','148459',jdecode('Sterne+und+Co'),jdecode(''),'/148459.html','true',[],''],
	['PAGE','164017',jdecode('G%C3%A4stebuch'),jdecode(''),'/164017/index.html','true',[ 
		['PAGE','164012',jdecode('Eintr%C3%A4ge'),jdecode(''),'/164017/164012.html','true',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='080245';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10615';
theSitetree.graphicsetId='10811';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='080245';
var theTemplate={
				name: 			'Delta',
				paletteFamily: 	'080245',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10615',
				graphicsetId: 	'10811',
				contentColor: 	'FFFFFF',
				contentBGColor: '080245',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'221785',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '164012',
internalId:  '164017abw0x0in273n',
customField: 'action=list'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '164017',
internalId:  '164017abw0x0in273n',
customField: 'action=form&icq=false'
};
var canonHostname = 'support.hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN273N';
var companyName   = 'Cujoka';
var htmlTitle	  = 'cujoka';
var metaKeywords  = 'Zeichnen+am+Teleskop%2C+Astronomie+Zeichnungen%2C+ART%2C+cujoka+';
var metaContents  = 'Zeichnen+am+Teleskop%2C+Astronomie+Zeichnungen%2C+ART%2C+cujoka+';
					                                                                    
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 */					                                                            
