/* [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/index.html','true',[ 
		['PAGE','2880',jdecode('ACTUALITES+%28volgende+pagina%29'),jdecode(''),'/1508/2880.html','false',[],'']
	],''],
	['PAGE','1592',jdecode('TOURNOI+INTERNATIONAL'),jdecode(''),'/1592/index.html','true',[ 
		['PAGE','17805',jdecode('TOURNOI+INTERNATIONAL+%28volgende+pagina%29'),jdecode(''),'/1592/17805.html','false',[],'']
	],''],
	['PAGE','35601',jdecode('PHOTOS+DES+EQUIPES'),jdecode(''),'/35601/index.html','true',[ 
		['PAGE','1619',jdecode('LES+EQUIPES+%28photos+2007-2008%29'),jdecode(''),'/35601/1619.html','true',[],'']
	],''],
	['PAGE','1646',jdecode('ANNUAIRE-ORGANIGRAMME'),jdecode(''),'/1646.html','true',[],''],
	['PAGE','34901',jdecode('CALENDRIERS'),jdecode(''),'/34901.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Soccer';
theSitetree.paletteFamily='63B4FF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10520';
theSitetree.graphicsetId='11117';
theSitetree.contentColor='63B4FF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Soccer',
				paletteFamily: 	'63B4FF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10520',
				graphicsetId: 	'11117',
				contentColor: 	'63B4FF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'63B4FF',
				e_color: 		'63B4FF',
				f_color: 		'63B4FF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1508',
internalId:  'aam010invwwm10c352a358a',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '2880',
internalId:  'aam010invwwm10c352a358a',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1592',
internalId:  'aam010invwwm1117effe82e',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '17805',
internalId:  'aam010invwwm1117effe82e',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20100120-180831'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2880',
internalId:  '',
customField: '20060703-181314'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34901',
internalId:  '',
customField: '20100117-162305'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1592',
internalId:  '',
customField: '20070323-143545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17805',
internalId:  '',
customField: '20070323-143252'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1619',
internalId:  '',
customField: '20061126-171238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1646',
internalId:  '',
customField: '20061013-111900'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20100121-101903'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVWWM';
var companyName   = 'LE+SITE+DU+STADE+MEZOIS';
var htmlTitle	  = 'Le+Site+du+Stade+M%C3%A9zois';
var metaKeywords  = 'football+meze%2C+mezois%2C+stade+mezois%2C+herault+football%2C+tournoi%2C+international%2C+Guirao%2C+Phocas%2C+Football%2C+Meze%2C+Mezois%2C+Tournoi%2C+international%2C+division%2C+PHA%2C+Match%2C+Coupe+de+lHerault%2C+Herault%2C+District%2C+Club%2C+Soccer%2C+Corner%2C+P%EF%BF%BDnalty%2C+Zidane%2C+Jacquet%2C+Coup+Franc%2C+entrainement%2C+dribble%2C+une+deux%2C+spectateur%2C+foot%2C+15+ans%2C+17+ans%2C+13+ans%2C+benjamins%2C+poussins%2C+d%EF%BF%BDbutants%2C+Thau+Football%2C+CCNBT%2C+ville+de+M%EF%BF%BDze%2C+pelouse%2C+but%2C+buvette%2C+citoyens+footballeur%2C+secr%EF%BF%BDtaire%2C+tresorier%2C+goall+de+pentec%EF%BF%BDte%2C+ballon%2C+entra%EF%BF%BDnement%2C+.';
var metaContents  = 'Toutes+les+infos+du+stade+m%EF%BF%BDzois...titleLe+site+du+stade+M%EF%BF%BDzois.%2FtitleMETA+NAME%3Ddescription+CONTENT%3DSite+internet+relatant+linformation+football+de+la+ville+de+M%EF%BF%BDze.+Organe+de+communication+internet+du+Stade+Mezois+cher+au+Pr%EF%BF%BDsident+GUIRAOMETA+NAME%3Dkeywords+CONTENT%3DGuirao%2C+Phocas%2C+Football%2C+Meze%2C+Mezois%2C+Tournoi%2C+international%2C+division%2C+PHA%2C+Match%2C+Coupe+de+lHerault%2C+Herault%2C+District%2C+Club%2C+Soccer%2C+Corner%2C+P%EF%BF%BDnalty%2C+Zidane%2C+Jacquet%2C+Coup+Franc%2C+entrainement%2C+dribble%2C+une+deux%2C+spectateur%2C+foot%2C+15+ans%2C+17+ans%2C+13+ans%2C+benjamins%2C+poussins%2C+d%EF%BF%BDbutants%2C+Thau+Football%2C+CCNBT%2C+ville+de+M%EF%BF%BDze%2C+pelouse%2C+but%2C+buvette%2C+citoyens+footballeur%2C+secr%EF%BF%BDtaire%2C+tresorier%2C+goalMETA+NAME%3Ddc.keywords+CONTENT%3DGuirao%2C+Phocas%2C+Football%2C+Meze%2C+Mezois%2C+Tournoi%2C+international%2C+division%2C+PHA%2C+Match%2C+Coupe+de+lHerault%2C+Herault%2C+District%2C+Club%2C+Soccer%2C+Corner%2C+P%EF%BF%BDnalty%2C+Zidane%2C+Jacquet%2C+Coup+Franc%2C+entrainement%2C+dribble%2C+une+deux%2C+spectateur%2C+foot%2C+15+ans%2C+17+ans%2C+13+ans%2C+benjamins%2C+poussins%2C+d%EF%BF%BDbutants%2C+Thau+Football%2C+CCNBT%2C+ville+de+M%EF%BF%BDze%2C+pelouse%2C+but%2C+buvette%2C+citoyens+footballeur%2C+secr%EF%BF%BDtaire%2C+tresorier%2C+goalMETA+NAME%3Dabstract+CONTENT%3DToutes+les+informations+et+les+photos+sur+votre+club+le+stade+mezoisMETA+NAME%3Dsubject+CONTENT%3DFootball+%EF%BF%BD+M%EF%BF%BDzeMETA+NAME%3Dauthor+CONTENT%3DGilles+PHOCASMETA+NAME%3Dcopyright+CONTENT%3D%EF%BF%BDMETA+NAME%3Drevisit-after+CONTENT%3D30+daysMETA+NAME%3Didentifier-url+CONTENT%3Dhttp%3A%2F%2Fwww.stademezois.comMETA+NAME%3Dreply-to+CONTENT%3Dphocas.gilles%40neuf.frMETA+NAME%3Dpublisher+CONTENT%3DNICEPHOREMETA+NAME%3Ddate-creation-ddmmyyyy+CONTENT%3D01062006META+NAME%3DRobots+CONTENT%3DallMETA+NAME%3DRating+CONTENT%3DGeneralMETA+http-equiv%3DVW96.OBJECT+TYPE+CONTENT%3DDocumentMETA+NAME%3DCategory+CONTENT%3DDocumentMETA+NAME%3DPage-topic+CONTENT%3DDocumentMETA+NAME%3DGenerator+CONTENT%3Dweb+site+creatorMETA+NAME%3Dorganization+CONTENT%3DNicephoreMETA+NAME%3Dcontact+CONTENT%3Dphocas.gilles%40neuf.frMETA+NAME%3DcontactName+CONTENT%3DGillesMETA+NAME%3DcontactOrganization+CONTENT%3DGillesMETA+NAME%3DcontactStreetAddress1+CONTENT%3D886+ch+de+romanyMETA+NAME%3DcontactZip+CONTENT%3D34140META+NAME%3DcontactCity+CONTENT%3DMEZEMETA+NAME%3DcontactState+CONTENT%3DFRANCEMETA+NAME%3DClassification+CONTENT%3DMeze%2C+Football%2C+Stade%2C+MezoisMETA+http-equiv%3DContent-Language+CONTENT%3DfrMETA+http-equiv%3DContent-type+CONTENT%3Dtext%2Fhtml%3Bcharset%3Diso-8859-1META+NAME%3Dlocation+CONTENT%3DFrance%2C+FRANCEMETA+NAME%3Dexpires+CONTENT%3DneverMETA+NAME%3Ddate-revision-ddmmyyyy+CONTENT%3D01062006META+NAME%3DDistribution+CONTENT%3DGlobalMETA+NAME%3DAudience+CONTENT%3DGeneralMETA+http-equiv%3DContent-Script-Type+CONTENT%3Dtext%2FjavascriptMETA+http-equiv%3DContent-Style-Type+CONTENT%3Dtext%2Fccs';
					                                                                    
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 */					                                                            
