/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],''],
	['PAGE','6418',jdecode('Administration'),jdecode(''),'/6418.html','true',[],''],
	['PAGE','6391',jdecode('Production'),jdecode(''),'/6391.html','true',[],''],
	['PAGE','45195',jdecode('News'),jdecode(''),'/45195.html','true',[],''],
	['PAGE','5202',jdecode('Products'),jdecode(''),'/5202.html','true',[],''],
	['PAGE','81337',jdecode('Personalised+Clocks'),jdecode(''),'/81337/index.html','true',[ 
		['PAGE','81934',jdecode('Personal+Clock+Details'),jdecode(''),'/81337/81934.html','true',[],'']
	],''],
	['PAGE','5229',jdecode('To+Dog+Breeds'),jdecode(''),'/5229/index.html','true',[ 
		['PAGE','69815',jdecode('Airedale+Terriers'),jdecode(''),'/5229/69815.html','true',[],''],
		['PAGE','70683',jdecode('Basset+Hound'),jdecode(''),'/5229/70683.html','true',[],''],
		['PAGE','69846',jdecode('Beagles'),jdecode(''),'/5229/69846.html','true',[],''],
		['PAGE','69877',jdecode('Bearded+Collies'),jdecode(''),'/5229/69877.html','true',[],''],
		['PAGE','69908',jdecode('Bedlington+Terrier'),jdecode(''),'/5229/69908.html','true',[],''],
		['PAGE','70528',jdecode('Bernese+Mountain+Dog'),jdecode(''),'/5229/70528.html','true',[],''],
		['PAGE','69939',jdecode('Bichon+Fries'),jdecode(''),'/5229/69939.html','true',[],''],
		['PAGE','42653',jdecode('Border+Collie'),jdecode(''),'/5229/42653.html','true',[],''],
		['PAGE','70187',jdecode('Border+Terrier'),jdecode(''),'/5229/70187.html','true',[],''],
		['PAGE','8929',jdecode('Boxer'),jdecode(''),'/5229/8929.html','true',[],''],
		['PAGE','57901',jdecode('Bulldog'),jdecode(''),'/5229/57901.html','true',[],''],
		['PAGE','8902',jdecode('Bullmastiff'),jdecode(''),'/5229/8902.html','true',[],''],
		['PAGE','73601',jdecode('Bull+Terrier'),jdecode(''),'/5229/73601.html','true',[],''],
		['PAGE','77164',jdecode('Cairn+Terrier'),jdecode(''),'/5229/77164.html','true',[],''],
		['PAGE','70311',jdecode('Chihuahua'),jdecode(''),'/5229/70311.html','true',[],''],
		['PAGE','57775',jdecode('Chow+Chow'),jdecode(''),'/5229/57775.html','true',[],''],
		['PAGE','70590',jdecode('Corgi'),jdecode(''),'/5229/70590.html','true',[],''],
		['PAGE','70001',jdecode('Dalmatian'),jdecode(''),'/5229/70001.html','true',[],''],
		['PAGE','70652',jdecode('Doberman'),jdecode(''),'/5229/70652.html','true',[],''],
		['PAGE','70435',jdecode('Doug+de+Boudoir'),jdecode(''),'/5229/70435.html','true',[],''],
		['PAGE','70714',jdecode('English+Setter'),jdecode(''),'/5229/70714.html','true',[],''],
		['PAGE','43832',jdecode('German+Shepherd'),jdecode(''),'/5229/43832.html','true',[],''],
		['PAGE','70807',jdecode('Gorden+Setters'),jdecode(''),'/5229/70807.html','true',[],''],
		['PAGE','70745',jdecode('Great+Dane'),jdecode(''),'/5229/70745.html','true',[],''],
		['PAGE','70280',jdecode('Greyhounds'),jdecode(''),'/5229/70280.html','true',[],''],
		['PAGE','70466',jdecode('Hungarian+Visalia'),jdecode(''),'/5229/70466.html','true',[],''],
		['PAGE','70032',jdecode('Irish+Setter'),jdecode(''),'/5229/70032.html','true',[],''],
		['PAGE','57963',jdecode('Irish+Wolfhound'),jdecode(''),'/5229/57963.html','true',[],''],
		['PAGE','43894',jdecode('Jack+Russell'),jdecode(''),'/5229/43894.html','true',[],''],
		['PAGE','70373',jdecode('Japanese+Akita'),jdecode(''),'/5229/70373.html','true',[],''],
		['PAGE','44018',jdecode('King+Charles+Spaniels'),jdecode(''),'/5229/44018.html','true',[],''],
		['PAGE','43801',jdecode('Labrador+%26+Retriever'),jdecode(''),'/5229/43801.html','true',[],''],
		['PAGE','43956',jdecode('Lhasa+Apso+%26+Shih-Tzu'),jdecode(''),'/5229/43956.html','true',[],''],
		['PAGE','70063',jdecode('Miniture+Schnauzer'),jdecode(''),'/5229/70063.html','true',[],''],
		['PAGE','70218',jdecode('Newfoundland'),jdecode(''),'/5229/70218.html','true',[],''],
		['PAGE','70094',jdecode('Norfolk+Terrier'),jdecode(''),'/5229/70094.html','true',[],''],
		['PAGE','70342',jdecode('Old+English+Sheep+Dog'),jdecode(''),'/5229/70342.html','true',[],''],
		['PAGE','57932',jdecode('Papillon'),jdecode(''),'/5229/57932.html','true',[],''],
		['PAGE','70249',jdecode('Pointers'),jdecode(''),'/5229/70249.html','true',[],''],
		['PAGE','57808',jdecode('Poodle'),jdecode(''),'/5229/57808.html','true',[],''],
		['PAGE','70559',jdecode('Pug'),jdecode(''),'/5229/70559.html','true',[],''],
		['PAGE','70404',jdecode('Rhodesian+Ridge+Back'),jdecode(''),'/5229/70404.html','true',[],''],
		['PAGE','45101',jdecode('Rottweiler'),jdecode(''),'/5229/45101.html','true',[],''],
		['PAGE','45221',jdecode('Rough+Collie+and+Shelties'),jdecode(''),'/5229/45221.html','true',[],''],
		['PAGE','70156',jdecode('Samoyed'),jdecode(''),'/5229/70156.html','true',[],''],
		['PAGE','70621',jdecode('Scottish+Terrier'),jdecode(''),'/5229/70621.html','true',[],''],
		['PAGE','70497',jdecode('Sharpe'),jdecode(''),'/5229/70497.html','true',[],''],
		['PAGE','43987',jdecode('Springer++%26+Cocker+Spaniel%26%23x27%3Bs'),jdecode(''),'/5229/43987.html','true',[],''],
		['PAGE','43925',jdecode('Staffordshire+Bull+Terriers'),jdecode(''),'/5229/43925.html','true',[],''],
		['PAGE','70838',jdecode('Tibetan+Spaniel'),jdecode(''),'/5229/70838.html','true',[],''],
		['PAGE','69717',jdecode('Weimaraner'),jdecode(''),'/5229/69717.html','true',[],''],
		['PAGE','43863',jdecode('West+Highland+Terriers'),jdecode(''),'/5229/43863.html','true',[],''],
		['PAGE','70776',jdecode('Whippet'),jdecode(''),'/5229/70776.html','true',[],''],
		['PAGE','43501',jdecode('Yorkshire+Terriers'),jdecode(''),'/5229/43501.html','true',[],'']
	],''],
	['PAGE','44782',jdecode('To+Cat+Portraits'),jdecode(''),'/44782/index.html','true',[ 
		['PAGE','44901',jdecode('Kittens'),jdecode(''),'/44782/44901.html','true',[],''],
		['PAGE','44932',jdecode('Older+Cats'),jdecode(''),'/44782/44932.html','true',[],'']
	],''],
	['PAGE','57001',jdecode('Transport'),jdecode(''),'/57001/index.html','true',[ 
		['PAGE','58301',jdecode('Classic+Cars'),jdecode(''),'/57001/58301.html','true',[],''],
		['PAGE','57032',jdecode('Steam+Traction+Engines'),jdecode(''),'/57001/57032.html','true',[],''],
		['PAGE','82333',jdecode('Tractors'),jdecode(''),'/57001/82333.html','true',[],''],
		['PAGE','57063',jdecode('Sea'),jdecode(''),'/57001/57063.html','true',[],''],
		['PAGE','57094',jdecode('Air'),jdecode(''),'/57001/57094.html','true',[],'']
	],''],
	['PAGE','8623',jdecode('Guestbook'),jdecode(''),'/8623/index.html','true',[ 
		['PAGE','8624',jdecode('Read+Guestbook'),jdecode(''),'/8623/8624.html','true',[],'']
	],''],
	['PAGE','19355',jdecode('Contact'),jdecode(''),'/19355/index.html','true',[ 
		['PAGE','19409',jdecode('How+to+find+us'),jdecode(''),'/19355/19409.html','true',[],'']
	],'']];
var siteelementCount=75;
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 */					                                                            
