/* [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','1152',jdecode('Home'),jdecode(''),'/index2.html','false',[],''],
	['PAGE','1205',jdecode('About+us'),jdecode(''),'/1205.html','false',[],''],
	['PAGE','1228',jdecode('How+to+find+us'),jdecode(''),'/1228.html','false',[],''],
	['PAGE','3003',jdecode('Our+Services'),jdecode(''),'/3003.html','false',[],''],
	['PAGE','3026',jdecode('Taxation+Advisors'),jdecode(''),'/3026.html','false',[],''],
	['PAGE','3049',jdecode('Accountancy+Services'),jdecode(''),'/3049.html','false',[],''],
	['PAGE','3095',jdecode('Contact+Us'),jdecode(''),'/3095.html','false',[],''],
	['PAGE','3457',jdecode('Your+Needs'),jdecode(''),'/3457.html','false',[],''],
	['PAGE','5401',jdecode('Business+Advisors'),jdecode(''),'/5401.html','false',[],''],
	['PAGE','5527',jdecode('Feedback'),jdecode(''),'/5527.html','false',[],''],
	['PAGE','5679',jdecode('Feedback'),jdecode(''),'/5527_f.html','false',[],''],
	['PAGE','18662',jdecode('Home'),jdecode(''),'/18662.html','true',[],''],
	['PAGE','18565',jdecode('About+Us'),jdecode(''),'/18565/index.html','true',[ 
		['PAGE','18879',jdecode('How+to+find+us'),jdecode(''),'/18565/18879.html','true',[],'']
	],''],
	['PAGE','18693',jdecode('Your+Needs'),jdecode(''),'/18693.html','true',[],''],
	['PAGE','18724',jdecode('Our+Services'),jdecode(''),'/18724/index.html','true',[ 
		['PAGE','18786',jdecode('Taxation+Advisers'),jdecode(''),'/18724/18786.html','true',[],''],
		['PAGE','18817',jdecode('Accountancy+Services'),jdecode(''),'/18724/18817.html','true',[],''],
		['PAGE','18848',jdecode('Business+Advisers'),jdecode(''),'/18724/18848.html','true',[],'']
	],''],
	['PAGE','18755',jdecode('Contact+Us'),jdecode(''),'/18755/index.html','true',[ 
		['PAGE','19118',jdecode('Feedback'),jdecode(''),'/18755/19118/index.html','true',[ 
			['PAGE','19548',jdecode('Feedback+%28follow+up+page%29'),jdecode(''),'/18755/19118/19548.html','false',[],'']
		],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Pixelprofi';
					                                                                    
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 */					                                                            
