/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','13115',jdecode('Guestbook'),jdecode(''),'/13115/index.html','true',[ 
		['PAGE','13116',jdecode('Read+Guestbook'),jdecode(''),'/13115/13116.html','true',[],'']
	],''],
	['PAGE','4655',jdecode('Bailey%26%23x27%3Bs+Page'),jdecode(''),'/4655.html','true',[],''],
	['PAGE','4682',jdecode('Willow%26%23x27%3Bs+Page'),jdecode(''),'/4682.html','true',[],''],
	['PAGE','15551',jdecode('Timbers+Page'),jdecode(''),'/15551.html','true',[],''],
	['PAGE','15392',jdecode('Savannah%26%23x27%3Bs+page'),jdecode(''),'/15392.html','true',[],''],
	['PAGE','31119',jdecode('Aspen%26%23x27%3Bs+page'),jdecode(''),'/31119.html','true',[],''],
	['PAGE','15427',jdecode('Chunky%26%23x27%3Bs+page'),jdecode(''),'/15427.html','true',[],''],
	['PAGE','15458',jdecode('Nanook%26%23x27%3Bs+page'),jdecode(''),'/15458.html','true',[],''],
	['PAGE','15489',jdecode('Yasmin%26%23x27%3Bs+page'),jdecode(''),'/15489.html','true',[],''],
	['PAGE','15520',jdecode('Dakota%26%23x27%3Bs+page'),jdecode(''),'/15520.html','true',[],''],
	['PAGE','31088',jdecode('Bandits+page'),jdecode(''),'/31088.html','true',[],''],
	['PAGE','31150',jdecode('Phoenix%26%23x27%3Bs+Page'),jdecode(''),'/31150.html','true',[],''],
	['PAGE','31181',jdecode('Shanook%26%23x27%3Bs+Page'),jdecode(''),'/31181.html','true',[],''],
	['PAGE','34688',jdecode('TRIBUTE+TO+TIMBER'),jdecode(''),'/34688.html','true',[],''],
	['PAGE','29888',jdecode('litter+2008'),jdecode(''),'/29888.html','true',[],''],
	['PAGE','17910',jdecode('Our+Dogs+photo+album'),jdecode(''),'/17910.html','true',[],''],
	['PAGE','26388',jdecode('Our+dogs+2nd+album'),jdecode(''),'/26388.html','true',[],''],
	['PAGE','12714',jdecode('Puppies'),jdecode(''),'/12714.html','true',[],''],
	['PAGE','31489',jdecode('more+pics'),jdecode(''),'/31489.html','true',[],''],
	['PAGE','13843',jdecode('Puppies+and+barf+Diet'),jdecode(''),'/13843.html','true',[],''],
	['PAGE','25788',jdecode('Future+Breeding'),jdecode(''),'/25788.html','true',[],''],
	['PAGE','28591',jdecode('DOGS+AVAILABLE'),jdecode(''),'/28591.html','true',[],''],
	['PAGE','19472',jdecode('Dogs+Pedigrees'),jdecode(''),'/19472.html','true',[],''],
	['PAGE','4709',jdecode('Show+Results'),jdecode(''),'/4709.html','true',[],''],
	['PAGE','4763',jdecode('Breed+Standard'),jdecode(''),'/4763.html','true',[],''],
	['PAGE','4736',jdecode('Working+pictures'),jdecode(''),'/4736.html','true',[],''],
	['PAGE','17457',jdecode('Working+Intro.'),jdecode(''),'/17457.html','true',[],''],
	['PAGE','7602',jdecode('Is+a+Malamute+for+you'),jdecode(''),'/7602.html','true',[],''],
	['PAGE','21288',jdecode('Breeder+checklist'),jdecode(''),'/21288.html','true',[],''],
	['PAGE','24188',jdecode('Hip+Dysplasia'),jdecode(''),'/24188.html','true',[],''],
	['PAGE','20088',jdecode('Articles'),jdecode(''),'/20088.html','true',[],''],
	['PAGE','22588',jdecode('why+not+to'),jdecode(''),'/22588.html','true',[],''],
	['PAGE','22688',jdecode('nothing+in+life+is+free'),jdecode(''),'/22688.html','true',[],''],
	['PAGE','22788',jdecode('Social+Isolation'),jdecode(''),'/22788.html','true',[],''],
	['PAGE','23088',jdecode('Food+Guarding%2FAggression'),jdecode(''),'/23088.html','true',[],''],
	['PAGE','23888',jdecode('Bloat'),jdecode(''),'/23888.html','true',[],''],
	['PAGE','4817',jdecode('Links'),jdecode(''),'/4817.html','true',[],''],
	['PAGE','23688',jdecode('Code+of+Ethics'),jdecode(''),'/23688.html','true',[],''],
	['PAGE','14393',jdecode('Weblog'),jdecode(''),'/14393.html','true',[],''],
	['PAGE','28888',jdecode('Sled+Dog+History'),jdecode(''),'/28888.html','true',[],''],
	['PAGE','34188',jdecode('christmas+appearances'),jdecode(''),'/34188.html','true',[],'']];
var siteelementCount=43;
theSitetree.topTemplateName='Enjoy';
					                                                                    
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 */					                                                            
