/* [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','601',jdecode('INICI'),jdecode(''),'/601.html','true',[],''],
	['PAGE','15601',jdecode('INICIO'),jdecode(''),'/15601.html','true',[],''],
	['PAGE','18401',jdecode('FESTES+MAJORS'),jdecode(''),'/18401/index.html','true',[ 
		['PAGE','18422',jdecode('DE+CARRER'),jdecode(''),'/18401/18422.html','true',[],''],
		['PAGE','18443',jdecode('D%26%23x27%3BENVELAT'),jdecode(''),'/18401/18443.html','true',[],''],
		['PAGE','18464',jdecode('INFANTILS'),jdecode(''),'/18401/18464.html','true',[],''],
		['PAGE','18485',jdecode('TEATRE'),jdecode(''),'/18401/18485.html','true',[],''],
		['PAGE','18506',jdecode('DESFILADA'),jdecode(''),'/18401/18506.html','true',[],'']
	],''],
	['PAGE','18527',jdecode('FIESTAS+MAYORES'),jdecode(''),'/18527/index.html','true',[ 
		['PAGE','18548',jdecode('PASACALLES++'),jdecode(''),'/18527/18548.html','true',[],''],
		['PAGE','18569',jdecode('ESCENARIO'),jdecode(''),'/18527/18569.html','true',[],''],
		['PAGE','18590',jdecode('INFANTILES'),jdecode(''),'/18527/18590.html','true',[],''],
		['PAGE','18611',jdecode('TEATRO'),jdecode(''),'/18527/18611.html','true',[],''],
		['PAGE','18632',jdecode('DESFILES'),jdecode(''),'/18527/18632.html','true',[],'']
	],''],
	['PAGE','18653',jdecode('RECREACIONS+HIST%C3%92RIQUES'),jdecode(''),'/18653/index.html','true',[ 
		['PAGE','18674',jdecode('A+MIDA'),jdecode(''),'/18653/18674.html','true',[],''],
		['PAGE','18695',jdecode('PROPIS'),jdecode(''),'/18653/18695.html','true',[],''],
		['PAGE','18716',jdecode('GRAN+FORMAT'),jdecode(''),'/18653/18716.html','true',[],'']
	],''],
	['PAGE','15769',jdecode('RECREACIONES+HIST%C3%93RICAS'),jdecode(''),'/15769/index.html','true',[ 
		['PAGE','18737',jdecode('A+MEDIDA'),jdecode(''),'/15769/18737.html','true',[],''],
		['PAGE','18758',jdecode('PROPIOS'),jdecode(''),'/15769/18758.html','true',[],''],
		['PAGE','18779',jdecode('GRAN+FORMATO'),jdecode(''),'/15769/18779.html','true',[],'']
	],''],
	['PAGE','18800',jdecode('TEATRE'),jdecode(''),'/18800/index.html','true',[ 
		['PAGE','18821',jdecode('INFANTIL'),jdecode(''),'/18800/18821.html','true',[],''],
		['PAGE','18842',jdecode('ADULTS'),jdecode(''),'/18800/18842.html','true',[],'']
	],''],
	['PAGE','18863',jdecode('TEATRO'),jdecode(''),'/18863/index.html','true',[ 
		['PAGE','18884',jdecode('INFANTIL'),jdecode(''),'/18863/18884.html','true',[],''],
		['PAGE','18905',jdecode('ADULTOS'),jdecode(''),'/18863/18905.html','true',[],'']
	],''],
	['PAGE','18926',jdecode('ESDEVENIMENTS+D%26%23x27%3BEMPRESA'),jdecode(''),'/18926/index.html','true',[ 
		['PAGE','18947',jdecode('ESPECTACLE'),jdecode(''),'/18926/18947.html','true',[],''],
		['PAGE','18968',jdecode('TEM%C3%80TICS'),jdecode(''),'/18926/18968.html','true',[],''],
		['PAGE','18989',jdecode('TEAMBUILDING'),jdecode(''),'/18926/18989.html','true',[],''],
		['PAGE','23501',jdecode('FORMACI%C3%93'),jdecode(''),'/18926/23501.html','true',[],''],
		['PAGE','23522',jdecode('DECORACI%C3%93+'),jdecode(''),'/18926/23522.html','true',[],'']
	],''],
	['PAGE','19010',jdecode('EVENTOS+DE+EMPRESA'),jdecode(''),'/19010/index.html','true',[ 
		['PAGE','19031',jdecode('DIVERSOS'),jdecode(''),'/19010/19031.html','true',[],''],
		['PAGE','19052',jdecode('TEM%C3%81TICOS'),jdecode(''),'/19010/19052.html','true',[],''],
		['PAGE','19073',jdecode('TEAMBUILDING'),jdecode(''),'/19010/19073.html','true',[],''],
		['PAGE','23543',jdecode('FORMACI%C3%93N'),jdecode(''),'/19010/23543.html','true',[],''],
		['PAGE','23564',jdecode('DECORACI%C3%93N+'),jdecode(''),'/19010/23564.html','true',[],'']
	],''],
	['PAGE','19094',jdecode('CELEBRACIONS+PRIVADES'),jdecode(''),'/19094/index.html','true',[ 
		['PAGE','19115',jdecode('CASAMENTS'),jdecode(''),'/19094/19115.html','true',[],''],
		['PAGE','19136',jdecode('ANIVERSARIS'),jdecode(''),'/19094/19136.html','true',[],''],
		['PAGE','19157',jdecode('COMUNIONS'),jdecode(''),'/19094/19157.html','true',[],''],
		['PAGE','19178',jdecode('JUBILACIONS'),jdecode(''),'/19094/19178.html','true',[],'']
	],''],
	['PAGE','19199',jdecode('CELEBRACIONES+PRIVADAS'),jdecode(''),'/19199/index.html','true',[ 
		['PAGE','19220',jdecode('BODAS'),jdecode(''),'/19199/19220.html','true',[],''],
		['PAGE','19241',jdecode('ANIVERSARIOS'),jdecode(''),'/19199/19241.html','true',[],''],
		['PAGE','19262',jdecode('COMUNIONES'),jdecode(''),'/19199/19262.html','true',[],''],
		['PAGE','19283',jdecode('JUBILACIONES'),jdecode(''),'/19199/19283.html','true',[],'']
	],''],
	['PAGE','19304',jdecode('ESCOLA+DE+TEATRE'),jdecode(''),'/19304.html','true',[],''],
	['PAGE','19325',jdecode('ESCUELA+DE+TEATRO'),jdecode(''),'/19325.html','true',[],''],
	['PAGE','16201',jdecode('CONTACTE'),jdecode(''),'/16201.html','true',[],''],
	['PAGE','19346',jdecode('CONTACTO'),jdecode(''),'/19346.html','true',[],'']];
var siteelementCount=54;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='291';
theSitetree.graphicsetId='356';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='AC2323';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'291',
				graphicsetId: 	'356',
				contentColor: 	'DDDDDD',
				contentBGColor: 'AC2323',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20080916-113545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18527',
internalId:  '',
customField: '20080916-105009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18422',
internalId:  '',
customField: '20080823-204737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18443',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15769',
internalId:  '',
customField: '20080916-105057'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20080916-113627'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20080916-111438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18653',
internalId:  '',
customField: '20080916-111747'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18674',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18800',
internalId:  '',
customField: '20080916-111836'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18926',
internalId:  '',
customField: '20080916-111944'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18968',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23522',
internalId:  '',
customField: '20080822-140140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19010',
internalId:  '',
customField: '20080916-105153'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19094',
internalId:  '',
customField: '20080916-112020'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18464',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18863',
internalId:  '',
customField: '20080916-105126'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19115',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19304',
internalId:  '',
customField: '20080916-113259'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19199',
internalId:  '',
customField: '20080916-105218'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19325',
internalId:  '',
customField: '20080916-113209'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20080916-111106'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19346',
internalId:  '',
customField: '20080916-111419'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18485',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18506',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18548',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18569',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18590',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18611',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18632',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18695',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18716',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18737',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18758',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18779',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18821',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18842',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18884',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18905',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18947',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18989',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20080822-140140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19031',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19052',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19073',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23543',
internalId:  '',
customField: '20080822-140140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23564',
internalId:  '',
customField: '20080822-140140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19136',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19157',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19178',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19220',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19241',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19262',
internalId:  '',
customField: '20080822-131629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19283',
internalId:  '',
customField: '20080822-131629'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3LHU';
var companyName   = 'TAMQUAM%2C+creant+espectacle';
var htmlTitle	  = 'TAMQUAM+GRUP';
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 */					                                                            
