/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],''],
	['PAGE','4652',jdecode('About+us'),jdecode(''),'/4652/index.html','true',[ 
		['PAGE','9958',jdecode('The+team'),jdecode(''),'/4652/9958.html','true',[],'']
	],''],
	['PAGE','4679',jdecode('Dewin+Buhunds'),jdecode(''),'/4679.html','true',[],''],
	['PAGE','9985',jdecode('Contact+Us'),jdecode(''),'/9985.html','true',[],''],
	['PAGE','13901',jdecode('All+about+Buhunds'),jdecode(''),'/13901/index.html','true',[ 
		['PAGE','4706',jdecode('Buhund+History'),jdecode(''),'/13901/4706.html','true',[],''],
		['PAGE','13932',jdecode('Description+of+Buhunds'),jdecode(''),'/13901/13932.html','true',[],''],
		['PAGE','13963',jdecode('Buhund+Maintenance'),jdecode(''),'/13901/13963.html','true',[],''],
		['PAGE','17901',jdecode('exercise'),jdecode(''),'/13901/17901.html','true',[],''],
		['PAGE','18017',jdecode('Bu%26%23x27%3Bs+%26+other+animals'),jdecode(''),'/13901/18017.html','true',[],'']
	],''],
	['PAGE','4733',jdecode('Right+dog+for+you%3F'),jdecode(''),'/4733.html','true',[],''],
	['PAGE','13460',jdecode('Finding+your+puppy'),jdecode(''),'/13460/index.html','true',[ 
		['PAGE','4760',jdecode('dewin+puppies'),jdecode(''),'/13460/4760.html','true',[],''],
		['PAGE','4787',jdecode('Buying+your+puppy'),jdecode(''),'/13460/4787.html','true',[],''],
		['PAGE','4841',jdecode('Training+'),jdecode(''),'/13460/4841.html','true',[],'']
	],''],
	['PAGE','4814',jdecode('Preparing+your+home'),jdecode(''),'/4814/index.html','true',[ 
		['PAGE','14864',jdecode('Puppy-proofing+-+outside'),jdecode(''),'/4814/14864.html','true',[],''],
		['PAGE','14895',jdecode('Puppy-proofing+-+inside'),jdecode(''),'/4814/14895.html','true',[],'']
	],''],
	['PAGE','4868',jdecode('Health+Matters'),jdecode(''),'/4868/index.html','true',[ 
		['PAGE','4895',jdecode('Feeding'),jdecode(''),'/4868/4895.html','true',[],''],
		['PAGE','4922',jdecode('Exercise'),jdecode(''),'/4868/4922.html','true',[],'']
	],''],
	['PAGE','4949',jdecode('Breeding'),jdecode(''),'/4949.html','true',[],''],
	['PAGE','4976',jdecode('Showing+'),jdecode(''),'/4976.html','true',[],''],
	['PAGE','5003',jdecode('Obedience+'),jdecode(''),'/5003.html','true',[],''],
	['PAGE','5030',jdecode('Agility+'),jdecode(''),'/5030.html','true',[],''],
	['PAGE','5057',jdecode('Links'),jdecode(''),'/5057.html','true',[],''],
	['PAGE','11102',jdecode('Buhunds'),jdecode(''),'/11102.html','true',[],''],
	['PAGE','15301',jdecode('Bu+Pup%26%23x27%3Bs+ABC'),jdecode(''),'/15301.html','true',[],''],
	['PAGE','16001',jdecode('Shop'),jdecode(''),'/16001/index.html','true',[ 
		['PAGE','16301',jdecode('Birthday+Cards'),jdecode(''),'/16001/16301.html','true',[],''],
		['PAGE','16332',jdecode('Christmas+cards'),jdecode(''),'/16001/16332.html','true',[],''],
		['PAGE','16363',jdecode('Congratulations+Cards'),jdecode(''),'/16001/16363.html','true',[],'']
	],''],
	['PAGE','17801',jdecode('Rainbow+Bridge'),jdecode(''),'/17801.html','true',[],'']];
var siteelementCount=34;
theSitetree.topTemplateName='Deepcolor';
					                                                                    
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 */					                                                            
