/* [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','67935',jdecode('Action+Plan+for+KPFA'),jdecode(''),'/67935.html','true',[],''],
	['PAGE','71277',jdecode('KPFA+and+Mumia'),jdecode(''),'/71277.html','true',[],''],
	['PAGE','67635',jdecode('KPFA+Town+Hall'),jdecode(''),'/67635.html','true',[],''],
	['PAGE','13201',jdecode('Bill+Mandel+and+KPFA'),jdecode(''),'/13201/index.html','true',[ 
		['PAGE','51128',jdecode('Who+is+Bill+Mandel%3F'),jdecode(''),'/13201/51128.html','true',[],''],
		['PAGE','61200',jdecode('PETITION+for+Bill+Mandel'),jdecode(''),'/13201/61200.html','true',[],''],
		['PAGE','57928',jdecode('NEW%3A+On+Bill+Mandel'),jdecode(''),'/13201/57928.html','true',[],''],
		['PAGE','60128',jdecode('NEW%3A+CdP+on+Mandel'),jdecode(''),'/13201/60128.html','true',[],''],
		['PAGE','60228',jdecode('NEW%3A+Pinkney+on+Mandel'),jdecode(''),'/13201/60228.html','true',[],''],
		['PAGE','22216',jdecode('Leah+Garchik+on+Bill'),jdecode(''),'/13201/22216.html','true',[],''],
		['PAGE','31529',jdecode('East+Bay+Express+on+Bill'),jdecode(''),'/13201/31529.html','true',[],''],
		['PAGE','32229',jdecode('Jeffrey+Blankfort+on+Bill'),jdecode(''),'/13201/32229.html','true',[],''],
		['PAGE','43280',jdecode('Larry+Pinkney+on+Bill'),jdecode(''),'/13201/43280.html','true',[],''],
		['PAGE','43480',jdecode('Bill+on+Larry+Pinkney'),jdecode(''),'/13201/43480.html','true',[],''],
		['PAGE','65104',jdecode('Photos+-+12%2F7%2F05+picket'),jdecode(''),'/13201/65104.html','true',[],''],
		['PAGE','62334',jdecode('Photos+-+11%2F29%2F05+picket'),jdecode(''),'/13201/62334.html','true',[],''],
		['PAGE','37580',jdecode('Photos+-+4%2F30%2F05++picket'),jdecode(''),'/13201/37580.html','true',[],''],
		['PAGE','42980',jdecode('Press+release+-+5%2F5%2F05'),jdecode(''),'/13201/42980.html','true',[],''],
		['PAGE','42380',jdecode('Press+Release+-+4%2F28%2F05'),jdecode(''),'/13201/42380.html','true',[],'']
	],''],
	['PAGE','16732',jdecode('Robert+Knight+and+WBAI'),jdecode(''),'/16732/index.html','true',[ 
		['PAGE','16701',jdecode('Attack+on+Robert+Knight'),jdecode(''),'/16732/16701.html','true',[],''],
		['PAGE','15704',jdecode('Osman+on+Robert+Knight'),jdecode(''),'/16732/15704.html','true',[],'']
	],''],
	['PAGE','46788',jdecode('Elison+on+the+Patriot+Act'),jdecode(''),'/46788.html','true',[],''],
	['PAGE','67466',jdecode('Anti-War+Demo+Photos'),jdecode(''),'/67466/index.html','true',[ 
		['PAGE','56528',jdecode('September+24%2C+2005'),jdecode(''),'/67466/56528.html','true',[],''],
		['PAGE','25516',jdecode('March+19%2C+2005'),jdecode(''),'/67466/25516.html','true',[],'']
	],''],
	['PAGE','22816',jdecode('Intl+Women%26%23x27%3Bs+Day+photos'),jdecode(''),'/22816.html','true',[],''],
	['PAGE','17938',jdecode('Confidential+Archives'),jdecode(''),'/17938/index.html','true',[ 
		['PAGE','64646',jdecode('Confidential+%2316+-+12%2F7%2F05'),jdecode(''),'/17938/64646.html','true',[],''],
		['PAGE','64134',jdecode('Confidential+%2315+-+12%2F2%2F05'),jdecode(''),'/17938/64134.html','true',[],''],
		['PAGE','54828',jdecode('Confidential+%2314+-+8%2F14%2F05'),jdecode(''),'/17938/54828.html','true',[],''],
		['PAGE','53428',jdecode('Confidential+%2313+-+8%2F07%2F05'),jdecode(''),'/17938/53428.html','true',[],''],
		['PAGE','51928',jdecode('Confidential+%2312+-+7%2F11%2F05'),jdecode(''),'/17938/51928.html','true',[],''],
		['PAGE','49091',jdecode('Confidential+%2311+-+6%2F10%2F05'),jdecode(''),'/17938/49091.html','true',[],''],
		['PAGE','44695',jdecode('Confidential+%2310+-+5%2F10%2F05'),jdecode(''),'/17938/44695.html','true',[],''],
		['PAGE','34380',jdecode('Confidential+%239+-+3%2F27%2F05'),jdecode(''),'/17938/34380.html','true',[],''],
		['PAGE','33768',jdecode('Confidential+%238+-+3%2F20%2F05'),jdecode(''),'/17938/33768.html','true',[],''],
		['PAGE','26716',jdecode('Confidential+%237+-+3%2F12%2F05'),jdecode(''),'/17938/26716.html','true',[],''],
		['PAGE','20538',jdecode('Confidential+%236+-+3%2F02%2F05'),jdecode(''),'/17938/20538.html','true',[],''],
		['PAGE','18701',jdecode('Confidential+%235+-+2%2F17%2F05'),jdecode(''),'/17938/18701.html','true',[],''],
		['PAGE','17901',jdecode('Confidential+%234+-+2%2F06%2F05'),jdecode(''),'/17938/17901.html','true',[],''],
		['PAGE','13432',jdecode('Confidential+%233+-+1%2F30%2F05'),jdecode(''),'/17938/13432.html','true',[],''],
		['PAGE','13463',jdecode('Confidential+%232+-+1%2F24%2F05'),jdecode(''),'/17938/13463.html','true',[],''],
		['PAGE','13494',jdecode('Confidential+%231+-+1%2F17%2F05'),jdecode(''),'/17938/13494.html','true',[],'']
	],''],
	['PAGE','21753',jdecode('About+Riva'),jdecode(''),'/21753.html','true',[],''],
	['PAGE','15101',jdecode('Contact'),jdecode(''),'/15101.html','true',[],'']];
var siteelementCount=47;
theSitetree.topTemplateName='Lines';
					                                                                    
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 */					                                                            
