/* [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('Wichita+DJ+%3A+Dance+Party+Music+%3A+Wedding+DJ%26%23x27%3Bs+%3A+All+Events+%3A+All+Areas'),jdecode(''),'/4436/index.html','true',[ 
		['PAGE','214406',jdecode('Wichita+DJ+%3A+Dance+Party+Music+%3A+Wedding+DJ%26%23x27%3Bs+%3A+All+Events+%3A+All+Areas+%28follow+up+page%29'),jdecode(''),'/4436/214406.html','false',[],''],
		['PAGE','16682',jdecode('INFORMATION'),jdecode(''),'/4436/16682.html','true',[],'']
	],''],
	['PAGE','47501',jdecode('MUSIC'),jdecode(''),'/47501.html','true',[],''],
	['PAGE','18801',jdecode('DJ+%2F+FX+%2F+Lighting+'),jdecode(''),'/18801.html','true',[],''],
	['PAGE','21701',jdecode('PREMIUM+DJ+'),jdecode(''),'/21701/index.html','true',[ 
		['PAGE','214946',jdecode('PREMIUM+DJ+PACK+%28follow+up+page%29'),jdecode(''),'/21701/214946.html','false',[],'']
	],''],
	['PAGE','190103',jdecode('PLANNER'),jdecode(''),'/190103/index.html','true',[ 
		['PAGE','213335',jdecode('RECEPTION+PLANNER+%28follow+up+page%29'),jdecode(''),'/190103/213335.html','false',[],'']
	],''],
	['PAGE','19801',jdecode('Live+Music+Mix'),jdecode(''),'/19801.html','true',[],''],
	['PAGE','17501',jdecode('A%2FV+RENTAL++'),jdecode(''),'/17501.html','true',[],''],
	['PAGE','61101',jdecode('BEST+PARTY+DJ%26%23x27%3BS'),jdecode(''),'/61101.html','true',[],''],
	['PAGE','121840',jdecode('Entertainment'),jdecode(''),'/121840.html','true',[],''],
	['PAGE','19501',jdecode('Testimonials'),jdecode(''),'/19501.html','true',[],''],
	['PAGE','17401',jdecode('Health+Fitness'),jdecode(''),'/17401.html','true',[],''],
	['PAGE','18701',jdecode('GUITARS+%2F+AMPS'),jdecode(''),'/18701.html','true',[],''],
	['PAGE','17572',jdecode('Drum+Shop'),jdecode(''),'/17572.html','true',[],''],
	['PAGE','17603',jdecode('Fueled+Sport'),jdecode(''),'/17603/index.html','true',[ 
		['PAGE','193042',jdecode('Fueled+Sport+%28follow+up+page%29'),jdecode(''),'/17603/193042.html','false',[],'']
	],''],
	['PAGE','83903',jdecode('Skateboard'),jdecode(''),'/83903.html','true',[],''],
	['PAGE','121804',jdecode('Technology'),jdecode(''),'/121804.html','true',[],''],
	['PAGE','16655',jdecode('SPECIAL+EVENTS'),jdecode(''),'/16655.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Explore';
					                                                                    
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 */					                                                            

