/* [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','4556',jdecode('WILLKOMMEN+AN+BORD'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','4667',jdecode('CREW+UND+BR%DCCKE'),jdecode(''),'/4667.html','true',[],''],
	['PAGE','73669',jdecode('TANZKORPS'),jdecode(''),'/73669/index.html','true',[ 
		['PAGE','124304',jdecode('TANZMATROSEN'),jdecode(''),'/73669/124304.html','true',[],'']
	],''],
	['PAGE','84260',jdecode('SHANTY+-+CHOR'),jdecode(''),'/84260/index.html','true',[ 
		['PAGE','118661',jdecode('SESSIONSLIED'),jdecode(''),'/84260/118661.html','true',[],'']
	],''],
	['PAGE','116003',jdecode('BORDKAPELLE'),jdecode(''),'/116003.html','true',[],''],
	['PAGE','117734',jdecode('AUSGUCK'),jdecode(''),'/117734/index.html','true',[ 
		['PAGE','28102',jdecode('TERMINE'),jdecode(''),'/117734/28102.html','true',[],''],
		['PAGE','117703',jdecode('AUFTRITTE'),jdecode(''),'/117734/117703.html','true',[],'']
	],''],
	['PAGE','98383',jdecode('JECK+OP+DECK+2010'),jdecode(''),'/98383.html','true',[],''],
	['PAGE','121203',jdecode('CAPTAINSDINNER+2010'),jdecode(''),'/121203/index.html','true',[ 
		['PAGE','121280',jdecode('KARTENBESTELLUNG'),jdecode(''),'/121203/121280/index.html','true',[ 
			['PAGE','122722',jdecode('KARTENBESTELLUNG+%28Folgeseite%29'),jdecode(''),'/121203/121280/122722.html','false',[],'']
		],''],
		['PAGE','121429',jdecode('SITZPLAN'),jdecode(''),'/121203/121429.html','true',[],'']
	],''],
	['PAGE','123718',jdecode('DAMENPARTY+2011'),jdecode(''),'/123718/index.html','true',[ 
		['PAGE','123750',jdecode('KARTENBESTELLUNG'),jdecode(''),'/123718/123750/index.html','true',[ 
			['PAGE','123852',jdecode('KARTENBESTELLUNG+%28Folgeseite%29'),jdecode(''),'/123718/123750/123852.html','false',[],'']
		],'']
	],''],
	['PAGE','98583',jdecode('FOTODECK'),jdecode(''),'/98583/index.html','true',[ 
		['PAGE','115492',jdecode('CSD+2009'),jdecode(''),'/98583/115492.html','true',[],''],
		['PAGE','53847',jdecode('SOMMERFEST'),jdecode(''),'/98583/53847.html','true',[],''],
		['PAGE','88653',jdecode('SCHIFFSAPPELL+2009'),jdecode(''),'/98583/88653.html','true',[],''],
		['PAGE','114930',jdecode('DAMENPARTY+2009'),jdecode(''),'/98583/114930.html','true',[],''],
		['PAGE','60652',jdecode('JECK+OP+DECK'),jdecode(''),'/98583/60652.html','true',[],''],
		['PAGE','119812',jdecode('AUFTRITTE'),jdecode(''),'/98583/119812.html','true',[],'']
	],''],
	['PAGE','52912',jdecode('DUTY-FREE-SHOP'),jdecode(''),'/52912.html','true',[],''],
	['PAGE','4721',jdecode('BORDPRESSE'),jdecode(''),'/4721/index.html','true',[ 
		['PAGE','124122',jdecode('PRESSELINKS'),jdecode(''),'/4721/124122.html','true',[],'']
	],''],
	['PAGE','61252',jdecode('LOGBUCH'),jdecode(''),'/61252.html','true',[],''],
	['PAGE','80552',jdecode('ARCHIV'),jdecode(''),'/80552/index.html','true',[ 
		['PAGE','98053',jdecode('ANF%C4NGE...'),jdecode(''),'/80552/98053.html','true',[],''],
		['PAGE','114035',jdecode('KAPIT%C4NE'),jdecode(''),'/80552/114035.html','true',[],''],
		['PAGE','10303',jdecode('TANZPAAR+2006+%2F+2007'),jdecode(''),'/80552/10303.html','true',[],''],
		['PAGE','67152',jdecode('CAPTAINS+DINNER'),jdecode(''),'/80552/67152.html','true',[],''],
		['PAGE','63056',jdecode('N%C4RRISCHE+HITPARADE'),jdecode(''),'/80552/63056.html','true',[],''],
		['PAGE','93483',jdecode('DE+H%D6PPEM%D6TZJER'),jdecode(''),'/80552/93483.html','true',[],''],
		['PAGE','105470',jdecode('Gloria-Sitzungen'),jdecode(''),'/80552/105470.html','true',[],''],
		['PAGE','104373',jdecode('PriPro+2009'),jdecode(''),'/80552/104373.html','true',[],'']
	],''],
	['PAGE','4748',jdecode('FLASCHENPOST'),jdecode(''),'/4748/index.html','true',[ 
		['PAGE','16102',jdecode('FLASCHENPOST+%28Folgeseite%29'),jdecode(''),'/4748/16102.html','false',[],'']
	],''],
	['PAGE','47066',jdecode('KARNEVALSDECK%2F-LINKS'),jdecode(''),'/47066.html','true',[],''],
	['PAGE','26102',jdecode('S.O.S.++%2F+IMPRESSUM'),jdecode(''),'/26102.html','true',[],'']];
var siteelementCount=42;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            
