/* [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','4520',jdecode('WILLKOMMEN'),jdecode(''),'/4520.html','true',[],''],
	['PAGE','4577',jdecode('DAS+YOGA'),jdecode(''),'/4577/index.html','true',[ 
		['PAGE','73901',jdecode('26+%DCBUNGEN'),jdecode(''),'/4577/73901.html','true',[],''],
		['PAGE','4604',jdecode('WER+IST+BIKRAM%3F'),jdecode(''),'/4577/4604.html','true',[],''],
		['PAGE','4739',jdecode('FAQ'),jdecode(''),'/4577/4739.html','true',[],'']
	],''],
	['PAGE','4658',jdecode('KURSPLAN'),jdecode(''),'/4658/index.html','true',[ 
		['PAGE','73401',jdecode('PREISE'),jdecode(''),'/4658/73401.html','true',[],''],
		['PAGE','4631',jdecode('VORBEREITUNG'),jdecode(''),'/4658/4631.html','true',[],'']
	],''],
	['PAGE','100854',jdecode('NEWS+%2B+EVENTS'),jdecode(''),'/100854/index.html','true',[ 
		['PAGE','100244',jdecode('ESAK+GARCIA+%28Folgeseite%29'),jdecode(''),'/100854/100244.html','false',[],''],
		['PAGE','125927',jdecode('SEMINAR+CRAIG+2010'),jdecode(''),'/100854/125927/index.html','true',[ 
			['PAGE','125959',jdecode('SEMINAR+CRAIG+VILLANI+%28Folgeseite%29'),jdecode(''),'/100854/125927/125959.html','false',[],'']
		],''],
		['PAGE','119833',jdecode('BILDER+SEMINAR+2009'),jdecode(''),'/100854/119833.html','true',[],''],
		['PAGE','114146',jdecode('BILDER+MASTER+CLASS'),jdecode(''),'/100854/114146.html','true',[],''],
		['PAGE','111637',jdecode('BILDER+SEMINAR+%26%23x27%3B08'),jdecode(''),'/100854/111637.html','true',[],''],
		['PAGE','102653',jdecode('BILDER+WORKSHOP+%26%23x27%3B07'),jdecode(''),'/100854/102653.html','true',[],''],
		['PAGE','93102',jdecode('BILDER+SEMINAR+%26%23x27%3B06'),jdecode(''),'/100854/93102.html','true',[],'']
	],''],
	['PAGE','80785',jdecode('DAS+STUDIO'),jdecode(''),'/80785/index.html','true',[ 
		['PAGE','28302',jdecode('BILDER+STUDIO'),jdecode(''),'/80785/28302.html','true',[],''],
		['PAGE','87901',jdecode('DAS+TEAM'),jdecode(''),'/80785/87901.html','true',[],''],
		['PAGE','57001',jdecode('LAGEPLAN'),jdecode(''),'/80785/57001.html','true',[],''],
		['PAGE','34602',jdecode('SHOP+%28Folgeseite%29'),jdecode(''),'/80785/34602.html','false',[],''],
		['PAGE','78158',jdecode('LINK-TIPPS'),jdecode(''),'/80785/78158.html','true',[],''],
		['PAGE','82323',jdecode('KONTAKT+%28Folgeseite%29'),jdecode(''),'/80785/82323.html','false',[],'']
	],''],
	['PAGE','4712',jdecode('KONTAKT'),jdecode(''),'/4712.html','true',[],''],
	['PAGE','82403',jdecode('G%C4STEBUCH'),jdecode(''),'/82403/index.html','true',[ 
		['PAGE','82402',jdecode('NEUER+EINTRAG+'),jdecode(''),'/82403/82402.html','true',[],'']
	],''],
	['PAGE','110415',jdecode('%5BENGLISH+INFO%5D'),jdecode(''),'/110415.html','true',[],'']];
var siteelementCount=28;
theSitetree.topTemplateName='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 */					                                                            
