/* [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','4558',jdecode('Inici'),jdecode(''),'/4558.html','true',[],''],
	['PAGE','9401',jdecode('+Qui+som+%3F'),jdecode(''),'/9401/index.html','true',[ 
		['PAGE','9428',jdecode('Junta+directiva'),jdecode(''),'/9401/9428.html','true',[],'']
	],''],
	['PAGE','25797',jdecode('Campanya+Mam%C3%B2graf+Digital'),jdecode(''),'/25797.html','true',[],''],
	['PAGE','26597',jdecode('Grups+suport+c%C3%A0ncer+mama'),jdecode(''),'/26597.html','true',[],''],
	['PAGE','9482',jdecode('Campanyes'),jdecode(''),'/9482/index.html','true',[ 
		['PAGE','9509',jdecode('Prevenci%C3%B3+a+les+escoles'),jdecode(''),'/9482/9509.html','true',[],''],
		['PAGE','13401',jdecode('Osona+lluita+contra+el+c%C3%A0ncer'),jdecode(''),'/9482/13401.html','true',[],''],
		['PAGE','9536',jdecode('Alimentaci%C3%B3+i+prevenci%C3%B3'),jdecode(''),'/9482/9536.html','true',[],''],
		['PAGE','9563',jdecode('Gr%C3%A0cies+per+no+fumar'),jdecode(''),'/9482/9563.html','true',[],''],
		['PAGE','13428',jdecode('Gr%C3%A0cies+a+tu%2C+gr%C3%A0cies+a+tots'),jdecode(''),'/9482/13428.html','true',[],'']
	],''],
	['PAGE','9590',jdecode('Ajudes+i+donacions'),jdecode(''),'/9590.html','true',[],''],
	['PAGE','21001',jdecode('Premis+Universitat+de+Vic'),jdecode(''),'/21001.html','true',[],''],
	['PAGE','21701',jdecode('Premis+Sanitat+Osona'),jdecode(''),'/21701.html','true',[],''],
	['PAGE','21728',jdecode('Premis+Dibuix+a+les+Escoles'),jdecode(''),'/21728.html','true',[],''],
	['PAGE','25197',jdecode('ARTabac'),jdecode(''),'/25197.html','true',[],''],
	['PAGE','18501',jdecode('Llibre+%22Economia+de+Butxaca%22'),jdecode(''),'/18501.html','true',[],''],
	['PAGE','43797',jdecode('Amics+de+l%26%23x27%3BOriol+Pay%C3%A0s'),jdecode(''),'/43797.html','true',[],''],
	['PAGE','9617',jdecode('Donacions%2C+ajudes+i+formaci%C3%B3'),jdecode(''),'/9617.html','true',[],''],
	['PAGE','23701',jdecode('+Equipaments+m%C3%A8dics'),jdecode(''),'/23701.html','true',[],''],
	['PAGE','9644',jdecode('Altres+equipaments+m%C3%A8dics'),jdecode(''),'/9644.html','true',[],''],
	['PAGE','19601',jdecode('Consells+de+prevenci%C3%B3'),jdecode(''),'/19601.html','true',[],''],
	['PAGE','42697',jdecode('C%C3%A0ncer+coll+uter%C3%AD'),jdecode(''),'/42697.html','true',[],''],
	['PAGE','9671',jdecode('On+som+%3F'),jdecode(''),'/9671.html','true',[],''],
	['PAGE','13455',jdecode('Fes-te%26%23x27%3Bn+soci'),jdecode(''),'/13455.html','true',[],''],
	['PAGE','9698',jdecode('Enlla%C3%A7os+d%26%23x27%3Binter%C3%A8s'),jdecode(''),'/9698.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Success';
theSitetree.paletteFamily='336600';
theSitetree.keyvisualId='1658';
theSitetree.keyvisualName='freizeit.jpg';
theSitetree.fontsetId='262';
theSitetree.graphicsetId='332';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F1F1F1';
var theTemplate={
				name: 			'Success',
				paletteFamily: 	'336600',
				keyvisualId: 	'1658',
				keyvisualName: 	'freizeit.jpg',
				fontsetId: 		'262',
				graphicsetId: 	'332',
				contentColor: 	'000000',
				contentBGColor: 'F1F1F1',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'336600',
				b_color: 		'C80021',
				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:  '4558',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4558',
internalId:  '',
customField: '20100728-184246'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25797',
internalId:  '',
customField: '20080205-125140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20081014-151542'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42697',
internalId:  '',
customField: '20100728-193532'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9428',
internalId:  '',
customField: '20100128-191849'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9482',
internalId:  '',
customField: '20050914-173233'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9509',
internalId:  '',
customField: '20100224-194031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20050912-203625'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9536',
internalId:  '',
customField: '20050912-203804'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9563',
internalId:  '',
customField: '20050903-162211'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13428',
internalId:  '',
customField: '20050912-203932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9590',
internalId:  '',
customField: '20100317-120520'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20070107-153636'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20080119-183029'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21728',
internalId:  '',
customField: '20081212-131257'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25197',
internalId:  '',
customField: '20080618-130503'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20080123-172553'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9617',
internalId:  '',
customField: '20081104-154403'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20100724-183349'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9644',
internalId:  '',
customField: '20070627-195103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20070804-185310'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9671',
internalId:  '',
customField: '20050912-204140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13455',
internalId:  '',
customField: '20090521-095033'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9698',
internalId:  '',
customField: '20071125-174725'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26597',
internalId:  '',
customField: '20071024-210737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43797',
internalId:  '',
customField: '20100728-200252'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3DOC';
var companyName   = 'OSONA+CONTRA+EL+C%C3%80NCER';
var htmlTitle	  = 'osonacontracancer.com';
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 */					                                                            
