/* [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','701',jdecode('Adeban'),jdecode(''),'/701.html','true',[],''],
	['PAGE','857',jdecode('AAHU'),jdecode(''),'/857/index.html','true',[ 
		['PAGE','1004',jdecode('Agora'),jdecode(''),'/857/1004.html','true',[],''],
		['PAGE','920',jdecode('Cursos'),jdecode(''),'/857/920.html','true',[],''],
		['PAGE','962',jdecode('Calendario'),jdecode(''),'/857/962.html','true',[],''],
		['PAGE','1109',jdecode('Concursos'),jdecode(''),'/857/1109.html','true',[],''],
		['PAGE','1025',jdecode('Inscripci%C3%B3n'),jdecode(''),'/857/1025/index.html','true',[ 
			['PAGE','8601',jdecode('Inscripci%C3%B3n+%28follow+up+page%29'),jdecode(''),'/857/1025/8601.html','false',[],'']
		],''],
		['PAGE','1067',jdecode('Anuncios'),jdecode(''),'/857/1067.html','true',[],''],
		['PAGE','1046',jdecode('Promoci%C3%B3n'),jdecode(''),'/857/1046.html','true',[],''],
		['PAGE','1088',jdecode('Amigos'),jdecode(''),'/857/1088.html','true',[],''],
		['PAGE','1151',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/857/1151/index.html','true',[ 
			['PAGE','8301',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/857/1151/8301.html','false',[],'']
		],''],
		['PAGE','5001',jdecode('Mapa+de+acceso'),jdecode(''),'/857/5001.html','true',[],'']
	],''],
	['PAGE','5822',jdecode('Albunes'),jdecode(''),'/5822/index.html','true',[ 
		['PAGE','4601',jdecode('Sitios+de+Zaragoza'),jdecode(''),'/5822/4601.html','true',[],'']
	],''],
	['PAGE','1235',jdecode('Aviso+legal'),jdecode(''),'/1235.html','true',[],''],
	['PAGE','4106',jdecode('Libro+de+visitas'),jdecode(''),'/4106/index.html','true',[ 
		['PAGE','4101',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/4106/4101.html','true',[],'']
	],''],
	['PAGE','8101',jdecode('Blog'),jdecode(''),'/8101.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Bigcity_NYC';
theSitetree.paletteFamily='7C0B0B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='17891';
theSitetree.graphicsetId='13164';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='7C0B0B';
var theTemplate={
				name: 			'Bigcity_NYC',
				paletteFamily: 	'7C0B0B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'17891',
				graphicsetId: 	'13164',
				contentColor: 	'FFFFFF',
				contentBGColor: '7C0B0B',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20090203-144613'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20090203-145517'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '701',
internalId:  '7453661',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '4106',
internalId:  '4106aars20invrz3',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '4101',
internalId:  '4106aars20invrz3',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '4601',
internalId:  '11f3b8aef27',
customField: 'g.13stqg9gb.m7cji8covc.1s'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '8101',
internalId:  '8101',
customField: 'language:es;country:ES;'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1151',
internalId:  'aars20invrz311f4c6dbc80',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '8301',
internalId:  'aars20invrz311f4c6dbc80',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20090206-173332'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '701',
internalId:  '11f3b7d940b.42b1ddff',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '962',
internalId:  '',
customField: '20090203-095107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20090206-173114'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1004',
internalId:  '',
customField: '20090203-150630'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1025',
internalId:  '',
customField: '20090206-173538'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1046',
internalId:  '',
customField: '20090203-095107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1067',
internalId:  '',
customField: '20090203-095107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1088',
internalId:  '',
customField: '20090203-095107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1109',
internalId:  '',
customField: '20090206-174310'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1025',
internalId:  'aars20invrz311f4c738274',
customField: ''
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1151',
internalId:  '',
customField: '20090206-173221'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20090206-172851'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '1004',
internalId:  'aars20invrz311f3c696b7f',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1235',
internalId:  '',
customField: '20090203-095107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4106',
internalId:  '',
customField: '20090203-102704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20090203-102704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20090203-104935'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '5001',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20090203-105546'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20090206-173732'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20090203-125036'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '8601',
internalId:  'aars20invrz311f4c738274',
customField: 'followUp'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INVRZ3';
var companyName   = 'MESACHE';
var htmlTitle	  = 'Mesache';
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 */					                                                            

