/* [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('EMPRESA'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','6201',jdecode('QUIENES+SOMOS+%28follow+up+page%29'),jdecode(''),'/401/6201.html','false',[],'']
	],''],
	['PAGE','452',jdecode('SERVICIOS+'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','6401',jdecode('SERVICIOS++%28follow+up+page%29'),jdecode(''),'/452/6401.html','false',[],'']
	],''],
	['PAGE','473',jdecode('PRECIOS'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','7301',jdecode('PRECIOS+%28follow+up+page%29'),jdecode(''),'/473/7301.html','false',[],'']
	],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Cuy';
theSitetree.paletteFamily='F3FAFB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='385';
theSitetree.graphicsetId='437';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F3FAFB';
var theTemplate={
				name: 			'Cuy',
				paletteFamily: 	'F3FAFB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'385',
				graphicsetId: 	'437',
				contentColor: 	'000000',
				contentBGColor: 'F3FAFB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F3FAFB',
				b_color: 		'A9C9CD',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090925-101128'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090925-101201'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090925-101044'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '401',
internalId:  'aars20in3z1s11aa7036c7b',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6201',
internalId:  'aars20in3z1s11aa7036c7b',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '452',
internalId:  'aars20in3z1s11aa7151d91',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6401',
internalId:  'aars20in3z1s11aa7151d91',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20080620-192637'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20080620-194556'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '473',
internalId:  'aars20in3z1s11ab680e4f5',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7301',
internalId:  'aars20in3z1s11ab680e4f5',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20080623-193758'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3Z1S';
var companyName   = 'REPARACIONDEBARCOS.COM';
var htmlTitle	  = 'Glomar+sevicios+n%C3%A1uticos.+Reparaci%C3%B3n+de+barcos+en+San+Pedro+del+Pinatar%2C+Murcia.+Boat+repairs%2C+wood%2C+polyester%2C+fyberglass%2C+cleaning+and+mantenence.+Schiffsreparatur%2C+holz+und+polyesterarbeiten%2C+anstriche.+Entstandhaltung%2C+wartung+und+reinigung.+la+manga';
var metaKeywords  = 'reparacion+de+barcos+embarcaciones+madera+pintura+poliester+fibra+mecanica+electricidad%2C+boat+repairs%2C+wood%2C+polyester%2C+fyberglass%2C+cleaning+and+mantenence.+Schiffsreparatur%2C+holz+und+polyesterarbeiten%2Canstriche.+Entstandhaltung%2C+wartung+und+reinigung.+la+manga+del+mar+menor%2C+cabo+de+palos%2C+los+alcazares%2C+los+nietos%2C+los+urrutias%2C+lo+pag%C3%A1n%2C+Santiago+de+la+ribera%2C+campoamor%2C+cabo+roig%2C+torrevieja%2C+alicante.+arreglar+barcos%2C+pintar+barcos%2C+pintura+barcos%2C+reparar+barcos%2C+jarcias%2C+velas%2C+';
var metaContents  = 'reparacion+de+barcos+embarcaciones+madera+pintura+poliester+fibra+mecanica+electricidad+en+san+pedro+del+pinatar%2C+murcia%2C+boat+repairs%2C+wood%2C+polyester%2C+fyberglass%2C+cleaning+and+mantenence.+Schiffsreparatur%2C+holz+und+polyesterarbeiten%2Canstriche.+Entstandhaltung%2C+wartung+und+reinigung.+la+manga+del+mar+menor%2C+cabo+de+palos%2C+los+alcazares%2C+los+nietos%2C+los+urrutias%2C+lo+pag%C3%A1n%2C+Santiago+de+la+ribera%2C+campoamor%2C+cabo+roig%2C+torrevieja%2C+alicante.+arreglar+barcos%2C+pintar+barcos%2C+pintura+barcos%2C+reparar+barcos%2C+jarcias%2C+velas%2C+';
					                                                                    
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 */					                                                            
