/* [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('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','5501',jdecode('OBRA+GR%C3%81FICA'),jdecode(''),'/5501.html','true',[],''],
	['PAGE','64101',jdecode('Biograf%C3%ADa'),jdecode(''),'/64101.html','true',[],''],
	['PAGE','54901',jdecode('Toros+de+Mesa'),jdecode(''),'/54901.html','true',[],''],
	['PAGE','57001',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/57001/index.html','true',[ 
		['PAGE','57301',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/57001/57301.html','false',[],'']
	],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='336699';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='94';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Galerie',
				paletteFamily: 	'336699',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'94',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'336699',
				b_color: 		'D8F8F8',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '5501',
internalId:  '113ca3ae9f2',
customField: 'g.12f53dss0.2ili5isascm.3o'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080318-214438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57001',
internalId:  '',
customField: '20071116-145747'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '57001',
internalId:  'aars20in398t11648bd0521',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '57301',
internalId:  'aars20in398t11648bd0521',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20070718-213435'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64101',
internalId:  '',
customField: '20080326-150005'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20090410-151913'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57301',
internalId:  '',
customField: '20071116-145415'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN398T';
var companyName   = 'TRAVER+GRI%C3%91%C3%93';
var htmlTitle	  = 'www.travergrinyo.com';
var metaKeywords  = 'traver+gri%C3%B1%C3%B3%2Ctoros+de+mesa%2C+naipes%2C+baraja+taurina%2C+cartas%2C+pintura%2C+arte%2C+creaci%C3%B3n%2C+genio%2C+art%2C+painting%2C+design%2C+modern+art%2C+arte+moderno%2C+creative%2C+serigrafias%2C+humor%2C+imaginaci%C3%B3n%2C+imagination';
var metaContents  = 'Web+del+artista+Traver+Gri%C3%B1o.+Pintor+autodidacta+nacido+en+Castell%C3%B3n%2C+creador+de+la+baraja+taurina+Toros+de+Mesa.';
					                                                                    
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 */					                                                            
