/* [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','4599',jdecode('Horlogerie+m%C3%A9canique'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','20203',jdecode('BERTHET%3A+English+History+'),jdecode(''),'/20203.html','true',[],''],
	['PAGE','4656',jdecode('BERTHET%3A+Historique'),jdecode(''),'/4656.html','true',[],''],
	['PAGE','4710',jdecode('Le+groupe+BERTHET'),jdecode(''),'/4710.html','true',[],''],
	['PAGE','16003',jdecode('COMMANDEZ+par+mail'),jdecode(''),'/16003/index.html','true',[ 
		['PAGE','16902',jdecode('Pour+nous+contacter+E-mail+%28volgende+pagina%29'),jdecode(''),'/16003/16902.html','false',[],'']
	],''],
	['PAGE','44503',jdecode('CATALOGUE+%22POCHE%22+'),jdecode(''),'/44503/index.html','true',[ 
		['PAGE','48003',jdecode('page1+L%C3%A9pine+m%C3%A9canique'),jdecode(''),'/44503/48003.html','true',[],''],
		['PAGE','48030',jdecode('+page2+L%C3%A9pine+m%C3%A9canique'),jdecode(''),'/44503/48030.html','true',[],''],
		['PAGE','48057',jdecode('page+3+L%C3%A9pine+m%C3%A9canique'),jdecode(''),'/44503/48057.html','true',[],''],
		['PAGE','48084',jdecode('+page+4'),jdecode(''),'/44503/48084.html','true',[],''],
		['PAGE','48111',jdecode('+page+5+-Montre+OR+'),jdecode(''),'/44503/48111.html','true',[],''],
		['PAGE','48138',jdecode('+page+6+'),jdecode(''),'/44503/48138.html','true',[],''],
		['PAGE','48165',jdecode('+page+7'),jdecode(''),'/44503/48165.html','true',[],''],
		['PAGE','48192',jdecode('+page+8+ARGENT'),jdecode(''),'/44503/48192.html','true',[],''],
		['PAGE','48219',jdecode('+page+9+poche+'),jdecode(''),'/44503/48219.html','true',[],''],
		['PAGE','48246',jdecode('+page+10+poche+quartz+et+m%C3%A9canique'),jdecode(''),'/44503/48246.html','true',[],''],
		['PAGE','48273',jdecode('+page+11+Montres+de+poche+'),jdecode(''),'/44503/48273.html','true',[],''],
		['PAGE','48300',jdecode('+page+12+Montres+de+poche'),jdecode(''),'/44503/48300.html','true',[],''],
		['PAGE','48327',jdecode('+page+13+Montres+de+poche'),jdecode(''),'/44503/48327.html','true',[],''],
		['PAGE','48354',jdecode('+page+14+Montres+de+poche'),jdecode(''),'/44503/48354.html','true',[],''],
		['PAGE','48381',jdecode('+page+15+Montres+de+poche'),jdecode(''),'/44503/48381.html','true',[],''],
		['PAGE','48408',jdecode('+page+16+Pendentif'),jdecode(''),'/44503/48408.html','true',[],''],
		['PAGE','48435',jdecode('+page+17+Montres+quartz'),jdecode(''),'/44503/48435.html','true',[],''],
		['PAGE','48462',jdecode('+page+18+Montres+quartz'),jdecode(''),'/44503/48462.html','true',[],'']
	],''],
	['PAGE','4737',jdecode('Montres+m%C3%A9caniques'),jdecode(''),'/4737/index.html','true',[ 
		['PAGE','4764',jdecode('Montres+%22squelette%22'),jdecode(''),'/4737/4764.html','true',[],''],
		['PAGE','48489',jdecode('Pendulette+officier'),jdecode(''),'/4737/48489.html','true',[],''],
		['PAGE','4791',jdecode('R%C3%A9serve+de+Marche'),jdecode(''),'/4737/4791.html','true',[],'']
	],''],
	['PAGE','5061',jdecode('Trouver+BERTHET'),jdecode(''),'/5061.html','true',[],''],
	['PAGE','70606',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/70606/index.html','true',[ 
		['PAGE','70601',jdecode('Entr%C3%A9es'),jdecode(''),'/70606/70601.html','true',[],'']
	],''],
	['PAGE','77701',jdecode('FICHE+TECHNIQUE+'),jdecode(''),'/77701.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='3C5284';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10510';
theSitetree.graphicsetId='10913';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3C5284';
var theTemplate={
				name: 			'Stars',
				paletteFamily: 	'3C5284',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10510',
				graphicsetId: 	'10913',
				contentColor: 	'FFFFFF',
				contentBGColor: '3C5284',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3C5284',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4710',
internalId:  '',
customField: '20090909-100949'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16003',
internalId:  '',
customField: '20090909-102250'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '4806348',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '16003',
internalId:  'aam010in3ck7103828f28ba',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '16902',
internalId:  'aam010in3ck7103828f28ba',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4656',
internalId:  '',
customField: '20091019-085319'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20091019-085755'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20203',
internalId:  '',
customField: '20091019-085242'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44503',
internalId:  '',
customField: '20080206-141620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48003',
internalId:  '',
customField: '20090702-170402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4737',
internalId:  '',
customField: '20090401-111556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4764',
internalId:  '',
customField: '20080206-142857'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4791',
internalId:  '',
customField: '20080206-143304'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77701',
internalId:  '',
customField: '20100531-173122'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5061',
internalId:  '',
customField: '20080206-143509'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48192',
internalId:  '',
customField: '20070828-083836'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48489',
internalId:  '',
customField: '20080206-143146'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48111',
internalId:  '',
customField: '20090702-170504'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16902',
internalId:  '',
customField: '20050427-092910'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48030',
internalId:  '',
customField: '20090702-170418'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48057',
internalId:  '',
customField: '20090702-170433'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48084',
internalId:  '',
customField: '20090702-170446'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48138',
internalId:  '',
customField: '20090702-170317'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48165',
internalId:  '',
customField: '20090702-170346'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48219',
internalId:  '',
customField: '20090702-170555'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48246',
internalId:  '',
customField: '20090702-170624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48273',
internalId:  '',
customField: '20090702-171845'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48300',
internalId:  '',
customField: '20090702-171901'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48327',
internalId:  '',
customField: '20090702-171918'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48354',
internalId:  '',
customField: '20090702-171951'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48381',
internalId:  '',
customField: '20090702-171935'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48408',
internalId:  '',
customField: '20090702-172018'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48435',
internalId:  '',
customField: '20090702-172035'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48462',
internalId:  '',
customField: '20090702-172051'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '70606',
internalId:  '70606aam010in3ck7',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '70601',
internalId:  '70606aam010in3ck7',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '70606',
internalId:  '',
customField: '20080704-082343'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '70601',
internalId:  '',
customField: '20080704-082343'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3CK7';
var companyName   = 'BERTHET+depuis+1888++Horlogerie';
var htmlTitle	  = 'Manufacture+Horlog%C3%A8re+BERTHET+depuis+1888';
var metaKeywords  = 'lepine%3B+savonnette%3B+diamant%3B+berthet%3B+horlogerie%3B+bijouterie%3B+montre+gousset%3B+gousset%3B+montre+gousset%3B+montre+suisse%3B+squelette%3B+heure%3B+temps%3B+montre+de+poche%3B+montre+poche%3B+montre+squelette%3B+montre+bracelet%3B+montre+savonnette%3B+montre+lepine%3B+montre+or%3B+or%3B+argent%3B+platine%3B+montre+argent%3B+montre+waltham%3B+montre+joaillerie%3B+pocket-watch%3B+pocket+watch%3B+mouvement+mecanique%3B+reserve+de+marche%3B+montre+squelette%3B+taschen-uhren%3B+orologerie%3B+mouvement+tourbillon%3B+pendentif%3B+quartz%3B+unitas%3B+hebdomas%3B+montre+swatch%3B+montre+oignon%3B+cadeau%3B+cadeau+fete+peres%3B+fete+des+meres%3B+cadeau+noel%3B+montre+suisse%3B+montre+musique%3B+montre+sonnerie%3B+montre+reveil%3B+alarme%3B+reveil%3B+suisse%3B+swiss%3B+swiss+made%3B+swatch%3B+montre+berthet';
var metaContents  = 'BERTHET%2C+fabrique+horlogerie%2C+fabrique+bijouterie%2C+montres+gousset%2C+montre+quartz%2C+montre+mecanique+suisse+%2C+boitiers+pour+montre%2C+montres+de+poche%2C+montre++en+OR%2C+montre+pendentif%2C+pocket-watch%2C+Argent+massif%2C+platine+et+metaux+communs%2C+manufacture+de+montre+mecanique%2C+mouvement+squelette%2C+reserve+de+marche%2C+regulateur%2C+quantieme.+horlogerie+suisse%2C+horlogerie+francaise%2C+place+vendome%2C+journe+%2C+cartier+%2C+swatch';
					                                                                    
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 */					                                                            
