/* [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','201',jdecode('Daheim'),jdecode(''),'/201.html','true',[],''],
	['PAGE','6101',jdecode('Chronik'),jdecode(''),'/6101/index.html','true',[ 
		['PAGE','31106',jdecode('Biographie'),jdecode(''),'/6101/31106.html','true',[],'']
	],''],
	['PAGE','6106',jdecode('Termine'),jdecode(''),'/6106/index.html','true',[ 
		['PAGE','20101',jdecode('Termine+2005'),jdecode(''),'/6106/20101.html','true',[],''],
		['PAGE','20704',jdecode('Termine+2006'),jdecode(''),'/6106/20704.html','true',[],''],
		['PAGE','47601',jdecode('Termine+2007'),jdecode(''),'/6106/47601.html','true',[],''],
		['PAGE','64001',jdecode('Termine+2008'),jdecode(''),'/6106/64001.html','true',[],''],
		['PAGE','95701',jdecode('Termine+2009'),jdecode(''),'/6106/95701.html','true',[],''],
		['PAGE','123001',jdecode('Termine+2010'),jdecode(''),'/6106/123001.html','true',[],''],
		['PAGE','155501',jdecode('Termine+2011'),jdecode(''),'/6106/155501.html','true',[],''],
		['PAGE','181828',jdecode('Termine+2012'),jdecode(''),'/6106/181828.html','true',[],'']
	],''],
	['PAGE','6111',jdecode('Clubnachrichten'),jdecode(''),'/6111/index.html','true',[ 
		['PAGE','23501',jdecode('Nachrichten+2005'),jdecode(''),'/6111/23501.html','true',[],''],
		['PAGE','23506',jdecode('Nachrichten+2006'),jdecode(''),'/6111/23506.html','true',[],''],
		['PAGE','50011',jdecode('Nachrichten+2007'),jdecode(''),'/6111/50011.html','true',[],''],
		['PAGE','70701',jdecode('Nachrichten+2008'),jdecode(''),'/6111/70701.html','true',[],''],
		['PAGE','103401',jdecode('Nachrichten+2009'),jdecode(''),'/6111/103401.html','true',[],''],
		['PAGE','123022',jdecode('Nachrichten+2010'),jdecode(''),'/6111/123022.html','true',[],''],
		['PAGE','155522',jdecode('Nachrichten+2011'),jdecode(''),'/6111/155522.html','true',[],''],
		['PAGE','181849',jdecode('Nachrichten+2012'),jdecode(''),'/6111/181849.html','true',[],'']
	],''],
	['PAGE','6116',jdecode('Besetzung'),jdecode(''),'/6116.html','true',[],''],
	['PAGE','6121',jdecode('Repertoire'),jdecode(''),'/6121.html','true',[],''],
	['PAGE','49702',jdecode('Galerie+2005+bis+2008'),jdecode(''),'/49702.html','true',[],''],
	['PAGE','105001',jdecode('Galerie+2009+bis+2011'),jdecode(''),'/105001.html','true',[],''],
	['PAGE','6131',jdecode('H%C3%B6rproben'),jdecode(''),'/6131.html','true',[],''],
	['PAGE','6901',jdecode('Kontakt'),jdecode(''),'/6901/index.html','true',[ 
		['PAGE','18502',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/6901/18502.html','false',[],'']
	],''],
	['PAGE','5302',jdecode('G%C3%A4stebuch'),jdecode(''),'/5302/index.html','true',[ 
		['PAGE','5303',jdecode('Eintr%C3%A4ge'),jdecode(''),'/5302/5303.html','true',[],'']
	],''],
	['PAGE','34001',jdecode('Link-Sammlung'),jdecode(''),'/34001.html','true',[],''],
	['PAGE','107401',jdecode('Anfahrt'),jdecode(''),'/107401.html','true',[],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='90A262';
theSitetree.keyvisualId='1714';
theSitetree.keyvisualName='reihenhaeuser.jpg';
theSitetree.fontsetId='282';
theSitetree.graphicsetId='344';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='90A262';
var theTemplate={
				name: 			'Architekt',
				paletteFamily: 	'90A262',
				keyvisualId: 	'1714',
				keyvisualName: 	'reihenhaeuser.jpg',
				fontsetId: 		'282',
				graphicsetId: 	'344',
				contentColor: 	'000000',
				contentBGColor: '90A262',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'90A262',
				b_color: 		'525D37',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5302',
internalId:  '5302ain010in2r48',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5303',
internalId:  '5302ain010in2r48',
customField: 'action=list'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '201',
internalId:  '571101',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6901',
internalId:  'ain010in2r48106f5ce7044',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '18502',
internalId:  'ain010in2r48106f5ce7044',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '181828',
internalId:  '',
customField: '20111219-095730'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '103401',
internalId:  '',
customField: '20100425-222944'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '49702',
internalId:  '10e6f4fc343',
customField: 'g.11pnkssst.9js8rojkm.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20111219-103551'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49702',
internalId:  '',
customField: '20110201-170418'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20110619-121526'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31106',
internalId:  '',
customField: '20101014-133116'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6106',
internalId:  '',
customField: '20100129-161809'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20060227-232513'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20704',
internalId:  '',
customField: '20090201-190754'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47601',
internalId:  '',
customField: '20080907-145508'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64001',
internalId:  '',
customField: '20091030-165805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6111',
internalId:  '',
customField: '20080805-144348'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20061023-231936'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23506',
internalId:  '',
customField: '20091128-104326'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50011',
internalId:  '',
customField: '20090921-093354'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6116',
internalId:  '',
customField: '20110919-101004'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6121',
internalId:  '',
customField: '20110404-104420'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '181849',
internalId:  '',
customField: '20111219-095646'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '95701',
internalId:  '',
customField: '20101121-132639'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6131',
internalId:  '',
customField: '20060314-223153'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20050915-005653'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18502',
internalId:  '',
customField: '20100429-165443'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5302',
internalId:  '',
customField: '20070207-142516'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5303',
internalId:  '',
customField: '20110725-144107'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '105001',
internalId:  '11eeeb548f5',
customField: 'g.13rnas3om.4gldfaug1cc.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20111202-120704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '70701',
internalId:  '',
customField: '20081221-114333'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '105001',
internalId:  '',
customField: '20110201-170402'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '107401',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '107401',
internalId:  '',
customField: '20090205-140016'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '123001',
internalId:  '',
customField: '20111107-113039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '123022',
internalId:  '',
customField: '20110320-194011'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '155501',
internalId:  '',
customField: '20111212-091144'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '155522',
internalId:  '',
customField: '20111219-094405'
};
var canonHostname = 'cm4all.inode.at';
var accountId     = 'AIN010IN2R48';
var companyName   = 'JHBG+Hermann+L%C3%B6ns+Wien';
var htmlTitle	  = 'Jagdhornbl%C3%A4sergruppe+Hermann+L%C3%B6ns+Wien';
var metaKeywords  = 'Jaghornbl%C3%A4sergruppe+Hermann+L%C3%B6ns+Wien%2C+JHBG%2C+Jagdhornbl%C3%A4ser%2C+Jagdhornbl%C3%A4sergruppe%2C+Bl%C3%A4ser%2C+Hermann%2C+L%C3%B6ns%2C+Hermann+L%C3%B6ns%2C+Wien';
var metaContents  = 'Pflege+der+jagdmusikalischen+Tradition+in+der+Bundeshauptstadt+Wien';
					                                                                    
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 */					                                                            

