/* [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('HOME+PAGE'),jdecode(''),'/1111.html','true',[],''],
	['PAGE','92771',jdecode('EURO+LANGUAGES'),jdecode(''),'/92771.html','true',[],''],
	['PAGE','91526',jdecode('GET+LISTED+FREE'),jdecode(''),'/91526.html','true',[],''],
	['PAGE','1348',jdecode('ABOUT+BIRMINGHAM'),jdecode(''),'/1348.html','true',[],''],
	['PAGE','64386',jdecode('MAPS+of+BRUM'),jdecode(''),'/64386.html','true',[],''],
	['PAGE','78003',jdecode('CHAT+ROOM'),jdecode(''),'/78003.html','true',[],''],
	['PAGE','55186',jdecode('2SHY2.co.uk'),jdecode(''),'/55186.html','true',[],''],
	['PAGE','97714',jdecode('MASSAGE'),jdecode(''),'/97714.html','true',[],''],
	['PAGE','32984',jdecode('MESSAGE+BOARD'),jdecode(''),'/32984/index.html','true',[ 
		['PAGE','32985',jdecode('READ+MESSAGES'),jdecode(''),'/32984/32985.html','true',[],'']
	],''],
	['PAGE','1187',jdecode('MIDLANDS+AREA'),jdecode(''),'/1187/index.html','true',[ 
		['PAGE','49986',jdecode('Cheltenham'),jdecode(''),'/1187/49986.html','true',[],''],
		['PAGE','7804',jdecode('Coventry'),jdecode(''),'/1187/7804.html','true',[],''],
		['PAGE','50013',jdecode('Derby'),jdecode(''),'/1187/50013.html','true',[],''],
		['PAGE','50040',jdecode('Gloucester'),jdecode(''),'/1187/50040.html','true',[],''],
		['PAGE','50067',jdecode('Hereford'),jdecode(''),'/1187/50067.html','true',[],''],
		['PAGE','10112',jdecode('Leicester'),jdecode(''),'/1187/10112.html','true',[],''],
		['PAGE','50094',jdecode('Nottingham'),jdecode(''),'/1187/50094.html','true',[],''],
		['PAGE','50121',jdecode('Peterborough'),jdecode(''),'/1187/50121.html','true',[],''],
		['PAGE','10135',jdecode('Rugby'),jdecode(''),'/1187/10135.html','true',[],''],
		['PAGE','16492',jdecode('Shrewsbury'),jdecode(''),'/1187/16492.html','true',[],''],
		['PAGE','50148',jdecode('Stoke+on+Trent'),jdecode(''),'/1187/50148.html','true',[],''],
		['PAGE','12821',jdecode('Telford'),jdecode(''),'/1187/12821.html','true',[],''],
		['PAGE','13995',jdecode('Walsall'),jdecode(''),'/1187/13995.html','true',[],''],
		['PAGE','7827',jdecode('Wolverhampton'),jdecode(''),'/1187/7827.html','true',[],''],
		['PAGE','12844',jdecode('Worcester'),jdecode(''),'/1187/12844.html','true',[],'']
	],''],
	['PAGE','1164',jdecode('ACCOMMODATION'),jdecode(''),'/1164/index.html','true',[ 
		['PAGE','9484',jdecode('City+Centre+Hotels'),jdecode(''),'/1164/9484.html','true',[],'']
	],''],
	['PAGE','1210',jdecode('BARS+%26+CLUBS'),jdecode(''),'/1210/index.html','true',[ 
		['PAGE','14018',jdecode('Angels'),jdecode(''),'/1210/14018.html','true',[],''],
		['PAGE','8418',jdecode('Diamonds'),jdecode(''),'/1210/8418.html','true',[],''],
		['PAGE','8441',jdecode('DV8'),jdecode(''),'/1210/8441.html','true',[],''],
		['PAGE','20057',jdecode('Equator'),jdecode(''),'/1210/20057.html','true',[],''],
		['PAGE','8464',jdecode('Fountain'),jdecode(''),'/1210/8464.html','true',[],''],
		['PAGE','8487',jdecode('Fox'),jdecode(''),'/1210/8487.html','true',[],''],
		['PAGE','42434',jdecode('Glamorous'),jdecode(''),'/1210/42434.html','true',[],''],
		['PAGE','8510',jdecode('Green+Room'),jdecode(''),'/1210/8510.html','true',[],''],
		['PAGE','84401',jdecode('Jester'),jdecode(''),'/1210/84401.html','true',[],''],
		['PAGE','90801',jdecode('Loft+Lounge'),jdecode(''),'/1210/90801.html','true',[],''],
		['PAGE','8556',jdecode('Missing'),jdecode(''),'/1210/8556.html','true',[],''],
		['PAGE','8579',jdecode('Nightingale'),jdecode(''),'/1210/8579.html','true',[],''],
		['PAGE','81319',jdecode('Spare'),jdecode(''),'/1210/81319.html','true',[],''],
		['PAGE','8648',jdecode('Route'),jdecode(''),'/1210/8648.html','true',[],''],
		['PAGE','8533',jdecode('Shooters'),jdecode(''),'/1210/8533.html','true',[],''],
		['PAGE','8671',jdecode('Subway+City'),jdecode(''),'/1210/8671.html','true',[],''],
		['PAGE','7495',jdecode('Village+Inn+%26+Hotel'),jdecode(''),'/1210/7495.html','true',[],''],
		['PAGE','9311',jdecode('Wellington'),jdecode(''),'/1210/9311.html','true',[],'']
	],''],
	['PAGE','24054',jdecode('CONFIDENTIAL+LOG+ON'),jdecode(''),'/24054/index.html','true',[ 
		['PAGE','34906',jdecode('CONFIDENTIAL+LOG+ON'),jdecode(''),'/24054/34906.html','false',[],'']
	],''],
	['PAGE','23295',jdecode('CRIMEWATCH'),jdecode(''),'/23295/index.html','true',[ 
		['PAGE','23341',jdecode('Defence+Witnesses'),jdecode(''),'/23295/23341/index.html','true',[ 
			['PAGE','23517',jdecode('Defence+Witnesses'),jdecode(''),'/23295/23341/23517.html','false',[],'']
		],'']
	],''],
	['PAGE','13295',jdecode('CRUISING'),jdecode(''),'/13295.html','true',[],''],
	['PAGE','58572',jdecode('DATING+ONLINE'),jdecode(''),'/58572.html','true',[],''],
	['PAGE','15295',jdecode('ESCORTS'),jdecode(''),'/15295.html','true',[],''],
	['PAGE','87532',jdecode('EYE+CANDY'),jdecode(''),'/87532.html','true',[],''],
	['PAGE','87501',jdecode('FOTO-FUN'),jdecode(''),'/87501/index.html','true',[ 
		['PAGE','87563',jdecode('Foto-Fun+1'),jdecode(''),'/87501/87563.html','true',[],''],
		['PAGE','87594',jdecode('Foto-Fun2'),jdecode(''),'/87501/87594.html','true',[],''],
		['PAGE','87625',jdecode('Foto-Fun+3'),jdecode(''),'/87501/87625.html','true',[],''],
		['PAGE','93001',jdecode('Foto-Fun+4'),jdecode(''),'/87501/93001.html','true',[],'']
	],''],
	['PAGE','67403',jdecode('GAMING+ONLINE'),jdecode(''),'/67403.html','true',[],''],
	['PAGE','19364',jdecode('GAY+HEALTH'),jdecode(''),'/19364.html','true',[],''],
	['PAGE','69838',jdecode('GAY+LAW+INFO'),jdecode(''),'/69838.html','true',[],''],
	['PAGE','76203',jdecode('LESBIAN+ISSUES'),jdecode(''),'/76203.html','true',[],''],
	['PAGE','1233',jdecode('NEWS'),jdecode(''),'/1233.html','true',[],''],
	['PAGE','71241',jdecode('PHOTO+GALLERIES'),jdecode(''),'/71241.html','true',[],''],
	['PAGE','94201',jdecode('POSTERS'),jdecode(''),'/94201.html','true',[],''],
	['PAGE','50886',jdecode('PRIDE+2007'),jdecode(''),'/50886.html','true',[],''],
	['PAGE','20895',jdecode('PREVIOUS+PRIDE'),jdecode(''),'/20895/index.html','true',[ 
		['PAGE','29006',jdecode('Street+Festival+%281%29'),jdecode(''),'/20895/29006.html','true',[],''],
		['PAGE','29029',jdecode('Street+Festival+%282%29'),jdecode(''),'/20895/29029.html','true',[],''],
		['PAGE','29052',jdecode('Street+Festival+%283%29'),jdecode(''),'/20895/29052.html','true',[],''],
		['PAGE','29075',jdecode('Pride+by+PINKPIX'),jdecode(''),'/20895/29075.html','true',[],''],
		['PAGE','20918',jdecode('Pix+June+1st+'),jdecode(''),'/20895/20918.html','true',[],''],
		['PAGE','27624',jdecode('Parade+'),jdecode(''),'/20895/27624.html','true',[],'']
	],''],
	['PAGE','1302',jdecode('SAUNAS'),jdecode(''),'/1302.html','true',[],''],
	['PAGE','63786',jdecode('SEARCH'),jdecode(''),'/63786.html','true',[],''],
	['PAGE','7873',jdecode('SERVICES'),jdecode(''),'/7873/index.html','true',[ 
		['PAGE','12396',jdecode('A+-+F'),jdecode(''),'/7873/12396.html','true',[],''],
		['PAGE','36920',jdecode('G+-+M'),jdecode(''),'/7873/36920.html','true',[],''],
		['PAGE','53586',jdecode('N++-+T'),jdecode(''),'/7873/53586.html','true',[],''],
		['PAGE','75603',jdecode('U+-+Z'),jdecode(''),'/7873/75603.html','true',[],'']
	],''],
	['PAGE','7850',jdecode('SHOP+ONLINE'),jdecode(''),'/7850.html','true',[],''],
	['PAGE','41322',jdecode('STUDENTS'),jdecode(''),'/41322.html','true',[],''],
	['PAGE','10895',jdecode('SPECIAL+INTEREST+GROUPS'),jdecode(''),'/10895.html','true',[],''],
	['PAGE','13410',jdecode('TRAVEL+%26+TRANSPORT'),jdecode(''),'/13410.html','true',[],''],
	['PAGE','1371',jdecode('WEB+LINKS'),jdecode(''),'/1371.html','true',[],''],
	['PAGE','35678',jdecode('WEBMASTER+Studio400Ltd'),jdecode(''),'/35678/index.html','true',[ 
		['PAGE','36980',jdecode('WEBMASTER+Studio400Ltd'),jdecode(''),'/35678/36980.html','false',[],''],
		['PAGE','37678',jdecode('Gay+Domains'),jdecode(''),'/35678/37678.html','true',[],''],
		['PAGE','51186',jdecode('gaybrum+logos'),jdecode(''),'/35678/51186.html','true',[],'']
	],''],
	['PAGE','7518',jdecode('LEGAL+NOTICE'),jdecode(''),'/7518.html','true',[],''],
	['PAGE','79001',jdecode('About+us'),jdecode(''),'/79001.html','true',[],''],
	['PAGE','79028',jdecode('Service'),jdecode(''),'/79028.html','true',[],''],
	['PAGE','79055',jdecode('News'),jdecode(''),'/79055.html','true',[],''],
	['PAGE','79082',jdecode('Jobs'),jdecode(''),'/79082.html','true',[],''],
	['PAGE','79109',jdecode('Contact'),jdecode(''),'/79109.html','true',[],'']];
var siteelementCount=98;
theSitetree.topTemplateName='Profile';
					                                                                    
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 */					                                                            
