/* [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','4466',jdecode('Portal+Home'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','24404',jdecode('UL+Home'),jdecode(''),'/24404.html','true',[],''],
	['PAGE','33898',jdecode('Artists'),jdecode(''),'/33898.html','true',[],''],
	['PAGE','33929',jdecode('Labels'),jdecode(''),'/33929.html','true',[],''],
	['PAGE','25704',jdecode('Ultimate+Festival'),jdecode(''),'/25704.html','true',[],''],
	['PAGE','27728',jdecode('2007+Festivals'),jdecode(''),'/27728/index.html','true',[ 
		['PAGE','31498',jdecode('Big+Chill'),jdecode(''),'/27728/31498.html','true',[],''],
		['PAGE','31529',jdecode('Bestival'),jdecode(''),'/27728/31529.html','true',[],'']
	],''],
	['PAGE','26104',jdecode('2008+Festivals'),jdecode(''),'/26104/index.html','true',[ 
		['PAGE','26135',jdecode('Gatecrasher+SSS'),jdecode(''),'/26104/26135.html','true',[],''],
		['PAGE','26404',jdecode('Sunrise'),jdecode(''),'/26104/26404.html','true',[],''],
		['PAGE','26435',jdecode('Sonar'),jdecode(''),'/26104/26435.html','true',[],''],
		['PAGE','26466',jdecode('Glade'),jdecode(''),'/26104/26466.html','true',[],''],
		['PAGE','26497',jdecode('Big+Chill'),jdecode(''),'/26104/26497.html','true',[],''],
		['PAGE','26559',jdecode('Bestival'),jdecode(''),'/26104/26559.html','true',[],''],
		['PAGE','30698',jdecode('Brighton+City'),jdecode(''),'/26104/30698.html','true',[],'']
	],''],
	['PAGE','31398',jdecode('2009+Festivals'),jdecode(''),'/31398/index.html','true',[ 
		['PAGE','32698',jdecode('Bloc'),jdecode(''),'/31398/32698.html','true',[],''],
		['PAGE','32834',jdecode('Bang+Face'),jdecode(''),'/31398/32834.html','true',[],''],
		['PAGE','33298',jdecode('Short+Circuit'),jdecode(''),'/31398/33298.html','true',[],''],
		['PAGE','32865',jdecode('Loop'),jdecode(''),'/31398/32865.html','true',[],''],
		['PAGE','32896',jdecode('Big+Chill'),jdecode(''),'/31398/32896.html','true',[],''],
		['PAGE','39298',jdecode('Bloom'),jdecode(''),'/31398/39298.html','true',[],''],
		['PAGE','39898',jdecode('One+Love'),jdecode(''),'/31398/39898.html','true',[],''],
		['PAGE','32927',jdecode('Bestival'),jdecode(''),'/31398/32927.html','true',[],'']
	],''],
	['PAGE','41898',jdecode('2010+Festivals'),jdecode(''),'/41898/index.html','true',[ 
		['PAGE','41929',jdecode('Bang+Face'),jdecode(''),'/41898/41929.html','true',[],''],
		['PAGE','41991',jdecode('Glade'),jdecode(''),'/41898/41991.html','true',[],''],
		['PAGE','41960',jdecode('Soundwave'),jdecode(''),'/41898/41960.html','true',[],''],
		['PAGE','42022',jdecode('Big+Chill'),jdecode(''),'/41898/42022.html','true',[],'']
	],''],
	['PAGE','43398',jdecode('2011+Festivals'),jdecode(''),'/43398/index.html','true',[ 
		['PAGE','43429',jdecode('Bloc'),jdecode(''),'/43398/43429.html','true',[],''],
		['PAGE','43460',jdecode('Rock+Ness'),jdecode(''),'/43398/43460.html','true',[],''],
		['PAGE','44098',jdecode('Insider+Festival'),jdecode(''),'/43398/44098.html','true',[],''],
		['PAGE','43491',jdecode('Bestival'),jdecode(''),'/43398/43491.html','true',[],''],
		['PAGE','43553',jdecode('Freeze'),jdecode(''),'/43398/43553.html','true',[],'']
	],''],
	['PAGE','44429',jdecode('Other+Articles'),jdecode(''),'/44429/index.html','true',[ 
		['PAGE','44398',jdecode('Oberon+Preview'),jdecode(''),'/44429/44398.html','true',[],'']
	],''],
	['PAGE','29798',jdecode('Gallery'),jdecode(''),'/29798.html','true',[],''],
	['PAGE','42898',jdecode('Vinyl+Sale'),jdecode(''),'/42898.html','true',[],''],
	['PAGE','24886',jdecode('ICLabs'),jdecode(''),'/24886.html','true',[],''],
	['PAGE','30343',jdecode('Making+Contact'),jdecode(''),'/30343.html','true',[],'']];
var siteelementCount=42;
theSitetree.topTemplateName='Orbit';
					                                                                    
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 */					                                                            

