/* [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','4519',jdecode('Home'),jdecode(''),'/4519.html','true',[],''],
	['PAGE','31918',jdecode('Site+Map'),jdecode(''),'/31918.html','true',[],''],
	['PAGE','17702',jdecode('Job+description'),jdecode(''),'/17702.html','true',[],''],
	['PAGE','18202',jdecode('Qualifications%2FSkills'),jdecode(''),'/18202.html','true',[],''],
	['PAGE','22401',jdecode('Salary+%26+Benefits'),jdecode(''),'/22401.html','true',[],''],
	['PAGE','31850',jdecode('Au+Pair+Summer+Jobs+%28UK%29'),jdecode(''),'/31850.html','true',[],''],
	['PAGE','29950',jdecode('Aupairs+Espa%F1ol+Y+Familias+Espa%F1olas+'),jdecode(''),'/29950.html','true',[],''],
	['PAGE','30150',jdecode('Aupair+Fran%E7ais'),jdecode(''),'/30150.html','true',[],''],
	['PAGE','30251',jdecode('Aupair+Italiano'),jdecode(''),'/30251.html','true',[],''],
	['PAGE','30450',jdecode('Nederlandse+Aupair'),jdecode(''),'/30450.html','true',[],''],
	['PAGE','28250',jdecode('Au+Pair+in+Germany'),jdecode(''),'/28250.html','true',[],''],
	['PAGE','31568',jdecode('Au+Pair+in+Spain'),jdecode(''),'/31568.html','true',[],''],
	['PAGE','29650',jdecode('Polski+Aupair'),jdecode(''),'/29650.html','true',[],''],
	['PAGE','22901',jdecode('UK+Families'),jdecode(''),'/22901.html','true',[],''],
	['PAGE','23214',jdecode('Fees'),jdecode(''),'/23214.html','true',[],''],
	['PAGE','22990',jdecode('UK+Facts'),jdecode(''),'/22990.html','true',[],''],
	['PAGE','4684',jdecode('Contact+UK'),jdecode(''),'/4684.html','true',[],''],
	['PAGE','4657',jdecode('Links+%281%29'),jdecode(''),'/4657.html','true',[],''],
	['PAGE','23814',jdecode('Links+%282%29'),jdecode(''),'/23814.html','true',[],''],
	['PAGE','25450',jdecode('Links+%283%29'),jdecode(''),'/25450.html','true',[],''],
	['PAGE','26287',jdecode('Links+%284%29'),jdecode(''),'/26287.html','true',[],''],
	['PAGE','29050',jdecode('Links+%285%29'),jdecode(''),'/29050.html','true',[],''],
	['PAGE','31050',jdecode('Nanny+Agencies'),jdecode(''),'/31050.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            
