/* [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','1646',jdecode('Espa%C3%B1ol'),jdecode(''),'/1646/index.html','true',[ 
		['PAGE','1677',jdecode('Servicios+complementarios'),jdecode(''),'/1646/1677.html','true',[],''],
		['PAGE','1772',jdecode('Solicite+una+sala'),jdecode(''),'/1646/1772.html','true',[],''],
		['PAGE','7201',jdecode('Nuestras+salas'),jdecode(''),'/1646/7201.html','true',[],''],
		['PAGE','2601',jdecode('Quienes+Somos'),jdecode(''),'/1646/2601.html','true',[],''],
		['PAGE','1751',jdecode('Nuestra+ubicaci%C3%B3n'),jdecode(''),'/1646/1751.html','true',[],'']
	],''],
	['PAGE','11101',jdecode('Catal%C3%A0'),jdecode(''),'/11101/index.html','true',[ 
		['PAGE','11122',jdecode('Serveis+complementaris'),jdecode(''),'/11101/11122.html','true',[],''],
		['PAGE','11143',jdecode('Sol%C2%B7licita+una+sala'),jdecode(''),'/11101/11143.html','true',[],''],
		['PAGE','11164',jdecode('Les+nostres+salas'),jdecode(''),'/11101/11164.html','true',[],''],
		['PAGE','11185',jdecode('Qu%C3%AD+som%3F'),jdecode(''),'/11101/11185.html','true',[],''],
		['PAGE','11206',jdecode('Contacte'),jdecode(''),'/11101/11206.html','true',[],'']
	],''],
	['PAGE','12101',jdecode('English'),jdecode(''),'/12101/index.html','true',[ 
		['PAGE','12122',jdecode('Complementary+services'),jdecode(''),'/12101/12122.html','true',[],''],
		['PAGE','12143',jdecode('Ask+us+for+a+room'),jdecode(''),'/12101/12143.html','true',[],''],
		['PAGE','12164',jdecode('Our+rooms'),jdecode(''),'/12101/12164.html','true',[],''],
		['PAGE','12185',jdecode('About+us'),jdecode(''),'/12101/12185.html','true',[],''],
		['PAGE','12206',jdecode('Contact+us'),jdecode(''),'/12101/12206.html','true',[],'']
	],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='879ED6';
theSitetree.keyvisualId='6863';
theSitetree.keyvisualName='kv_6863.jpg';
theSitetree.fontsetId='11212';
theSitetree.graphicsetId='12030';
theSitetree.contentColor='354B86';
theSitetree.contentBGColor='94AAE1';
var theTemplate={
				name: 			'Angkor',
				paletteFamily: 	'879ED6',
				keyvisualId: 	'6863',
				keyvisualName: 	'kv_6863.jpg',
				fontsetId: 		'11212',
				graphicsetId: 	'12030',
				contentColor: 	'354B86',
				contentBGColor: '94AAE1',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'94AAE1',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11164',
internalId:  '',
customField: '20090114-171805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20090110-124040'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20090426-093839'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '1751',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:true;'
};
webappMappings['7008']={
webappId:    '7008',
documentId:  '1772',
internalId:  '2155',
customField: 'language:es;country:ES;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1646',
internalId:  '',
customField: '20100116-110817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1677',
internalId:  '',
customField: '20090112-210322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11143',
internalId:  '',
customField: '20090114-171735'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20090110-163800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11122',
internalId:  '',
customField: '20090114-171610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1751',
internalId:  '',
customField: '20090110-115615'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1772',
internalId:  '',
customField: '20090112-210147'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11185',
internalId:  '',
customField: '20090114-171309'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11206',
internalId:  '',
customField: '20090114-171402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20090426-093948'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12122',
internalId:  '',
customField: '20090116-195216'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12143',
internalId:  '',
customField: '20090116-194929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12164',
internalId:  '',
customField: '20090116-193044'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12185',
internalId:  '',
customField: '20090116-193734'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12206',
internalId:  '',
customField: '20090116-194040'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INVT97';
var companyName   = 'Mediar+On+Line';
var htmlTitle	  = 'Mediar+On+Line';
var metaKeywords  = 'mediacion%2C+mediaci%C3%B3n%2C+resoluci%C3%B3n+de+conflictos%2C+soluci%C3%B3n+de+conflictos+on+line%2C+adr%2C+rc%2C+conflictos%2C+problemas';
var metaContents  = 'Mediaci%C3%B3n+On+Line%2C+salas+de+mediaci%C3%B3n+sincronica+on+line%2C+para+mediadores+y+usuarios+que+deseen+solucionar+sus+conflictos+a+bajo+coste+y+sin+requerimientos+de+mobilidad+o+conocimientos+inform%C3%A1ticos+avanzados.';
					                                                                    
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 */					                                                            
