/* [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','54',jdecode('Home'),jdecode(''),'/54.html','true',[],''],
	['PAGE','75',jdecode('Events'),jdecode(''),'/75/index.html','true',[ 
		['PAGE','2182',jdecode('Next+Event'),jdecode(''),'/75/2182.html','true',[],''],
		['PAGE','2191',jdecode('Previous+Events'),jdecode(''),'/75/2191.html','true',[],'']
	],''],
	['PAGE','1177',jdecode('Local+News'),jdecode(''),'/1177.html','true',[],''],
	['PAGE','2451',jdecode('Classifieds'),jdecode(''),'/2451.html','true',[],''],
	['PAGE','84',jdecode('Gallery'),jdecode(''),'/84/index.html','true',[ 
		['PAGE','1420',jdecode('Daily+Pictures'),jdecode(''),'/84/1420.html','true',[],''],
		['PAGE','1982',jdecode('Exclusive+Event+Photos'),jdecode(''),'/84/1982.html','true',[],''],
		['PAGE','4940',jdecode('Klepto+NJ+Feb+2007'),jdecode(''),'/84/4940.html','true',[],''],
		['PAGE','5706',jdecode('Easter+07+MTK'),jdecode(''),'/84/5706.html','true',[],''],
		['PAGE','6159',jdecode('Memorial07+CookOut'),jdecode(''),'/84/6159.html','true',[],'']
	],''],
	['PAGE','111',jdecode('Multimedia'),jdecode(''),'/111/index.html','true',[ 
		['PAGE','120',jdecode('Music+Videos'),jdecode(''),'/111/120.html','true',[],''],
		['PAGE','129',jdecode('Comedy+Videos'),jdecode(''),'/111/129.html','true',[],''],
		['PAGE','1912',jdecode('Audio'),jdecode(''),'/111/1912.html','true',[],'']
	],''],
	['PAGE','5797',jdecode('Blog'),jdecode(''),'/5797.html','true',[],''],
	['PAGE','1398',jdecode('Guestbook'),jdecode(''),'/1398/index.html','true',[ 
		['PAGE','1397',jdecode('Read+Guestbook'),jdecode(''),'/1398/1397.html','true',[],'']
	],''],
	['PAGE','147',jdecode('Links'),jdecode(''),'/147.html','true',[],''],
	['PAGE','156',jdecode('About+Us'),jdecode(''),'/156.html','true',[],''],
	['PAGE','165',jdecode('Contact+Us'),jdecode(''),'/165/index.html','true',[ 
		['PAGE','2567',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/165/2567.html','false',[],'']
	],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Metal';
theSitetree.paletteFamily='9E9E9E';
theSitetree.keyvisualId='721';
theSitetree.keyvisualName='sekt.jpg';
theSitetree.fontsetId='144';
theSitetree.graphicsetId='155';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Metal'
,				paletteFamily: 	'9E9E9E'
,				keyvisualId: 	'721'
,				keyvisualName: 	'sekt.jpg'
,				fontsetId: 		'144'
,				graphicsetId: 	'155'
,				contentColor: 	'FFFFFF'
,				contentBGColor: '000000'
,				a_color: 		'9E9E9E'
,				b_color: 		'E8EAEE'
,				c_color: 		'000000'
,				d_color: 		'000000'
,				e_color: 		'FFFFFF'
,				f_color: 		'FFFFFF'
 			  };					                                                                    
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 */					                                                            
