/* [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','4599',jdecode('Home'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','16203',jdecode('Nagelstudio'),jdecode(''),'/16203/index.html','true',[ 
		['PAGE','18430',jdecode('Fragen+%26+Antworten'),jdecode(''),'/16203/18430.html','true',[],''],
		['PAGE','75704',jdecode('Preisliste'),jdecode(''),'/16203/75704.html','true',[],'']
	],''],
	['PAGE','10224',jdecode('Seminare%2FWorkshops'),jdecode(''),'/10224/index.html','true',[ 
		['PAGE','113604',jdecode('Workshops'),jdecode(''),'/10224/113604.html','true',[],''],
		['PAGE','16284',jdecode('Wie+melde+ich+mich+an%3F'),jdecode(''),'/10224/16284.html','true',[],''],
		['PAGE','16257',jdecode('Anmeldeformular'),jdecode(''),'/10224/16257.html','true',[],''],
		['PAGE','76743',jdecode('Seminarfotos'),jdecode(''),'/10224/76743.html','true',[],'']
	],''],
	['PAGE','16311',jdecode('Termine'),jdecode(''),'/16311.html','true',[],''],
	['PAGE','74204',jdecode('Kosmetik'),jdecode(''),'/74204.html','true',[],''],
	['PAGE','17203',jdecode('Kontakt'),jdecode(''),'/17203/index.html','true',[ 
		['PAGE','16802',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/17203/16802.html','false',[],''],
		['PAGE','5203',jdecode('Feedback-Formular'),jdecode(''),'/17203/5203.html','true',[],''],
		['PAGE','43705',jdecode('Routenplaner'),jdecode(''),'/17203/43705.html','true',[],''],
		['PAGE','43735',jdecode('Lageplan'),jdecode(''),'/17203/43735.html','true',[],''],
		['PAGE','77204',jdecode('Impressum'),jdecode(''),'/17203/77204.html','true',[],'']
	],''],
	['PAGE','4702',jdecode('G%E4stebuch'),jdecode(''),'/4702/index.html','true',[ 
		['PAGE','4703',jdecode('Eintr%E4ge+im+G%E4stebuch'),jdecode(''),'/4702/4703.html','true',[],'']
	],''],
	['PAGE','46754',jdecode('Galerie'),jdecode(''),'/46754/index.html','true',[ 
		['PAGE','46560',jdecode('Bilder-+Nail-Art+auf+Wei%DF'),jdecode(''),'/46754/46560.html','true',[],''],
		['PAGE','103105',jdecode('Bilder-Nail-Art+Schwarz+-Wei%DF'),jdecode(''),'/46754/103105.html','true',[],''],
		['PAGE','45886',jdecode('Bilder-Nail-Art+auf+Bunt'),jdecode(''),'/46754/45886.html','true',[],''],
		['PAGE','82005',jdecode('Bilder-+French+Flammen'),jdecode(''),'/46754/82005.html','true',[],''],
		['PAGE','47905',jdecode('Bilder-+Nail-Art+Full-Cover'),jdecode(''),'/46754/47905.html','true',[],'']
	],''],
	['PAGE','21011',jdecode('Onlineshop'),jdecode(''),'/21011.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Bubbles';
					                                                                    
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 */					                                                            

