/* [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','1508',jdecode('Accueil'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','5963',jdecode('Les+objectifs'),jdecode(''),'/5963.html','true',[],''],
	['PAGE','52401',jdecode('Les+services'),jdecode(''),'/52401.html','true',[],''],
	['PAGE','52428',jdecode('Comment+s%26%23x27%3Babonner'),jdecode(''),'/52428.html','true',[],''],
	['PAGE','52455',jdecode('Culture+nautique'),jdecode(''),'/52455.html','true',[],''],
	['PAGE','64628',jdecode('Contacts+et+liens'),jdecode(''),'/64628.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Comedy';
theSitetree.paletteFamily='4871C0';
theSitetree.keyvisualId='2803';
theSitetree.keyvisualName='hand.jpg';
theSitetree.fontsetId='10601';
theSitetree.graphicsetId='10722';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='698BCB';
var theTemplate={
				name: 			'Comedy',
				paletteFamily: 	'4871C0',
				keyvisualId: 	'2803',
				keyvisualName: 	'hand.jpg',
				fontsetId: 		'10601',
				graphicsetId: 	'10722',
				contentColor: 	'FFFFFF',
				contentBGColor: '698BCB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'36599C',
				e_color: 		'36599C',
				f_color: 		'36599C',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20081203-103354'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5963',
internalId:  '',
customField: '20050131-153624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52401',
internalId:  '',
customField: '20081203-103506'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52428',
internalId:  '',
customField: '20081203-103559'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64628',
internalId:  '',
customField: '20081112-091911'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52455',
internalId:  '',
customField: '20051022-110601'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2ICV';
var companyName   = 'VILLAGE-VOILE';
var htmlTitle	  = 'Le+Village-voile';
var metaKeywords  = 'information%2Cvoile%2Cbateaux%2C+voiliers%2C+nautisme%2C+biblioth%EF%BF%BDque%2Clivres%2C+centre+de+documentation%2Cmagazines+nautiques%2Cgites+nautiques%2Ch%EF%BF%BDbergement+%EF%BF%BD+th%EF%BF%BDmes%2Chistoire+de+la+voile%2Cplaisance%2Carchitecture+navale%2Cmetiers+de+la+mer%2C+mer%2C+maritime%2C+meteo+marine%2C+marine%2C+bretagne%2C+morbihan%2C+vilaine%2C+village+voile%2C+olivier+le+carrer%2Cabonnement%2Cm%EF%BF%BDmoire%2Cespace+documentaire%2Cculture+plaisance.';
var metaContents  = 'Documentation+et+information+sur+la+voile+et+le+nautisme.+Actualit%EF%BF%BDs+et+recherches+sur+les+voiliers.+Biblioth%EF%BF%BDque+nautique+et+centre+de+ressources+sur+la+plaisance.+H%EF%BF%BDbergement+en+gites+nautiques+sur+les+bords+de+la+vilaine+en+Bretagne+dans+le+Morbihan.Lespace+documentaire+plaisance.Lieu+de+culture+nautique.';
					                                                                    
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 */					                                                            
