/* [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','18219',jdecode('What+is+Muni+doing%3F'),jdecode(''),'/18219.html','true',[],''],
	['PAGE','31962',jdecode('Muni%26%23x27%3Bs+Service+Cuts'),jdecode(''),'/31962.html','true',[],''],
	['PAGE','18416',jdecode('What%26%23x27%3Bs+a+Fare+Strike%3F'),jdecode(''),'/18416.html','true',[],''],
	['PAGE','18447',jdecode('Fare+Strikes+Work'),jdecode(''),'/18447.html','true',[],''],
	['PAGE','35123',jdecode('September+Rally'),jdecode(''),'/35123.html','true',[],''],
	['PAGE','19401',jdecode('August+Speak+Out'),jdecode(''),'/19401.html','true',[],''],
	['PAGE','39962',jdecode('SF+State'),jdecode(''),'/39962.html','true',[],''],
	['PAGE','42099',jdecode('Letters+to+the+Editor'),jdecode(''),'/42099.html','true',[],''],
	['PAGE','47617',jdecode('Updates'),jdecode(''),'/47617/index.html','true',[ 
		['PAGE','45250',jdecode('Bulletin+%2313+-+10%2F21%2F05'),jdecode(''),'/47617/45250.html','true',[],''],
		['PAGE','43099',jdecode('Bulletin+%2312+-+10%2F11%2F05'),jdecode(''),'/47617/43099.html','true',[],''],
		['PAGE','41082',jdecode('Bulletin+%2311+-+9%2F26%2F05'),jdecode(''),'/47617/41082.html','true',[],''],
		['PAGE','41113',jdecode('Bulletin+%2310+-+9%2F22%2F05'),jdecode(''),'/47617/41113.html','true',[],''],
		['PAGE','34016',jdecode('Bulletin+%239+-+9%2F19%2F05'),jdecode(''),'/47617/34016.html','true',[],''],
		['PAGE','31323',jdecode('Bulletin+%238+-+9%2F12%2F05'),jdecode(''),'/47617/31323.html','true',[],''],
		['PAGE','28323',jdecode('Bulletin+%237+-+9%2F8%2F05'),jdecode(''),'/47617/28323.html','true',[],''],
		['PAGE','27523',jdecode('Bulletin+%236+-+9%2F6%2F05'),jdecode(''),'/47617/27523.html','true',[],''],
		['PAGE','24701',jdecode('Bulletin+%235+-+9%2F2%2F05'),jdecode(''),'/47617/24701.html','true',[],''],
		['PAGE','24101',jdecode('Bulletin+%234++-+9%2F1%2F05'),jdecode(''),'/47617/24101.html','true',[],'']
	],''],
	['PAGE','25301',jdecode('Fare+Strike+Flyers'),jdecode(''),'/25301.html','true',[],''],
	['PAGE','26201',jdecode('Fare+Strike+Videos'),jdecode(''),'/26201.html','true',[],''],
	['PAGE','8328',jdecode('Legal+Team'),jdecode(''),'/8328.html','true',[],''],
	['PAGE','8355',jdecode('Links'),jdecode(''),'/8355.html','true',[],''],
	['PAGE','22501',jdecode('Contact+Us'),jdecode(''),'/22501.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Deepcolor';
					                                                                    
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 */					                                                            
