/* [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','4436',jdecode('HOME'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','85404',jdecode('BROCHURES'),jdecode(''),'/85404.html','true',[],''],
	['PAGE','148045',jdecode('BUSINESS+CARDS'),jdecode(''),'/148045.html','true',[],''],
	['PAGE','133604',jdecode('CALENDARS'),jdecode(''),'/133604.html','true',[],''],
	['PAGE','142604',jdecode('CHURCHES'),jdecode(''),'/142604.html','true',[],''],
	['PAGE','13904',jdecode('COLLAGE'),jdecode(''),'/13904.html','true',[],''],
	['PAGE','162545',jdecode('GREETING+CARDS'),jdecode(''),'/162545.html','true',[],''],
	['PAGE','80604',jdecode('INVITATIONS'),jdecode(''),'/80604.html','true',[],''],
	['PAGE','82904',jdecode('NEWSLETTERS'),jdecode(''),'/82904.html','true',[],''],
	['PAGE','107904',jdecode('OBITUARIES'),jdecode(''),'/107904.html','true',[],''],
	['PAGE','158990',jdecode('PRESENTATION+'),jdecode(''),'/158990.html','true',[],''],
	['PAGE','175345',jdecode('R+PRESENTS+'),jdecode(''),'/175345/index.html','true',[ 
		['PAGE','175846',jdecode('PRESENTS+FROM+GOD+%28follow+up+page%29'),jdecode(''),'/175345/175846.html','false',[],'']
	],''],
	['PAGE','8373',jdecode('ABOUT+US'),jdecode(''),'/8373.html','true',[],''],
	['PAGE','84631',jdecode('CURRENT+OFFERS'),jdecode(''),'/84631.html','true',[],''],
	['PAGE','107204',jdecode('PLACE+AN+ORDER'),jdecode(''),'/107204.html','true',[],''],
	['PAGE','124216',jdecode('PRICING'),jdecode(''),'/124216.html','true',[],''],
	['PAGE','139604',jdecode('LINKS'),jdecode(''),'/139604.html','true',[],''],
	['PAGE','147545',jdecode('COMMENTS+'),jdecode(''),'/147545/index.html','true',[ 
		['PAGE','147646',jdecode('COMMENTS++%28follow+up+page%29'),jdecode(''),'/147545/147646.html','false',[],'']
	],''],
	['PAGE','137605',jdecode('GUESTBOOK'),jdecode(''),'/137605/index.html','true',[ 
		['PAGE','137606',jdecode('READ+GUESTBOOK'),jdecode(''),'/137605/137606.html','true',[],'']
	],''],
	['PAGE','83354',jdecode(''),jdecode(''),'/83354.html','true',[],''],
	['PAGE','84104',jdecode(''),jdecode(''),'/84104.html','true',[],''],
	['PAGE','85718',jdecode('+'),jdecode(''),'/85718.html','true',[],''],
	['PAGE','108242',jdecode(''),jdecode(''),'/108242/index.html','true',[ 
		['PAGE','144814',jdecode('+%28follow+up+page%29'),jdecode(''),'/108242/144814.html','false',[],'']
	],''],
	['PAGE','108504',jdecode('+'),jdecode(''),'/108504/index.html','true',[ 
		['PAGE','108536',jdecode('.+%28follow+up+page%29'),jdecode(''),'/108504/108536.html','false',[],'']
	],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Seifenblase';
					                                                                    
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 */					                                                            
