/* [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('LaPrise+Byrnes+Homepage'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','110985',jdecode('Resume'),jdecode(''),'/110985.html','true',[],''],
	['PAGE','63101',jdecode('CAST+-+Trevor+Lork'),jdecode(''),'/63101.html','true',[],''],
	['PAGE','63132',jdecode('CAST+-+Dilemma+Crunchers'),jdecode(''),'/63132.html','true',[],''],
	['PAGE','72501',jdecode('CREW'),jdecode(''),'/72501.html','true',[],''],
	['PAGE','39301',jdecode('Trevor+Lork+Synopsis'),jdecode(''),'/39301/index.html','true',[ 
		['PAGE','41504',jdecode('TL+-+Characters+and+Script'),jdecode(''),'/39301/41504.html','true',[],'']
	],''],
	['PAGE','81143',jdecode('Costume+charts+TL'),jdecode(''),'/81143.html','true',[],''],
	['PAGE','40901',jdecode('Dilemma+Crunchers+Synopsis'),jdecode(''),'/40901/index.html','true',[ 
		['PAGE','26101',jdecode('DC%3A+characters+and+script'),jdecode(''),'/40901/26101.html','true',[],'']
	],''],
	['PAGE','27201',jdecode('Dilemma+Crunchers+voting'),jdecode(''),'/27201/index.html','true',[ 
		['PAGE','27701',jdecode('question+%231'),jdecode(''),'/27201/27701.html','true',[],''],
		['PAGE','27732',jdecode('Question+%232'),jdecode(''),'/27201/27732.html','true',[],''],
		['PAGE','27763',jdecode('Question+%233'),jdecode(''),'/27201/27763.html','true',[],''],
		['PAGE','27794',jdecode('Question+%234'),jdecode(''),'/27201/27794.html','true',[],''],
		['PAGE','27825',jdecode('Question+%235'),jdecode(''),'/27201/27825.html','true',[],''],
		['PAGE','27856',jdecode('Question+%236'),jdecode(''),'/27201/27856.html','true',[],''],
		['PAGE','27887',jdecode('Question+%237'),jdecode(''),'/27201/27887.html','true',[],''],
		['PAGE','27918',jdecode('Question+%238'),jdecode(''),'/27201/27918.html','true',[],''],
		['PAGE','27949',jdecode('Question+%239'),jdecode(''),'/27201/27949.html','true',[],''],
		['PAGE','27980',jdecode('Question+%2310'),jdecode(''),'/27201/27980.html','true',[],''],
		['PAGE','28011',jdecode('Question+%2311'),jdecode(''),'/27201/28011.html','true',[],''],
		['PAGE','28042',jdecode('Question+%2312'),jdecode(''),'/27201/28042.html','true',[],''],
		['PAGE','28073',jdecode('Question+%2313'),jdecode(''),'/27201/28073.html','true',[],''],
		['PAGE','28104',jdecode('Question+%2314'),jdecode(''),'/27201/28104.html','true',[],''],
		['PAGE','28135',jdecode('Question+%2315'),jdecode(''),'/27201/28135.html','true',[],''],
		['PAGE','28166',jdecode('Question+%2316'),jdecode(''),'/27201/28166.html','true',[],''],
		['PAGE','28197',jdecode('Question+%2317'),jdecode(''),'/27201/28197.html','true',[],'']
	],''],
	['PAGE','78801',jdecode('STORYBOARDS'),jdecode(''),'/78801/index.html','true',[ 
		['PAGE','78701',jdecode('TL+-+Storyboards'),jdecode(''),'/78801/78701.html','true',[],''],
		['PAGE','55401',jdecode('DC+Storyboards+1'),jdecode(''),'/78801/55401.html','true',[],''],
		['PAGE','55432',jdecode('DC+Storyboards+2'),jdecode(''),'/78801/55432.html','true',[],''],
		['PAGE','55463',jdecode('DC+Storyboards+3'),jdecode(''),'/78801/55463.html','true',[],''],
		['PAGE','55494',jdecode('DC+Storyboards+4'),jdecode(''),'/78801/55494.html','true',[],''],
		['PAGE','55525',jdecode('DC+Storyboards+5'),jdecode(''),'/78801/55525.html','true',[],''],
		['PAGE','57201',jdecode('DC+Storyboards+6'),jdecode(''),'/78801/57201.html','true',[],'']
	],''],
	['PAGE','79901',jdecode('Places+and+Things+Pix'),jdecode(''),'/79901/index.html','true',[ 
		['PAGE','77601',jdecode('MSU+College+of+Law'),jdecode(''),'/79901/77601.html','true',[],''],
		['PAGE','83401',jdecode('Benny%26%23x27%3Bs+Pizza'),jdecode(''),'/79901/83401.html','true',[],''],
		['PAGE','89704',jdecode('Planet+Ant+Theatre'),jdecode(''),'/79901/89704.html','true',[],''],
		['PAGE','90901',jdecode('Meadowbrook+Hall+and+Gardens'),jdecode(''),'/79901/90901.html','true',[],'']
	],''],
	['PAGE','40201',jdecode('Noelle+Helferich'),jdecode(''),'/40201/index.html','true',[ 
		['PAGE','44302',jdecode('Photos'),jdecode(''),'/40201/44302.html','true',[],''],
		['PAGE','46301',jdecode('Interview'),jdecode(''),'/40201/46301.html','true',[],''],
		['PAGE','47901',jdecode('Business+Cards'),jdecode(''),'/40201/47901.html','true',[],''],
		['PAGE','42301',jdecode('Recommended+Movies'),jdecode(''),'/40201/42301.html','true',[],'']
	],''],
	['PAGE','97801',jdecode('PRODUCTION+PHOTOS'),jdecode(''),'/97801.html','true',[],''],
	['PAGE','25702',jdecode('Guestbook'),jdecode(''),'/25702/index.html','true',[ 
		['PAGE','25703',jdecode('Read+Guestbook'),jdecode(''),'/25702/25703.html','true',[],'']
	],''],
	['PAGE','29401',jdecode('LINKS'),jdecode(''),'/29401.html','true',[],''],
	['PAGE','51001',jdecode('Merchandise'),jdecode(''),'/51001.html','true',[],''],
	['PAGE','108339',jdecode('Siggi+the+Seahorse'),jdecode(''),'/108339.html','true',[],'']];
var siteelementCount=52;
theSitetree.topTemplateName='Stylus';
					                                                                    
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 */					                                                            
