/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Notre+%C3%A9quipe'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Hygi%C3%A8ne'),jdecode(''),'/473.html','true',[],''],
	['PAGE','515',jdecode('Institut'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','536',jdecode('Tatouage'),jdecode(''),'/515/536.html','true',[],''],
		['PAGE','557',jdecode('Bodypiercing'),jdecode(''),'/515/557.html','true',[],''],
		['PAGE','578',jdecode('Epilation+d%C3%A9finitive'),jdecode(''),'/515/578.html','true',[],''],
		['PAGE','15701',jdecode('Cristaux+dentaires'),jdecode(''),'/515/15701.html','true',[],'']
	],''],
	['PAGE','16522',jdecode('Album+photo'),jdecode(''),'/16522/index.html','true',[ 
		['PAGE','59001',jdecode('Noir+%26+gris'),jdecode(''),'/16522/59001.html','true',[],''],
		['PAGE','59401',jdecode('Noir'),jdecode(''),'/16522/59401.html','true',[],''],
		['PAGE','59422',jdecode('Couleur'),jdecode(''),'/16522/59422.html','true',[],'']
	],''],
	['PAGE','74201',jdecode('D%C3%A9coration'),jdecode(''),'/74201.html','true',[],''],
	['PAGE','599',jdecode('Offres'),jdecode(''),'/599.html','true',[],''],
	['PAGE','29901',jdecode('Liens'),jdecode(''),'/29901.html','true',[],''],
	['PAGE','620',jdecode('Agenda'),jdecode(''),'/620.html','true',[],''],
	['PAGE','725',jdecode('Contact'),jdecode(''),'/725.html','true',[],''],
	['PAGE','5506',jdecode('Livre+d%26%23x27%3Bor+'),jdecode(''),'/5506/index.html','true',[ 
		['PAGE','5501',jdecode('Messages'),jdecode(''),'/5506/5501.html','true',[],'']
	],''],
	['PAGE','5601',jdecode('Plan+acc%C3%A8s'),jdecode(''),'/5601.html','true',[],''],
	['PAGE','18701',jdecode('Carte'),jdecode(''),'/18701.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='FC2323';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10561';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circulation',
				paletteFamily: 	'FC2323',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10561',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5506',
internalId:  '5506abw0x0in2wg3',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5501',
internalId:  '5506abw0x0in2wg3',
customField: 'action=list'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '5601',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '18701',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '7498355',
customField: '1501'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2WG3';
var companyName   = 'Millenium+Institut';
var htmlTitle	  = 'millenium-institut';
var metaKeywords  = 'tattoo%2Ctatoo%2C+millenium+tattoo%2C+tatouage%2C+piercing%2C+%C3%A9pilation+d%C3%A9finitive%2C+cristaux+dentaires%2C+delemont%2C+jura%2C+suisse%2C+rue+de+fer+9%2C+institut';
var metaContents  = 'tatouage%2C+bodypiercing%2C+%C3%A9pilation+d%C3%A9finitive';
					                                                                    
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 */					                                                            

