/* [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','4518',jdecode('Baby+Glider+in+English'),jdecode(''),'/4518/index.html','true',[ 
		['PAGE','15718',jdecode('-Description'),jdecode(''),'/4518/15718.html','true',[],''],
		['PAGE','15745',jdecode('-Product+specification'),jdecode(''),'/4518/15745.html','true',[],''],
		['PAGE','15772',jdecode('-Recommendations+for+use'),jdecode(''),'/4518/15772.html','true',[],''],
		['PAGE','15799',jdecode('-Place+an+order'),jdecode(''),'/4518/15799.html','true',[],''],
		['PAGE','15826',jdecode('-Contact+us'),jdecode(''),'/4518/15826.html','true',[],''],
		['PAGE','15853',jdecode('-Links'),jdecode(''),'/4518/15853.html','true',[],'']
	],''],
	['PAGE','4940',jdecode('Baby+Glider+en+Fran%E7ais'),jdecode(''),'/4940/index.html','true',[ 
		['PAGE','15880',jdecode('+++-Description'),jdecode(''),'/4940/15880.html','true',[],''],
		['PAGE','15907',jdecode('+++-Sp%E9cifications+produit'),jdecode(''),'/4940/15907.html','true',[],''],
		['PAGE','15934',jdecode('-Conseils+d%26%23x27%3Butilisation'),jdecode(''),'/4940/15934.html','true',[],''],
		['PAGE','15961',jdecode('-Commande+en+ligne'),jdecode(''),'/4940/15961.html','true',[],''],
		['PAGE','15988',jdecode('-Contact'),jdecode(''),'/4940/15988.html','true',[],''],
		['PAGE','12818',jdecode('-Liens'),jdecode(''),'/4940/12818.html','true',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Clearline';
					                                                                    
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 */					                                                            
