/* [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','4707',jdecode('Home'),jdecode(''),'/4707.html','true',[],''],
	['PAGE','4764',jdecode('Gesichtmodellierung'),jdecode(''),'/4764/index.html','true',[ 
		['PAGE','26111',jdecode('Akne'),jdecode(''),'/4764/26111.html','true',[],''],
		['PAGE','4818',jdecode('Augenkorrekturen'),jdecode(''),'/4764/4818.html','true',[],''],
		['PAGE','4791',jdecode('Facelifting'),jdecode(''),'/4764/4791.html','true',[],''],
		['PAGE','5557',jdecode('Faltenkorrekturen'),jdecode(''),'/4764/5557.html','true',[],''],
		['PAGE','25803',jdecode('Haarverpflanzung'),jdecode(''),'/4764/25803.html','true',[],''],
		['PAGE','24218',jdecode('Kinnkorrekturen'),jdecode(''),'/4764/24218.html','true',[],''],
		['PAGE','6057',jdecode('Lippenkorrekturen'),jdecode(''),'/4764/6057.html','true',[],''],
		['PAGE','6084',jdecode('Nasenkorrekturen'),jdecode(''),'/4764/6084.html','true',[],''],
		['PAGE','6111',jdecode('Ohrenkorrekturen'),jdecode(''),'/4764/6111.html','true',[],''],
		['PAGE','27403',jdecode('Wangenkorrekturen'),jdecode(''),'/4764/27403.html','true',[],'']
	],''],
	['PAGE','4845',jdecode('Bodystyling'),jdecode(''),'/4845/index.html','true',[ 
		['PAGE','6165',jdecode('Bauchwandstraffung'),jdecode(''),'/4845/6165.html','true',[],''],
		['PAGE','6138',jdecode('Cellulitekorrektur'),jdecode(''),'/4845/6138.html','true',[],''],
		['PAGE','6219',jdecode('Ges%E4ssformung'),jdecode(''),'/4845/6219.html','true',[],''],
		['PAGE','31303',jdecode('Hautstraffung'),jdecode(''),'/4845/31303.html','true',[],''],
		['PAGE','4872',jdecode('Liposuction'),jdecode(''),'/4845/4872.html','true',[],''],
		['PAGE','27712',jdecode('Penisvergr%F6sserung'),jdecode(''),'/4845/27712.html','true',[],''],
		['PAGE','6273',jdecode('Wadenformung'),jdecode(''),'/4845/6273.html','true',[],'']
	],''],
	['PAGE','28003',jdecode('Brust'),jdecode(''),'/28003/index.html','true',[ 
		['PAGE','4899',jdecode('Bruststraffung'),jdecode(''),'/28003/4899.html','true',[],''],
		['PAGE','23603',jdecode('Brustvergr%F6sserung'),jdecode(''),'/28003/23603.html','true',[],''],
		['PAGE','23630',jdecode('Brustverkleinerung'),jdecode(''),'/28003/23630.html','true',[],'']
	],''],
	['PAGE','25203',jdecode('Hyperhidrosis'),jdecode(''),'/25203.html','true',[],''],
	['PAGE','26503',jdecode('Pigmentst%F6rungen'),jdecode(''),'/26503.html','true',[],''],
	['PAGE','5007',jdecode('Kontakt'),jdecode(''),'/5007/index.html','true',[ 
		['PAGE','37705',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/5007/37705.html','false',[],'']
	],''],
	['PAGE','20302',jdecode('Anfahrt'),jdecode(''),'/20302.html','true',[],''],
	['PAGE','98440',jdecode('Finanzierung'),jdecode(''),'/98440.html','true',[],''],
	['PAGE','5088',jdecode('Impressum'),jdecode(''),'/5088.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Disco';
					                                                                    
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 */					                                                            
