/* [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','4436',jdecode('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','7101',jdecode('Who+Is+This+Taglieri+Guy%3F'),jdecode(''),'/7101.html','true',[],''],
	['PAGE','7128',jdecode('Want+To+Join%3F%3F'),jdecode(''),'/7128/index.html','true',[ 
		['PAGE','33711',jdecode('Want+To+Join%3F%3F+%28follow+up+page%29'),jdecode(''),'/7128/33711.html','false',[],'']
	],''],
	['PAGE','7155',jdecode('How+You+Can+Help%21'),jdecode(''),'/7155.html','true',[],''],
	['PAGE','7182',jdecode('Online+Promotion'),jdecode(''),'/7182.html','true',[],''],
	['PAGE','7209',jdecode('CD+Rep+Program'),jdecode(''),'/7209.html','true',[],''],
	['PAGE','16464',jdecode('ATM+Program'),jdecode(''),'/16464/index.html','true',[ 
		['PAGE','33730',jdecode('ATM+Program+%28follow+up+page%29'),jdecode(''),'/16464/33730.html','false',[],'']
	],''],
	['PAGE','16495',jdecode('Radio+Requests%21%21'),jdecode(''),'/16495.html','true',[],''],
	['PAGE','16526',jdecode('Current+Tour+Dates'),jdecode(''),'/16526.html','true',[],''],
	['PAGE','16557',jdecode('Appearances%21'),jdecode(''),'/16557.html','true',[],''],
	['PAGE','16588',jdecode('Posters+%26+Flyers'),jdecode(''),'/16588.html','true',[],''],
	['PAGE','16619',jdecode('Buddy+Icons'),jdecode(''),'/16619.html','true',[],''],
	['PAGE','16650',jdecode('Wall+Papers'),jdecode(''),'/16650.html','true',[],''],
	['PAGE','16681',jdecode('Banners'),jdecode(''),'/16681.html','true',[],''],
	['PAGE','16712',jdecode('Pictures'),jdecode(''),'/16712.html','true',[],''],
	['PAGE','16743',jdecode('Message+Board'),jdecode(''),'/16743.html','true',[],''],
	['PAGE','16774',jdecode('Reports'),jdecode(''),'/16774/index.html','true',[ 
		['PAGE','33752',jdecode('Reports+%28follow+up+page%29'),jdecode(''),'/16774/33752.html','false',[],'']
	],''],
	['PAGE','16805',jdecode('Links'),jdecode(''),'/16805.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Zoe';
					                                                                    
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 */					                                                            
