/* [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','4476',jdecode('Inicio'),jdecode(''),'/4476.html','true',[],''],
	['PAGE','58862',jdecode('Noticias'),jdecode(''),'/58862.html','true',[],''],
	['PAGE','48931',jdecode('Judo'),jdecode(''),'/48931/index.html','true',[ 
		['PAGE','59668',jdecode('Competiciones+2005'),jdecode(''),'/48931/59668.html','true',[],''],
		['PAGE','48985',jdecode('Competiciones+2004'),jdecode(''),'/48931/48985.html','true',[],'']
	],''],
	['PAGE','50495',jdecode('Jiu+Jitsu%2FDef.+Personal'),jdecode(''),'/50495.html','true',[],''],
	['PAGE','50522',jdecode('Aikido'),jdecode(''),'/50522.html','true',[],''],
	['PAGE','50549',jdecode('Karate'),jdecode(''),'/50549/index.html','true',[ 
		['PAGE','131060',jdecode('Archivos'),jdecode(''),'/50549/131060.html','true',[],''],
		['PAGE','131081',jdecode('Noticias'),jdecode(''),'/50549/131081.html','true',[],''],
		['PAGE','129660',jdecode('Fotos'),jdecode(''),'/50549/129660.html','true',[],''],
		['PAGE','131102',jdecode('Alumnos'),jdecode(''),'/50549/131102.html','true',[],''],
		['PAGE','131123',jdecode('Enlaces'),jdecode(''),'/50549/131123.html','true',[],'']
	],''],
	['PAGE','58362',jdecode('Gimnasio'),jdecode(''),'/58362.html','true',[],''],
	['PAGE','50576',jdecode('Horarios'),jdecode(''),'/50576.html','true',[],''],
	['PAGE','61562',jdecode('Videos'),jdecode(''),'/61562.html','true',[],''],
	['PAGE','116594',jdecode('Fotos'),jdecode(''),'/116594.html','true',[],''],
	['PAGE','59162',jdecode('Sitios+interesantes'),jdecode(''),'/59162.html','true',[],''],
	['PAGE','41890',jdecode('Donde+encontrarnos'),jdecode(''),'/41890.html','true',[],''],
	['PAGE','49701',jdecode('Instalaciones'),jdecode(''),'/49701.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Lines';
theSitetree.paletteFamily='7AAD50';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='137';
theSitetree.graphicsetId='151';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Lines',
				paletteFamily: 	'7AAD50',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'137',
				graphicsetId: 	'151',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'7AAD50',
				b_color: 		'52852A',
				c_color: 		'000000',
				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:  '58862',
internalId:  '',
customField: '20090421-172802'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4476',
internalId:  '',
customField: '20071016-231440'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4476',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131060',
internalId:  '',
customField: '20090217-091159'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '41890',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4476',
internalId:  '793079',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131081',
internalId:  '',
customField: '20090706-065736'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '129660',
internalId:  '',
customField: '20090217-092650'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48931',
internalId:  '',
customField: '20070625-220926'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131102',
internalId:  '',
customField: '20090427-084506'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '59668',
internalId:  '',
customField: '20070623-231755'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48985',
internalId:  '',
customField: '20080930-001255'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50495',
internalId:  '',
customField: '20050416-094257'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50522',
internalId:  '',
customField: '20050715-233118'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50549',
internalId:  '',
customField: '20090219-080959'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58362',
internalId:  '',
customField: '20070625-220351'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50576',
internalId:  '',
customField: '20070625-215557'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131123',
internalId:  '',
customField: '20090217-092618'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61562',
internalId:  '',
customField: '20080930-000405'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '116594',
internalId:  '',
customField: '20081222-111215'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '59162',
internalId:  '',
customField: '20061018-001941'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41890',
internalId:  '',
customField: '20041217-213728'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49701',
internalId:  '',
customField: '20050106-234352'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010IN27KL';
var companyName   = 'GIMNASIO+ESPORTIU+VALENCIA';
var htmlTitle	  = 'Esportiu+Valencia.+Club+de+Artes+Marciales.';
var metaKeywords  = 'judo%2C+aikido%2C+defensa+personal%2C+karate%2C+artes+marciales';
var metaContents  = 'Club+de+judo';
					                                                                    
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 */					                                                            
