/* [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','1111',jdecode('Welcome'),jdecode(''),'/1111/index.html','true',[ 
		['PAGE','36308',jdecode('Welcome+%28follow+up+page%29'),jdecode(''),'/1111/36308.html','false',[],'']
	],''],
	['PAGE','1164',jdecode('About+Unibev'),jdecode(''),'/1164.html','true',[],''],
	['PAGE','1302',jdecode('Confectionery'),jdecode(''),'/1302/index.html','true',[ 
		['PAGE','42793',jdecode('Candy+Floss'),jdecode(''),'/1302/42793.html','true',[],''],
		['PAGE','33194',jdecode('Mighty+Mallows'),jdecode(''),'/1302/33194.html','true',[],''],
		['PAGE','47849',jdecode('Mallow+Twists'),jdecode(''),'/1302/47849.html','true',[],''],
		['PAGE','47973',jdecode('Mega+Mallow'),jdecode(''),'/1302/47973.html','true',[],''],
		['PAGE','48101',jdecode('Mallow+Slices'),jdecode(''),'/1302/48101.html','true',[],''],
		['PAGE','42762',jdecode('Foam+Bananas'),jdecode(''),'/1302/42762.html','true',[],''],
		['PAGE','11217',jdecode('Pencil+Jelly'),jdecode(''),'/1302/11217.html','true',[],''],
		['PAGE','47911',jdecode('Fruit+Bites'),jdecode(''),'/1302/47911.html','true',[],''],
		['PAGE','44301',jdecode('Jelly+Sweets'),jdecode(''),'/1302/44301.html','true',[],'']
	],''],
	['PAGE','1210',jdecode('Soft+Drinks'),jdecode(''),'/1210/index.html','true',[ 
		['PAGE','17131',jdecode('Frooters+Ice+Batons'),jdecode(''),'/1210/17131.html','true',[],''],
		['PAGE','8456',jdecode('Boo+Bee+Juice+Pods'),jdecode(''),'/1210/8456.html','true',[],''],
		['PAGE','42731',jdecode('Summer+Lollies'),jdecode(''),'/1210/42731.html','true',[],''],
		['PAGE','46101',jdecode('Animal+Pops'),jdecode(''),'/1210/46101.html','true',[],'']
	],''],
	['PAGE','1717',jdecode('Members+Area'),jdecode(''),'/1717/index.html','true',[ 
		['PAGE','38001',jdecode('PET+Filling+Line'),jdecode(''),'/1717/38001.html','true',[],''],
		['PAGE','38032',jdecode('Freeze+Pop+Machines'),jdecode(''),'/1717/38032.html','true',[],''],
		['PAGE','38094',jdecode('Tool+Room'),jdecode(''),'/1717/38094.html','true',[],'']
	],''],
	['PAGE','1325',jdecode('Contact+Us'),jdecode(''),'/1325/index.html','true',[ 
		['PAGE','3002',jdecode('Contact+Us'),jdecode(''),'/1325/3002.html','false',[],'']
	],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Filofax';
					                                                                    
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 */					                                                            
