/* [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','4607',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','29401',jdecode('Prochaines+Soir%C3%A9es'),jdecode(''),'/29401.html','true',[],''],
	['PAGE','178234',jdecode('Soir%C3%A9e+du+mois'),jdecode(''),'/178234.html','true',[],''],
	['PAGE','210734',jdecode('Location+CARRE+VIP'),jdecode(''),'/210734.html','true',[],''],
	['PAGE','217234',jdecode('S%C3%A9curit%C3%A9+Routi%C3%A8re'),jdecode(''),'/217234.html','true',[],''],
	['PAGE','34501',jdecode('Partenaires'),jdecode(''),'/34501.html','true',[],''],
	['PAGE','34901',jdecode('Sondage'),jdecode(''),'/34901.html','true',[],''],
	['PAGE','102912',jdecode('Inscription+Newletter'),jdecode(''),'/102912.html','true',[],''],
	['PAGE','64512',jdecode('Albums+photos'),jdecode(''),'/64512/index.html','true',[ 
		['PAGE','67412',jdecode('CHIPPENDALES'),jdecode(''),'/64512/67412.html','true',[],'']
	],''],
	['PAGE','30001',jdecode('L%26%23x27%3B%C3%A9quipe+du+Griot'),jdecode(''),'/30001.html','true',[],''],
	['PAGE','33401',jdecode('Horaires+d%26%23x27%3Bouvertures'),jdecode(''),'/33401.html','true',[],''],
	['PAGE','30602',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/30602.html','true',[],''],
	['PAGE','30603',jdecode('Consultation'),jdecode(''),'/30603.html','true',[],''],
	['PAGE','30407',jdecode('Plan+d%26%23x27%3BAcc%C3%A8s'),jdecode(''),'/30407.html','true',[],''],
	['PAGE','30434',jdecode('R%C3%A9servation+par+Mail'),jdecode(''),'/30434.html','true',[],''],
	['PAGE','42401',jdecode('F%C3%AAter+un+%C3%A9venement'),jdecode(''),'/42401.html','true',[],''],
	['PAGE','34101',jdecode('Tarifs'),jdecode(''),'/34101.html','true',[],''],
	['PAGE','9154',jdecode('Contact'),jdecode(''),'/9154/index.html','true',[ 
		['PAGE','9181',jdecode('Adresse%2C+T%C3%A9l%C3%A9phone'),jdecode(''),'/9154/9181.html','true',[],''],
		['PAGE','9208',jdecode('Comment+nous+trouver'),jdecode(''),'/9154/9208.html','true',[],'']
	],''],
	['PAGE','29455',jdecode('Anciennes+soir%C3%A9es'),jdecode(''),'/29455.html','true',[],''],
	['PAGE','34928',jdecode('Forum'),jdecode(''),'/34928.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Disco';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='1866';
theSitetree.keyvisualName='party01.jpg';
theSitetree.fontsetId='308';
theSitetree.graphicsetId='363';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000066';
var theTemplate={
				name: 			'Disco',
				paletteFamily: 	'000066',
				keyvisualId: 	'1866',
				keyvisualName: 	'party01.jpg',
				fontsetId: 		'308',
				graphicsetId: 	'363',
				contentColor: 	'FFFFFF',
				contentBGColor: '000066',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4607',
internalId:  '10580717',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '210734',
internalId:  '',
customField: '20111202-031118'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '30602',
internalId:  '30602aam010inldna',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '30603',
internalId:  '30602aam010inldna',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42401',
internalId:  '',
customField: '20080131-231415'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '34901',
internalId:  '132db65b533.ed34ec7f',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20120119-235052'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30407',
internalId:  '',
customField: '20080105-040525'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33401',
internalId:  '',
customField: '20090706-173205'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30434',
internalId:  '',
customField: '20100207-042143'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20110530-015837'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9154',
internalId:  '',
customField: '20071108-190552'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9181',
internalId:  '',
customField: '20071109-111520'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9208',
internalId:  '',
customField: '20071004-103636'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29401',
internalId:  '',
customField: '20120119-234717'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29455',
internalId:  '',
customField: '20100205-191406'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '178234',
internalId:  '',
customField: '20120119-235029'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30001',
internalId:  '',
customField: '20110831-103100'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30602',
internalId:  '',
customField: '20071109-124147'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30603',
internalId:  '',
customField: '20070927-112258'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20110709-025203'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34901',
internalId:  '',
customField: '20111007-163600'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34928',
internalId:  '',
customField: '20080512-032744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '217234',
internalId:  '',
customField: '20111202-031210'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64512',
internalId:  '',
customField: '20110506-160128'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '67412',
internalId:  '117b9714ed8',
customField: 'g.12usmtjlf.cregc7h3pu.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '67412',
internalId:  '',
customField: '20080128-022853'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '102912',
internalId:  '',
customField: '20081029-004232'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLDNA';
var companyName   = '+++Club-Discotheque+Le+Griot++++Le+Club+30%2F40';
var htmlTitle	  = 'Le-Griot';
var metaKeywords  = 'discotheque++perigord+++sarlat+souillac+gourdon+danser+consommation+restaurant+aquitaine+sarlat+club+le+griot+aquitaine+sortir+se+distraire++bon+plan+vacance+sarladais+foie+gras+';
var metaContents  = 'les+soirees+de+la+discotheque+Le+Griot++la+pr%C3%A9sentation+de+la+discoth%C3%A8que++le+plan%2C+les+prix%2C+les+r%C3%A9servations++e-mail%2Cforum%2Csondage';
					                                                                    
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 */					                                                            

