/* [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('Emerald+Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','45265',jdecode('World'),jdecode(''),'/45265/index.html','true',[ 
		['PAGE','45389',jdecode('World+of+Darkness'),jdecode(''),'/45265/45389.html','true',[],''],
		['PAGE','160856',jdecode('Emerald+Domain'),jdecode(''),'/45265/160856.html','true',[],''],
		['PAGE','45451',jdecode('Elysia'),jdecode(''),'/45265/45451.html','true',[],'']
	],''],
	['PAGE','45296',jdecode('Denizens'),jdecode(''),'/45296/index.html','true',[ 
		['PAGE','45513',jdecode('The+Camarilla'),jdecode(''),'/45296/45513.html','true',[],''],
		['PAGE','94635',jdecode('*+Cam+Traditions'),jdecode(''),'/45296/94635.html','true',[],''],
		['PAGE','94666',jdecode('*+Cam+Court'),jdecode(''),'/45296/94666.html','true',[],''],
		['PAGE','45575',jdecode('The+Independents'),jdecode(''),'/45296/45575.html','true',[],''],
		['PAGE','69501',jdecode('The+Anarchs'),jdecode(''),'/45296/69501.html','true',[],''],
		['PAGE','45544',jdecode('The+Sabbat'),jdecode(''),'/45296/45544.html','true',[],''],
		['PAGE','52129',jdecode('Personalities'),jdecode(''),'/45296/52129.html','true',[],''],
		['PAGE','52001',jdecode('Antagonists'),jdecode(''),'/45296/52001.html','true',[],'']
	],''],
	['PAGE','68201',jdecode('Rules'),jdecode(''),'/68201/index.html','true',[ 
		['PAGE','179235',jdecode('Rules+of+LARP'),jdecode(''),'/68201/179235.html','true',[],''],
		['PAGE','45327',jdecode('The+Basics'),jdecode(''),'/68201/45327.html','true',[],''],
		['PAGE','52097',jdecode('Character+Creation'),jdecode(''),'/68201/52097.html','true',[],''],
		['PAGE','178948',jdecode('*+Connect+the+Dots'),jdecode(''),'/68201/178948.html','true',[],''],
		['PAGE','179141',jdecode('*+Those+Who+Serve'),jdecode(''),'/68201/179141.html','true',[],''],
		['PAGE','89101',jdecode('House+Rules'),jdecode(''),'/68201/89101.html','true',[],''],
		['PAGE','179795',jdecode('*+Mad+Skills'),jdecode(''),'/68201/179795.html','true',[],''],
		['PAGE','179826',jdecode('*+Craft+%26+Seek'),jdecode(''),'/68201/179826.html','true',[],''],
		['PAGE','179857',jdecode('*+Clan+Specific'),jdecode(''),'/68201/179857.html','true',[],''],
		['PAGE','174806',jdecode('Feeding'),jdecode(''),'/68201/174806.html','true',[],''],
		['PAGE','52033',jdecode('Status'),jdecode(''),'/68201/52033.html','true',[],''],
		['PAGE','146928',jdecode('Boons'),jdecode(''),'/68201/146928.html','true',[],''],
		['PAGE','52065',jdecode('Influences'),jdecode(''),'/68201/52065.html','true',[],''],
		['PAGE','61601',jdecode('*+Influence+Grid'),jdecode(''),'/68201/61601.html','true',[],''],
		['PAGE','145651',jdecode('*+Influence+FAQs'),jdecode(''),'/68201/145651.html','true',[],''],
		['PAGE','52161',jdecode('Humanity'),jdecode(''),'/68201/52161.html','true',[],''],
		['PAGE','111101',jdecode('Combat'),jdecode(''),'/68201/111101.html','true',[],'']
	],''],
	['PAGE','58504',jdecode('Players'),jdecode(''),'/58504/index.html','true',[ 
		['PAGE','58536',jdecode('Malkie+Madness'),jdecode(''),'/58504/58536.html','true',[],''],
		['PAGE','80301',jdecode('Made+Men'),jdecode(''),'/58504/80301.html','true',[],''],
		['PAGE','64601',jdecode('Clan+of+Kings'),jdecode(''),'/58504/64601.html','true',[],''],
		['PAGE','71201',jdecode('Lying+With+Wolves'),jdecode(''),'/58504/71201.html','true',[],''],
		['PAGE','167491',jdecode('Clan+of+the+Rose'),jdecode(''),'/58504/167491.html','true',[],''],
		['PAGE','167991',jdecode('Warrior+Poets'),jdecode(''),'/58504/167991.html','true',[],''],
		['PAGE','168691',jdecode('Those+Who+Serve'),jdecode(''),'/58504/168691.html','true',[],''],
		['PAGE','195742',jdecode('Curse%3A+Setites'),jdecode(''),'/58504/195742.html','true',[],''],
		['PAGE','196545',jdecode('Curse%3A+Lasombra'),jdecode(''),'/58504/196545.html','true',[],''],
		['PAGE','196702',jdecode('Toreador+Guide'),jdecode(''),'/58504/196702.html','true',[],''],
		['PAGE','202142',jdecode('Nos-Tube'),jdecode(''),'/58504/202142.html','true',[],'']
	],''],
	['PAGE','45358',jdecode('Storytellers'),jdecode(''),'/45358/index.html','true',[ 
		['PAGE','79501',jdecode('Directions+to+Game'),jdecode(''),'/45358/79501.html','true',[],''],
		['PAGE','94001',jdecode('Storyteller+Essays'),jdecode(''),'/45358/94001.html','true',[],''],
		['PAGE','161249',jdecode('*+PoA+1+-+Death'),jdecode(''),'/45358/161249.html','true',[],''],
		['PAGE','161280',jdecode('*+PoA+2+-+Elders'),jdecode(''),'/45358/161280.html','true',[],''],
		['PAGE','161349',jdecode('*+DGA+0+-+Chargen'),jdecode(''),'/45358/161349.html','true',[],''],
		['PAGE','160956',jdecode('*+DGA+1+-+Status'),jdecode(''),'/45358/160956.html','true',[],''],
		['PAGE','161056',jdecode('*+DGA+2+-+Malkavians'),jdecode(''),'/45358/161056.html','true',[],''],
		['PAGE','161087',jdecode('*+DGA+3+-+Play+Dead'),jdecode(''),'/45358/161087.html','true',[],''],
		['PAGE','161156',jdecode('*+DGA+4+-+Feeding'),jdecode(''),'/45358/161156.html','true',[],''],
		['PAGE','161187',jdecode('*+DGA+5+-+Havens'),jdecode(''),'/45358/161187.html','true',[],''],
		['PAGE','161218',jdecode('*+DGA+6+-+Combat'),jdecode(''),'/45358/161218.html','true',[],''],
		['PAGE','190945',jdecode('*+DGA+7+-+Humanity'),jdecode(''),'/45358/190945.html','true',[],''],
		['PAGE','204177',jdecode('*+DGA+8+-+NPCs'),jdecode(''),'/45358/204177.html','true',[],''],
		['PAGE','94501',jdecode('Site+Archive'),jdecode(''),'/45358/94501.html','true',[],'']
	],''],
	['PAGE','68301',jdecode('Community'),jdecode(''),'/68301/index.html','true',[ 
		['PAGE','125510',jdecode('Message+Board'),jdecode(''),'/68301/125510.html','true',[],''],
		['PAGE','55901',jdecode('Event+Guidelines'),jdecode(''),'/68301/55901.html','true',[],''],
		['PAGE','187442',jdecode('2008+Event+Photos'),jdecode(''),'/68301/187442.html','true',[],''],
		['PAGE','176451',jdecode('2007+Event+Photos'),jdecode(''),'/68301/176451.html','true',[],''],
		['PAGE','161550',jdecode('2006+Event+Pictures'),jdecode(''),'/68301/161550.html','true',[],''],
		['PAGE','110202',jdecode('2005+Event+Pictures'),jdecode(''),'/68301/110202.html','true',[],''],
		['PAGE','75605',jdecode('2004+Event+Pictures'),jdecode(''),'/68301/75605.html','true',[],''],
		['PAGE','68332',jdecode('Links'),jdecode(''),'/68301/68332.html','true',[],'']
	],''],
	['PAGE','95401',jdecode('Appendices'),jdecode(''),'/95401/index.html','true',[ 
		['PAGE','95463',jdecode('I%3A+General+Lore'),jdecode(''),'/95401/95463.html','true',[],''],
		['PAGE','95432',jdecode('II%3A+Clan+Lore'),jdecode(''),'/95401/95432.html','true',[],''],
		['PAGE','69801',jdecode('III%3A+Documents'),jdecode(''),'/95401/69801.html','true',[],''],
		['PAGE','122410',jdecode('IV%3A+Lexicon'),jdecode(''),'/95401/122410.html','true',[],''],
		['PAGE','132910',jdecode('V%3A+Cities+of+the+Dead'),jdecode(''),'/95401/132910.html','true',[],''],
		['PAGE','192942',jdecode('VI%3A+Book+of+Nod+I'),jdecode(''),'/95401/192942.html','true',[],''],
		['PAGE','193642',jdecode('VII%3A+Book+of+Nod+II'),jdecode(''),'/95401/193642.html','true',[],''],
		['PAGE','193673',jdecode('VIII%3A+Book+of+Nod+III'),jdecode(''),'/95401/193673.html','true',[],'']
	],''],
	['PAGE','173443',jdecode('Site+Map'),jdecode(''),'/173443.html','true',[],'']];
var siteelementCount=78;
theSitetree.topTemplateName='Neon';
					                                                                    
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 */					                                                            
