/* [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','4596',jdecode('Buccoli%26%23x27%3Bs+Hobbyseiten'),jdecode(''),'/4596/index.html','true',[ 
		['PAGE','49234',jdecode('Der+Socken-Shop+%28Folgeseite%29'),jdecode(''),'/4596/49234.html','false',[],'']
	],''],
	['PAGE','61496',jdecode('Neuigkeiten'),jdecode(''),'/61496.html','true',[],''],
	['PAGE','60859',jdecode('Blogarchiv+2006'),jdecode(''),'/60859.html','true',[],''],
	['PAGE','36807',jdecode('Blogarchiv+2005'),jdecode(''),'/36807.html','true',[],''],
	['PAGE','58553',jdecode('Claudia%26%23x27%3Bs+Handarbeiten'),jdecode(''),'/58553/index.html','true',[ 
		['PAGE','46206',jdecode('Filzen'),jdecode(''),'/58553/46206.html','true',[],''],
		['PAGE','36906',jdecode('Kreuzstich'),jdecode(''),'/58553/36906.html','true',[],''],
		['PAGE','5509',jdecode('+-+Briefkunst'),jdecode(''),'/58553/5509.html','true',[],''],
		['PAGE','46237',jdecode('-+Freundschaftst%FCcher'),jdecode(''),'/58553/46237.html','true',[],''],
		['PAGE','41445',jdecode('-+Geschenkideen'),jdecode(''),'/58553/41445.html','true',[],''],
		['PAGE','38406',jdecode('-+Jahreszeitliches'),jdecode(''),'/58553/38406.html','true',[],''],
		['PAGE','18730',jdecode('-+Round+Robin'),jdecode(''),'/58553/18730.html','true',[],''],
		['PAGE','38937',jdecode('-+SAL'),jdecode(''),'/58553/38937.html','true',[],''],
		['PAGE','18703',jdecode('-+Verschiedenes'),jdecode(''),'/58553/18703.html','true',[],''],
		['PAGE','41706',jdecode('Kreuzstich+-+AKTIONEN'),jdecode(''),'/58553/41706.html','true',[],''],
		['PAGE','41737',jdecode('-+Anagram+-+4+Jahreszeiten'),jdecode(''),'/58553/41737.html','true',[],''],
		['PAGE','47106',jdecode('-+Geburtstagstuch'),jdecode(''),'/58553/47106.html','true',[],''],
		['PAGE','45906',jdecode('-+Fr%FChlings-B%E4nder'),jdecode(''),'/58553/45906.html','true',[],''],
		['PAGE','43306',jdecode('-+Stockings+2004'),jdecode(''),'/58553/43306.html','true',[],''],
		['PAGE','47306',jdecode('Puppenkleidung'),jdecode(''),'/58553/47306.html','true',[],''],
		['PAGE','38906',jdecode('Spinnen'),jdecode(''),'/58553/38906.html','true',[],''],
		['PAGE','45106',jdecode('Stricken+f%FCr+Fr%FChchen'),jdecode(''),'/58553/45106.html','true',[],''],
		['PAGE','37006',jdecode('Stricken'),jdecode(''),'/58553/37006.html','true',[],''],
		['PAGE','18757',jdecode('-+Alles+au%DFer+Socken'),jdecode(''),'/58553/18757.html','true',[],''],
		['PAGE','38999',jdecode('-+Mustersocken+KAL'),jdecode(''),'/58553/38999.html','true',[],''],
		['PAGE','5455',jdecode('-+Socken+2004'),jdecode(''),'/58553/5455.html','true',[],''],
		['PAGE','38968',jdecode('-+Socken+2005'),jdecode(''),'/58553/38968.html','true',[],''],
		['PAGE','56699',jdecode('-+Socken+2006'),jdecode(''),'/58553/56699.html','true',[],''],
		['PAGE','61585',jdecode('-+Socken+2007'),jdecode(''),'/58553/61585.html','true',[],''],
		['PAGE','26849',jdecode('-+Tischw%E4sche'),jdecode(''),'/58553/26849.html','true',[],''],
		['PAGE','26876',jdecode('-+Verschiedenes'),jdecode(''),'/58553/26876.html','true',[],'']
	],''],
	['PAGE','58522',jdecode('Unser+Sport'),jdecode(''),'/58522/index.html','true',[ 
		['PAGE','60593',jdecode('Ju-Jutsu'),jdecode(''),'/58522/60593.html','true',[],'']
	],''],
	['PAGE','58491',jdecode('Unsere+Zwergkaninchen'),jdecode(''),'/58491.html','true',[],''],
	['PAGE','5401',jdecode('Forum%2FImpressum'),jdecode(''),'/5401.html','true',[],''],
	['PAGE','20712',jdecode('Links'),jdecode(''),'/20712.html','true',[],'']];
var siteelementCount=37;
theSitetree.topTemplateName='Padma';
					                                                                    
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 */					                                                            
