/* [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','4520',jdecode('Home'),jdecode(''),'/4520.html','true',[],''],
	['PAGE','10086',jdecode('About+Us'),jdecode(''),'/10086/index.html','true',[ 
		['PAGE','39709',jdecode('Our+Clients%26%23x27%3B+Feedback'),jdecode(''),'/10086/39709.html','true',[],''],
		['PAGE','10113',jdecode('Corporate+Events'),jdecode(''),'/10086/10113.html','true',[],''],
		['PAGE','10483',jdecode('Past+Events'),jdecode(''),'/10086/10483.html','true',[],'']
	],''],
	['PAGE','10510',jdecode('Dance+Styles'),jdecode(''),'/10510/index.html','true',[ 
		['PAGE','10537',jdecode('What+is+Samba'),jdecode(''),'/10510/10537.html','true',[],''],
		['PAGE','10564',jdecode('What+Is+Lambada'),jdecode(''),'/10510/10564.html','true',[],''],
		['PAGE','10618',jdecode('What+Is+Samba+Axe'),jdecode(''),'/10510/10618.html','true',[],''],
		['PAGE','10591',jdecode('What+Is+Capoeira'),jdecode(''),'/10510/10591.html','true',[],'']
	],''],
	['PAGE','10645',jdecode('Meet+The+Dancers'),jdecode(''),'/10645.html','true',[],''],
	['PAGE','14737',jdecode('Media'),jdecode(''),'/14737/index.html','true',[ 
		['PAGE','10140',jdecode('Videos'),jdecode(''),'/14737/10140.html','true',[],''],
		['PAGE','88964',jdecode('Tesco+PLC%2C+show+at+excel+'),jdecode(''),'/14737/88964.html','true',[],''],
		['PAGE','14512',jdecode('Photos+-+Redbrige+Show'),jdecode(''),'/14737/14512.html','true',[],''],
		['PAGE','16394',jdecode('Photos+-+Nylon'),jdecode(''),'/14737/16394.html','true',[],''],
		['PAGE','39910',jdecode('Photos+-+Capoeira'),jdecode(''),'/14737/39910.html','true',[],'']
	],''],
	['PAGE','10402',jdecode('Events+%26+Classes'),jdecode(''),'/10402/index.html','true',[ 
		['PAGE','10456',jdecode('Dance+Classes'),jdecode(''),'/10402/10456.html','true',[],'']
	],''],
	['PAGE','10834',jdecode('Capoeira+Espor%E3o'),jdecode(''),'/10834/index.html','true',[ 
		['PAGE','10861',jdecode('Capoeira+Basics'),jdecode(''),'/10834/10861.html','true',[],''],
		['PAGE','18222',jdecode('Workshop+Hyde+Park+2003'),jdecode(''),'/10834/18222.html','true',[],''],
		['PAGE','63728',jdecode('Classes'),jdecode(''),'/10834/63728.html','true',[],'']
	],''],
	['PAGE','13716',jdecode('Porto+Seguro'),jdecode(''),'/13716/index.html','true',[ 
		['PAGE','14008',jdecode('The+beach'),jdecode(''),'/13716/14008.html','true',[],''],
		['PAGE','14035',jdecode('The+History'),jdecode(''),'/13716/14035.html','true',[],''],
		['PAGE','19737',jdecode('Carnival+2004'),jdecode(''),'/13716/19737.html','true',[],'']
	],''],
	['PAGE','9302',jdecode('Guestbook'),jdecode(''),'/9302/index.html','true',[ 
		['PAGE','9303',jdecode('Read+Guestbook'),jdecode(''),'/9302/9303.html','true',[],'']
	],''],
	['PAGE','12716',jdecode('Contact+Us'),jdecode(''),'/12716/index.html','true',[ 
		['PAGE','10888',jdecode('Bookings-Info'),jdecode(''),'/12716/10888/index.html','true',[ 
			['PAGE','83745',jdecode('Bookings-Info+%28follow+up+page%29'),jdecode(''),'/12716/10888/83745.html','false',[],'']
		],''],
		['PAGE','12770',jdecode('Links'),jdecode(''),'/12716/12770.html','true',[],''],
		['PAGE','12743',jdecode('Mail+List'),jdecode(''),'/12716/12743.html','true',[],'']
	],'']];
var siteelementCount=34;
theSitetree.topTemplateName='Round';
					                                                                    
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 */					                                                            
