/* [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','4456',jdecode('Home'),jdecode(''),'/4456.html','true',[],''],
	['PAGE','4513',jdecode('Asociados'),jdecode(''),'/4513.html','true',[],''],
	['PAGE','4540',jdecode('Afiliaci%C3%B3n'),jdecode(''),'/4540.html','true',[],''],
	['PAGE','4567',jdecode('Noticias+y+Documentos'),jdecode(''),'/4567.html','true',[],''],
	['PAGE','4594',jdecode('Contacto'),jdecode(''),'/4594/index.html','true',[ 
		['PAGE','5747',jdecode('Contacto+%28follow+up+page%29'),jdecode(''),'/4594/5747.html','false',[],'']
	],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='1380';
theSitetree.keyvisualName='buero1.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='292';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'000066',
				keyvisualId: 	'1380',
				keyvisualName: 	'buero1.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'292',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4456',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4594',
internalId:  'aas010ine71z10a4944018b',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5747',
internalId:  'aas010ine71z10a4944018b',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4456',
internalId:  '',
customField: '20070725-014313'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4513',
internalId:  '',
customField: '20080206-091452'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4540',
internalId:  '',
customField: '20070208-022753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4567',
internalId:  '',
customField: '20090219-162638'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4594',
internalId:  '',
customField: '20070208-014229'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5747',
internalId:  '',
customField: '20060330-054814'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010INE71Z';
var companyName   = 'FENAN';
var htmlTitle	  = 'FEDERACION+ESPA%C3%91OLA+DE+ALQUILER+NAUTICO';
var metaKeywords  = 'federacion+espa%C3%B1ola+alquiler+nautico+turismo+barcos+embarcaciones+yates+cruceros+charter+nautica+organismos+asociaciones+navegacion';
var metaContents  = 'P%C3%A1gina+oficial+de+la+FEDERACION+ESPA%C3%91OLA+DE+ALQUILER+NAUTICO%2C+entidad+de+car%C3%A1cter+privado%2C+independiente+y+con+fines+no+lucrativos%2C+cuyos+objetivos+son+la+mejora+de+las+condiciones+del+sector%2C+su+correcta+regulaci%C3%B3n+y+el+impulso+del+mismo.+';
					                                                                    
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 */					                                                            
