/* [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('SHOWS'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','138309',jdecode('23+Jan'),jdecode(''),'/138309.html','true',[],''],
	['PAGE','138054',jdecode('19+Jan'),jdecode(''),'/138054.html','true',[],''],
	['PAGE','137809',jdecode('17+Jan'),jdecode(''),'/137809.html','true',[],''],
	['PAGE','137509',jdecode('16+Jan'),jdecode(''),'/137509.html','true',[],''],
	['PAGE','137328',jdecode('12+Jan'),jdecode(''),'/137328.html','true',[],''],
	['PAGE','136509',jdecode('8+Dec'),jdecode(''),'/136509.html','true',[],''],
	['PAGE','135954',jdecode('30+Nov'),jdecode(''),'/135954.html','true',[],''],
	['PAGE','135713',jdecode('29+Nov'),jdecode(''),'/135713.html','true',[],''],
	['PAGE','135344',jdecode('22+Nov'),jdecode(''),'/135344.html','true',[],''],
	['PAGE','134909',jdecode('9+Nov'),jdecode(''),'/134909.html','true',[],''],
	['PAGE','134158',jdecode('7+Nov'),jdecode(''),'/134158.html','true',[],''],
	['PAGE','133909',jdecode('4+Nov'),jdecode(''),'/133909.html','true',[],''],
	['PAGE','133709',jdecode('28+Oct'),jdecode(''),'/133709.html','true',[],''],
	['PAGE','131662',jdecode('20+Oct'),jdecode(''),'/131662.html','true',[],''],
	['PAGE','131409',jdecode('18+Oct'),jdecode(''),'/131409.html','true',[],''],
	['PAGE','130609',jdecode('6+Oct'),jdecode(''),'/130609.html','true',[],''],
	['PAGE','7239',jdecode('join'),jdecode(''),'/7239/index.html','true',[ 
		['PAGE','27888',jdecode('join+%28follow+up+page%29'),jdecode(''),'/7239/27888.html','false',[],'']
	],''],
	['PAGE','9738',jdecode('about'),jdecode(''),'/9738.html','true',[],''],
	['PAGE','11090',jdecode('artists+'),jdecode(''),'/11090.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            

