/* [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','14801',jdecode('tango+news'),jdecode(''),'/14801.html','true',[],''],
	['PAGE','4559',jdecode('about+us'),jdecode(''),'/4559/index.html','true',[ 
		['PAGE','16799',jdecode('tango+%28follow+up+page%29'),jdecode(''),'/4559/16799.html','false',[],'']
	],''],
	['PAGE','47872',jdecode('special+events'),jdecode(''),'/47872.html','true',[],''],
	['PAGE','13732',jdecode('tango+times'),jdecode(''),'/13732/index.html','true',[ 
		['PAGE','14832',jdecode('regular+schedule'),jdecode(''),'/13732/14832.html','true',[],'']
	],''],
	['PAGE','14663',jdecode('tango+clubs'),jdecode(''),'/14663.html','true',[],''],
	['PAGE','43686',jdecode('tango+teachers'),jdecode(''),'/43686.html','true',[],''],
	['PAGE','21201',jdecode('tango+talk'),jdecode(''),'/21201.html','true',[],''],
	['PAGE','19101',jdecode('go22ip'),jdecode(''),'/19101/index.html','true',[ 
		['PAGE','33806',jdecode('Weblog'),jdecode(''),'/19101/33806.html','true',[],'']
	],''],
	['PAGE','17349',jdecode('tangozine'),jdecode(''),'/17349.html','true',[],''],
	['PAGE','14167',jdecode('+find+partners'),jdecode(''),'/14167.html','true',[],''],
	['PAGE','14168',jdecode('guestbook'),jdecode(''),'/14168/index.html','true',[ 
		['PAGE','33729',jdecode('tango+tales'),jdecode(''),'/14168/33729.html','true',[],'']
	],''],
	['PAGE','14258',jdecode('tango+22+tips'),jdecode(''),'/14258.html','true',[],''],
	['PAGE','15405',jdecode('technique'),jdecode(''),'/15405/index.html','true',[ 
		['PAGE','17201',jdecode('technique+2'),jdecode(''),'/15405/17201.html','true',[],''],
		['PAGE','17250',jdecode('embrace'),jdecode(''),'/15405/17250.html','true',[],'']
	],''],
	['PAGE','20702',jdecode('takes22tango+album'),jdecode(''),'/20702/index.html','true',[ 
		['PAGE','20502',jdecode('tango22shots'),jdecode(''),'/20702/20502.html','true',[],''],
		['PAGE','20397',jdecode('tango+ball'),jdecode(''),'/20702/20397.html','true',[],'']
	],''],
	['PAGE','31133',jdecode('tango+tunes'),jdecode(''),'/31133.html','true',[],''],
	['PAGE','21232',jdecode('tango+togs'),jdecode(''),'/21232.html','true',[],''],
	['PAGE','17033',jdecode('tango+fun'),jdecode(''),'/17033/index.html','true',[ 
		['PAGE','18827',jdecode('tango+quiz'),jdecode(''),'/17033/18827.html','true',[],''],
		['PAGE','20362',jdecode('tango+album'),jdecode(''),'/17033/20362.html','true',[],'']
	],''],
	['PAGE','20313',jdecode('tango+al+fresco'),jdecode(''),'/20313.html','true',[],''],
	['PAGE','14632',jdecode('downloads'),jdecode(''),'/14632.html','true',[],''],
	['PAGE','17002',jdecode('links'),jdecode(''),'/17002.html','true',[],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Orbit';
					                                                                    
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 */					                                                            
