/* [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','4598',jdecode('Route'),jdecode(''),'/4598/index.html','true',[ 
		['PAGE','66574',jdecode('Route+Veloreise'),jdecode(''),'/4598/66574.html','true',[],''],
		['PAGE','17901',jdecode('Statistik+Veloreise'),jdecode(''),'/4598/17901.html','true',[],''],
		['PAGE','68034',jdecode('Route+Australien'),jdecode(''),'/4598/68034.html','true',[],'']
	],''],
	['PAGE','4682',jdecode('Berichte'),jdecode(''),'/4682/index.html','true',[ 
		['PAGE','4709',jdecode('Bern+-+Kairo'),jdecode(''),'/4682/4709.html','true',[],''],
		['PAGE','38165',jdecode('Kairo+-+Bischkek'),jdecode(''),'/4682/38165.html','true',[],''],
		['PAGE','63313',jdecode('Bischkek+-+Delhi'),jdecode(''),'/4682/63313.html','true',[],''],
		['PAGE','66583',jdecode('Australien'),jdecode(''),'/4682/66583.html','true',[],''],
		['PAGE','67354',jdecode('S%C3%BCdostasien%26Indien'),jdecode(''),'/4682/67354.html','true',[],'']
	],''],
	['PAGE','4655',jdecode('Bilder'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','15143',jdecode('Bern+-+Kairo'),jdecode(''),'/4655/15143.html','true',[],''],
		['PAGE','38192',jdecode('Kairo+-+Bischkek'),jdecode(''),'/4655/38192.html','true',[],''],
		['PAGE','63615',jdecode('Bischkek+-+Delhi'),jdecode(''),'/4655/63615.html','true',[],''],
		['PAGE','66592',jdecode('Australien'),jdecode(''),'/4655/66592.html','true',[],''],
		['PAGE','67363',jdecode('S%C3%BCdostasien%26Indien'),jdecode(''),'/4655/67363.html','true',[],'']
	],''],
	['PAGE','15170',jdecode('Reiseinfos'),jdecode(''),'/15170/index.html','true',[ 
		['PAGE','15989',jdecode('Ausr%C3%BCstung'),jdecode(''),'/15170/15989.html','true',[],''],
		['PAGE','16016',jdecode('L%C3%A4nder'),jdecode(''),'/15170/16016.html','true',[],'']
	],''],
	['PAGE','63624',jdecode('Ueber+mich'),jdecode(''),'/63624.html','true',[],''],
	['PAGE','15526',jdecode('G%C3%A4stebuch'),jdecode(''),'/15526/index.html','true',[ 
		['PAGE','15527',jdecode('G%C3%A4stebuch+ansehen'),jdecode(''),'/15526/15527.html','true',[],'']
	],''],
	['PAGE','15224',jdecode('E-Mail'),jdecode(''),'/15224/index.html','true',[ 
		['PAGE','16097',jdecode('E-Mail+%28Folgeseite%29'),jdecode(''),'/15224/16097.html','false',[],'']
	],''],
	['PAGE','63633',jdecode('English+Window'),jdecode(''),'/63633/index.html','true',[ 
		['PAGE','64501',jdecode('About+me'),jdecode(''),'/63633/64501.html','true',[],''],
		['PAGE','64510',jdecode('Site+Navigation'),jdecode(''),'/63633/64510.html','true',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Breeze';
theSitetree.paletteFamily='A2B4E0';
theSitetree.keyvisualId='3683';
theSitetree.keyvisualName='kv_3683.jpg';
theSitetree.fontsetId='10470';
theSitetree.graphicsetId='10931';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Breeze',
				paletteFamily: 	'A2B4E0',
				keyvisualId: 	'3683',
				keyvisualName: 	'kv_3683.jpg',
				fontsetId: 		'10470',
				graphicsetId: 	'10931',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'909190',
				e_color: 		'909190',
				f_color: 		'909190',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '15526',
internalId:  '15526ABW0X0INXXL4',
customField: 'action=form&icq=false'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '15224',
internalId:  'abw0x0inxxl46f63c2f2f0e02835',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '16097',
internalId:  'abw0x0inxxl46f63c2f2f0e02835',
customField: 'followUp'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '15527',
internalId:  '15526ABW0X0INXXL4',
customField: 'action=list'
};
var canonHostname = 'support.hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXXL4';
var companyName   = 'ontheroad+to+the+east%21';
var htmlTitle	  = 'Beat+On+the+Road';
var metaKeywords  = 'Beat+Blaser+Velo+Bern+Indien+Veloreise+Velotour+Peat+Albanien%2C+Tuerkei%2C+Syrien%2C+Jordanien%2C+Aegypten%2C+Fahrrad%2C+Fahrradtour%2C+Iran%2C+Turkmenistan%2C+Usbekistan%2C+Kirgisien%2C+China%2C+Tibet%2C+Nepal%2C+Indien';
var metaContents  = 'Veloreise+von+Bern+nach+Indien+von+Beat+Blaser%3A+Reiseberichte%2C+Bilder%2C+Informationen%2C+Ausr%C3%BCstung.+';
					                                                                    
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 */					                                                            
