/* [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('CLUB'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','2001',jdecode('Noticias'),jdecode(''),'/401/2001.html','true',[],''],
		['PAGE','2022',jdecode('Objetivos'),jdecode(''),'/401/2022.html','true',[],''],
		['PAGE','2043',jdecode('Junta+Directiva'),jdecode(''),'/401/2043.html','true',[],''],
		['PAGE','2064',jdecode('Inscripcion'),jdecode(''),'/401/2064/index.html','true',[ 
			['PAGE','28401',jdecode('Inscripcion+%28follow+up+page%29'),jdecode(''),'/401/2064/28401.html','false',[],'']
		],'']
	],''],
	['PAGE','452',jdecode('SHARPEI'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','2106',jdecode('Historia'),jdecode(''),'/452/2106.html','true',[],''],
		['PAGE','2148',jdecode('Est%C3%A1ndar+'),jdecode(''),'/452/2148.html','true',[],''],
		['PAGE','2169',jdecode('Consejos'),jdecode(''),'/452/2169.html','true',[],'']
	],''],
	['PAGE','473',jdecode('ACTIVIDADES'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','85601',jdecode('Sharpeis+en+Adopcion'),jdecode(''),'/473/85601/index.html','true',[ 
			['PAGE','86601',jdecode('Sharpeis+en+Adopcion+%28follow+up+page%29'),jdecode(''),'/473/85601/86601.html','false',[],'']
		],''],
		['PAGE','2190',jdecode('Finales+Felices'),jdecode(''),'/473/2190.html','true',[],''],
		['PAGE','515',jdecode('Articulos'),jdecode(''),'/473/515.html','true',[],''],
		['PAGE','1706',jdecode('Libro+de+visitas'),jdecode(''),'/473/1706.html','true',[],''],
		['PAGE','1701',jdecode('Leer+libro+Visitas'),jdecode(''),'/473/1701.html','true',[],'']
	],''],
	['PAGE','494',jdecode('VETERINAMIGOS'),jdecode(''),'/494.html','true',[],''],
	['PAGE','536',jdecode('GALERIAS'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','22501',jdecode('Sharpeis+del+Club'),jdecode(''),'/536/22501.html','true',[],''],
		['PAGE','51501',jdecode('Veterinarios'),jdecode(''),'/536/51501.html','true',[],''],
		['PAGE','97801',jdecode('Concursos+Fotograficos'),jdecode(''),'/536/97801.html','true',[],'']
	],''],
	['PAGE','2211',jdecode('FORO'),jdecode(''),'/2211.html','true',[],''],
	['PAGE','2085',jdecode('Enlaces'),jdecode(''),'/2085/index.html','true',[ 
		['PAGE','52501',jdecode('Asociaciones+Sharpei'),jdecode(''),'/2085/52501.html','true',[],'']
	],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='2054';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='329';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'2054',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'329',
				graphicsetId: 	'383',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B0CBD6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090620-121100'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '3866720',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '1706',
internalId:  '1706aars20in3s87',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '1701',
internalId:  '1706aars20in3s87',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090430-212816'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090430-213840'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20090807-232146'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2022',
internalId:  '',
customField: '20090430-213803'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2043',
internalId:  '',
customField: '20090430-211802'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2064',
internalId:  '',
customField: '20090430-203925'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2085',
internalId:  '',
customField: '20090628-144309'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2106',
internalId:  '',
customField: '20080418-152045'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2148',
internalId:  '',
customField: '20080618-204751'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2169',
internalId:  '',
customField: '20080918-140747'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1706',
internalId:  '',
customField: '20090430-205345'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20080426-222743'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2190',
internalId:  '',
customField: '20090913-172824'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090430-205229'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080513-123354'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090430-210523'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2211',
internalId:  '',
customField: '20090103-010623'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '22501',
internalId:  '1196134a514',
customField: 'g.135gi9c8t.rt8uoc1as.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20080723-160239'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '2064',
internalId:  'aars20in3s871198ad20f68',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '28401',
internalId:  'aars20in3s871198ad20f68',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20080426-150032'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86601',
internalId:  '',
customField: '20090428-120634'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '97801',
internalId:  '121fd33b420',
customField: 'g.147umh0mt.3t8iav2e0jb.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '51501',
internalId:  '11c6cdeab65',
customField: 'g.13hmepf3d.1t1549mac1.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51501',
internalId:  '',
customField: '20080916-224217'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52501',
internalId:  '',
customField: '20090305-203639'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '85601',
internalId:  '',
customField: '20090620-120926'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '85601',
internalId:  'aars20in3s87120ec30ac44',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '86601',
internalId:  'aars20in3s87120ec30ac44',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97801',
internalId:  '',
customField: '20090620-123513'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3S87';
var companyName   = 'Club+SharPei+de+Canarias';
var htmlTitle	  = '';
var metaKeywords  = 'sharpei+canarias+sharpei+de+canarias+sharpei+en+canarias++sharpeidecanarias++sharpei+canarias+animales+protectora';
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 */					                                                            
