/* [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('Acem'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','473',jdecode('Qui+som'),jdecode(''),'/401/473.html','true',[],''],
		['PAGE','31343',jdecode('Contacta'),jdecode(''),'/401/31343.html','true',[],'']
	],''],
	['PAGE','152476',jdecode('Barcelona+2022'),jdecode(''),'/152476.html','true',[],''],
	['PAGE','494',jdecode('Estacions+d%26%23x27%3Besqu%C3%AD+alp%C3%AD'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','515',jdecode('Baqueira+Beret'),jdecode(''),'/494/515.html','true',[],''],
		['PAGE','536',jdecode('Bo%C3%AD+Ta%C3%BCll+Resort'),jdecode(''),'/494/536.html','true',[],''],
		['PAGE','557',jdecode('Espot+Esqu%C3%AD'),jdecode(''),'/494/557.html','true',[],''],
		['PAGE','578',jdecode('La+Molina'),jdecode(''),'/494/578.html','true',[],''],
		['PAGE','599',jdecode('Masella'),jdecode(''),'/494/599.html','true',[],''],
		['PAGE','620',jdecode('Port+Ain%C3%A9'),jdecode(''),'/494/620.html','true',[],''],
		['PAGE','641',jdecode('Port+del+Comte'),jdecode(''),'/494/641.html','true',[],''],
		['PAGE','662',jdecode('Tavascan'),jdecode(''),'/494/662.html','true',[],''],
		['PAGE','683',jdecode('Vall+de+N%C3%BAria'),jdecode(''),'/494/683.html','true',[],''],
		['PAGE','704',jdecode('Vallter+2000'),jdecode(''),'/494/704.html','true',[],'']
	],''],
	['PAGE','725',jdecode('Estacions+d%26%23x27%3Besqu%C3%AD+n%C3%B2rdic'),jdecode(''),'/725/index.html','true',[ 
		['PAGE','746',jdecode('Aransa'),jdecode(''),'/725/746.html','true',[],''],
		['PAGE','767',jdecode('Bosc+Vir%C3%B3s'),jdecode(''),'/725/767.html','true',[],''],
		['PAGE','788',jdecode('Guils+Fontanera'),jdecode(''),'/725/788.html','true',[],''],
		['PAGE','809',jdecode('Lles'),jdecode(''),'/725/809.html','true',[],''],
		['PAGE','830',jdecode('Sant+Joan+de+l%26%23x27%3BErm'),jdecode(''),'/725/830.html','true',[],''],
		['PAGE','851',jdecode('Tavascan'),jdecode(''),'/725/851.html','true',[],''],
		['PAGE','872',jdecode('Tuixent+-+Lavansa'),jdecode(''),'/725/872.html','true',[],'']
	],''],
	['PAGE','977',jdecode('Centre+de+Formaci%C3%B3'),jdecode(''),'/977.html','true',[],''],
	['PAGE','998',jdecode('Assegurances'),jdecode(''),'/998/index.html','true',[ 
		['PAGE','1019',jdecode('Racc'),jdecode(''),'/998/1019.html','true',[],''],
		['PAGE','1040',jdecode('Targeta+Blanca'),jdecode(''),'/998/1040.html','true',[],'']
	],''],
	['PAGE','1061',jdecode('Informaci%C3%B3+d%26%23x27%3BInter%C3%A8s'),jdecode(''),'/1061/index.html','true',[ 
		['PAGE','1082',jdecode('Guia+C%C3%ADvica'),jdecode(''),'/1061/1082.html','true',[],''],
		['PAGE','1103',jdecode('Noticies'),jdecode(''),'/1061/1103.html','true',[],''],
		['PAGE','1124',jdecode('Novetats'),jdecode(''),'/1061/1124.html','true',[],'']
	],''],
	['PAGE','1145',jdecode('Enlla%C3%A7os'),jdecode(''),'/1145.html','true',[],''],
	['PAGE','48443',jdecode('Comunicat+de+neu'),jdecode(''),'/48443.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10893';
theSitetree.contentColor='0000A0';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10893',
				contentColor: 	'0000A0',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '202911',
customField: '1501'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100205-110937'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1061',
internalId:  '',
customField: '20091002-140221'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1103',
internalId:  '',
customField: '20100113-144427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '152476',
internalId:  '',
customField: '20100205-111037'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20070221-164332'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31343',
internalId:  '',
customField: '20070302-101129'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20091009-143808'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20091009-143859'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20091023-103954'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20091019-113103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20091009-125339'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20091009-125555'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20091009-125708'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20091019-115559'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20091009-125922'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20091019-115915'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20091019-120328'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20091005-123654'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20091006-134601'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20091006-134942'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20091019-121049'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20091019-121730'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20091006-135442'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '851',
internalId:  '',
customField: '20091009-130932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '872',
internalId:  '',
customField: '20091019-122259'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '977',
internalId:  '',
customField: '20091029-124002'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '998',
internalId:  '',
customField: '20070222-122806'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1019',
internalId:  '',
customField: '20071109-110440'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1040',
internalId:  '',
customField: '20070221-141015'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1082',
internalId:  '',
customField: '20070306-100816'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1124',
internalId:  '',
customField: '20091006-140051'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1145',
internalId:  '',
customField: '20070402-100904'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48443',
internalId:  '',
customField: '20100304-122122'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020INXHNC';
var companyName   = 'Esquia+a+Catalunya';
var htmlTitle	  = 'Estacions+desqu%C3%AD+a+Catalunya';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
