/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4903',jdecode('Dr+Patrick+Flanagan'),jdecode(''),'/4903.html','true',[],''],
	['PAGE','4957',jdecode('Technologie'),jdecode(''),'/4957.html','true',[],''],
	['PAGE','4984',jdecode('Utilisation'),jdecode(''),'/4984.html','true',[],''],
	['PAGE','5011',jdecode('Neurophone+DSP'),jdecode(''),'/5011.html','true',[],''],
	['PAGE','5038',jdecode('Neurophone+GRS'),jdecode(''),'/5038.html','true',[],''],
	['PAGE','5065',jdecode('Commande'),jdecode(''),'/5065.html','true',[],''],
	['PAGE','5092',jdecode('Contact'),jdecode(''),'/5092.html','true',[],''],
	['PAGE','5119',jdecode('Projet+Dauphins'),jdecode(''),'/5119.html','true',[],''],
	['PAGE','8603',jdecode('L%26%23x27%3BEau+des+Hunzas'),jdecode(''),'/8603.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Steps';
theSitetree.paletteFamily='315881';
theSitetree.keyvisualId='2261';
theSitetree.keyvisualName='cd.jpg';
theSitetree.fontsetId='369';
theSitetree.graphicsetId='419';
theSitetree.contentColor='FFD1BC';
theSitetree.contentBGColor='315881';
var theTemplate={
				name: 			'Steps',
				paletteFamily: 	'315881',
				keyvisualId: 	'2261',
				keyvisualName: 	'cd.jpg',
				fontsetId: 		'369',
				graphicsetId: 	'419',
				contentColor: 	'FFD1BC',
				contentBGColor: '315881',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'315881',
				b_color: 		'2985B5',
				c_color: 		'3366CC',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20051106-013527'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5092',
internalId:  '',
customField: '20081101-141738'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4903',
internalId:  '',
customField: '20051115-210656'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4957',
internalId:  '',
customField: '20051106-013556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4984',
internalId:  '',
customField: '20051106-013606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5011',
internalId:  '',
customField: '20051106-013617'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5038',
internalId:  '',
customField: '20051106-013628'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5065',
internalId:  '',
customField: '20081101-141719'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5119',
internalId:  '',
customField: '20051115-211044'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8603',
internalId:  '',
customField: '20070918-195143'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3G9I';
var companyName   = 'NEUROPHONE+France';
var htmlTitle	  = 'Le+Neurophone+du+Dr+Patrick+Flanagan';
var metaKeywords  = 'Neurophone+Patrick+Flanagan';
var metaContents  = 'Neurophone+Patrick+Flanagan';
					                                                                    
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 */					                                                            
