/* [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','4615',jdecode('Home'),jdecode(''),'/4615.html','true',[],''],
	['PAGE','25776',jdecode('-++Galerie'),jdecode(''),'/25776.html','true',[],''],
	['PAGE','4962',jdecode('-++Geschichte'),jdecode(''),'/4962.html','true',[],''],
	['PAGE','4935',jdecode('-++Gusstechnik'),jdecode(''),'/4935.html','true',[],''],
	['PAGE','4881',jdecode('-+die+Macher'),jdecode(''),'/4881.html','true',[],''],
	['PAGE','28827',jdecode('Verkauf+%2F+Preis'),jdecode(''),'/28827.html','true',[],''],
	['PAGE','5016',jdecode('Adresse+%2F+Links'),jdecode(''),'/5016.html','true',[],''],
	['PAGE','4989',jdecode('Kontaktformular'),jdecode(''),'/4989/index.html','true',[ 
		['PAGE','29093',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/4989/29093.html','false',[],'']
	],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='A4A4AC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10553';
theSitetree.graphicsetId='10451';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='A4A4AC';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'A4A4AC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10553',
				graphicsetId: 	'10451',
				contentColor: 	'FFFFFF',
				contentBGColor: 'A4A4AC',
				a_color: 		'A4A4AC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4989',
internalId:  'abw0x0inxlbx4c9eb65e232c8188',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '29093',
internalId:  'abw0x0inxlbx4c9eb65e232c8188',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4615',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXLBX';
var companyName   = 'Maritime+Kunst+++-++++%22Nautik%22+in+Bronze+gegossen';
var htmlTitle	  = 'FlaggArt+%2F+Maritime+Kunst+-+Nautik+in+Bronze+gegossen';
var metaKeywords  = 'Maritime+Kunst%2CPro+Nautik%2CFlaggen%2CSemaphore%2CWinkeralphabet%2CYacht%2CBoot%2CSegelschiff%2CSegelyacht%2CSegelboot%2CMotorboot%2C+Motoryacht%2CWerft%2CWerften%2CKunstgallerie%2CGallerie%2Cmaritim%2Cnautisch%2CNautik%2CSee%2CMeer%2CBronze%2CBronzeguss%2CWimpel%2CBuchstaben%2C+Alphabet%2CBavaria%2CJeanneau%2CBenneteau%2CHalberg+Rassy%2CDehler%2CSunbeam%2CFirst%2COyster%2C+Swan%2CFrindship%2CHR%2CSeeleute%2CMatrose%2CKapit%C3%A4n%2C+Schiffer%2CB-Schein%2C+Segelschule%2C+Motorbootschule%2CSeefahrt%2C';
var metaContents  = 'Maritime+Kunst%2CNautik%2CFlaggen%2CSemaphore%2CBronze%2CSkulpturen%2CKunsthandel%2CInternet+Galerie';
					                                                                    
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 */					                                                            
