/* [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','501',jdecode('El+Cock'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('Historia'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','4801',jdecode('1921-1945'),jdecode(''),'/552/4801.html','true',[],''],
		['PAGE','10101',jdecode('1945-1985'),jdecode(''),'/552/10101.html','true',[],''],
		['PAGE','10122',jdecode('1985-2009'),jdecode(''),'/552/10122.html','true',[],'']
	],''],
	['PAGE','4822',jdecode('Dise%C3%B1o+y+mobiliario'),jdecode(''),'/4822/index.html','true',[ 
		['PAGE','4843',jdecode('La+coleccion'),jdecode(''),'/4822/4843.html','true',[],''],
		['PAGE','15001',jdecode('Las+flores'),jdecode(''),'/4822/15001.html','true',[],''],
		['PAGE','4864',jdecode('Las+publicaciones'),jdecode(''),'/4822/4864.html','true',[],'']
	],''],
	['PAGE','573',jdecode('Cocktails'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','4885',jdecode('Mojito'),jdecode(''),'/573/4885.html','true',[],''],
		['PAGE','4906',jdecode('Dry+Martini'),jdecode(''),'/573/4906.html','true',[],''],
		['PAGE','4927',jdecode('Gin+Fizz'),jdecode(''),'/573/4927.html','true',[],'']
	],''],
	['PAGE','594',jdecode('Fiestas'),jdecode(''),'/594/index.html','true',[ 
		['PAGE','4948',jdecode('Arte'),jdecode(''),'/594/4948.html','true',[],''],
		['PAGE','4969',jdecode('Literatura'),jdecode(''),'/594/4969.html','true',[],''],
		['PAGE','4990',jdecode('Cine'),jdecode(''),'/594/4990.html','true',[],''],
		['PAGE','13601',jdecode('Musica'),jdecode(''),'/594/13601.html','true',[],''],
		['PAGE','5011',jdecode('Fiestas+privadas'),jdecode(''),'/594/5011.html','true',[],'']
	],''],
	['PAGE','20901',jdecode('Prensa'),jdecode(''),'/20901.html','true',[],''],
	['PAGE','615',jdecode('Contacto'),jdecode(''),'/615.html','true',[],''],
	['PAGE','6701',jdecode('Mapa+de+acceso'),jdecode(''),'/6701.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='84';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='CCD6E0';
var theTemplate={
				name: 			'Galerie',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'84',
				contentColor: 	'000066',
				contentBGColor: 'CCD6E0',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003366',
				b_color: 		'CCCC99',
				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['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20081006-121403'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20081111-124037'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20081007-062215'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20081111-130919'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4822',
internalId:  '',
customField: '20081111-124711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4843',
internalId:  '',
customField: '20081111-123913'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4864',
internalId:  '',
customField: '20081014-081931'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4885',
internalId:  '',
customField: '20081111-120746'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4906',
internalId:  '',
customField: '20081111-130241'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4927',
internalId:  '',
customField: '20081111-130307'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20081111-122923'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4948',
internalId:  '',
customField: '20081014-082009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4969',
internalId:  '',
customField: '20081014-082935'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4990',
internalId:  '',
customField: '20081111-123029'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5011',
internalId:  '',
customField: '20081111-123053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20081027-115001'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '6701',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20081003-144522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20081014-074745'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10122',
internalId:  '',
customField: '20081111-124545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20081111-122946'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20081111-123949'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20081201-153558'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INV9LB';
var companyName   = 'Bar+Cock';
var htmlTitle	  = 'Bar+Cock+-+Cocktail+Bar+-+Madrid';
var metaKeywords  = '';
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 */					                                                            

