/* [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('Front+Page'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','7101',jdecode('About+us+and+you'),jdecode(''),'/7101.html','true',[],''],
	['PAGE','7128',jdecode('Services'),jdecode(''),'/7128.html','true',[],''],
	['PAGE','7155',jdecode('News+and+Upcoming+Events'),jdecode(''),'/7155.html','true',[],''],
	['PAGE','7182',jdecode('Jobs'),jdecode(''),'/7182.html','true',[],''],
	['PAGE','7209',jdecode('Contacts'),jdecode(''),'/7209.html','true',[],''],
	['PAGE','13901',jdecode('Public+Access+Congressional+Legislation'),jdecode(''),'/13901.html','true',[],''],
	['PAGE','13932',jdecode('Announcements'),jdecode(''),'/13932.html','true',[],''],
	['PAGE','13963',jdecode('Producer%2FVideo+Show+Updates'),jdecode(''),'/13963.html','true',[],''],
	['PAGE','25774',jdecode('Technology'),jdecode(''),'/25774.html','true',[],''],
	['PAGE','25738',jdecode('Entertainment'),jdecode(''),'/25738.html','true',[],''],
	['PAGE','43504',jdecode('National'),jdecode(''),'/43504.html','true',[],''],
	['PAGE','25702',jdecode('Top+News'),jdecode(''),'/25702.html','true',[],''],
	['PAGE','13994',jdecode('New+and+Best+of+Baltimore'),jdecode(''),'/13994.html','true',[],''],
	['PAGE','25810',jdecode('LINKS'),jdecode(''),'/25810.html','true',[],''],
	['PAGE','32902',jdecode('Channel+75+Schedule+Summary'),jdecode(''),'/32902.html','true',[],''],
	['PAGE','34202',jdecode('Discussion+Groups'),jdecode(''),'/34202.html','true',[],''],
	['PAGE','34233',jdecode('Reports'),jdecode(''),'/34233.html','true',[],''],
	['PAGE','34264',jdecode('Show+and+Producer+Directory'),jdecode(''),'/34264.html','true',[],''],
	['PAGE','34326',jdecode('Advertising+Information'),jdecode(''),'/34326.html','true',[],''],
	['PAGE','34295',jdecode('Audio%2FVisual+'),jdecode(''),'/34295.html','true',[],''],
	['PAGE','38305',jdecode('Past+Public+Access+CH+75+TV+Schedule+Summary'),jdecode(''),'/38305.html','true',[],''],
	['PAGE','39302',jdecode('Grants+and+Funding'),jdecode(''),'/39302.html','true',[],''],
	['PAGE','69023',jdecode('Science+%26+Research'),jdecode(''),'/69023.html','true',[],''],
	['PAGE','72819',jdecode('Health'),jdecode(''),'/72819.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            
