/* [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','301',jdecode('Inicio'),jdecode(''),'/301.html','true',[],''],
	['PAGE','394',jdecode('Especialidades'),jdecode(''),'/394/index.html','true',[ 
		['PAGE','478',jdecode('Implantes'),jdecode(''),'/394/478.html','true',[],''],
		['PAGE','3101',jdecode('Ortodoncia'),jdecode(''),'/394/3101.html','true',[],''],
		['PAGE','457',jdecode('Pr%C3%B3tesis+dentales'),jdecode(''),'/394/457.html','true',[],''],
		['PAGE','3122',jdecode('Endodoncia'),jdecode(''),'/394/3122.html','true',[],''],
		['PAGE','415',jdecode('Periodoncia'),jdecode(''),'/394/415.html','true',[],''],
		['PAGE','3143',jdecode('Est%C3%A9tica+Dental'),jdecode(''),'/394/3143.html','true',[],''],
		['PAGE','436',jdecode('Cirug%C3%ADa+Maxilo+facial'),jdecode(''),'/394/436.html','true',[],''],
		['PAGE','3164',jdecode('A.T.M.'),jdecode(''),'/394/3164.html','true',[],''],
		['PAGE','3501',jdecode('Caries'),jdecode(''),'/394/3501.html','true',[],'']
	],''],
	['PAGE','520',jdecode('Informaci%C3%B3n+Pacientes'),jdecode(''),'/520/index.html','true',[ 
		['PAGE','49201',jdecode('Higiene+Dental'),jdecode(''),'/520/49201.html','true',[],''],
		['PAGE','3543',jdecode('Implantes'),jdecode(''),'/520/3543.html','true',[],''],
		['PAGE','39101',jdecode('Sustituir++diente'),jdecode(''),'/520/39101.html','true',[],''],
		['PAGE','39501',jdecode('Varios++dientes'),jdecode(''),'/520/39501.html','true',[],''],
		['PAGE','39522',jdecode('Todos+los+dientes'),jdecode(''),'/520/39522.html','true',[],'']
	],''],
	['PAGE','499',jdecode('Enlaces+de+inter%C3%A9s'),jdecode(''),'/499.html','true',[],''],
	['PAGE','541',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/541.html','true',[],''],
	['PAGE','562',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/562/index.html','true',[ 
		['PAGE','583',jdecode('D%C3%B3nde+encontranos'),jdecode(''),'/562/583.html','true',[],''],
		['PAGE','625',jdecode('Gabinete+m%C3%A9dico'),jdecode(''),'/562/625.html','true',[],'']
	],''],
	['PAGE','3901',jdecode('Mapa+de+acceso'),jdecode(''),'/3901.html','true',[],''],
	['PAGE','4701',jdecode('Imagenes+de+la+Clinica'),jdecode(''),'/4701.html','true',[],''],
	['PAGE','42101',jdecode('PERSONAL'),jdecode(''),'/42101.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='FFCC33';
theSitetree.keyvisualId='1010';
theSitetree.keyvisualName='zahnaerztin.jpg';
theSitetree.fontsetId='167';
theSitetree.graphicsetId='199';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'NewYork',
				paletteFamily: 	'FFCC33',
				keyvisualId: 	'1010',
				keyvisualName: 	'zahnaerztin.jpg',
				fontsetId: 		'167',
				graphicsetId: 	'199',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'FFCC33',
				c_color: 		'000000',
				d_color: 		'406BC0',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '301',
internalId:  '251517',
customField: '1501'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '3901',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '4701',
internalId:  '11195bb2bfd',
customField: 'g.126ar35ck.q5t08b9bfe.3o'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '42101',
internalId:  '1119e2284fe',
customField: 'g.126f1mdbl.c8khd7vno8.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20070331-184336'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20070328-232402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '478',
internalId:  '',
customField: '20070407-110902'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20070407-113632'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '457',
internalId:  '',
customField: '20070328-234003'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3122',
internalId:  '',
customField: '20070407-113314'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20070329-001133'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3143',
internalId:  '',
customField: '20070331-193737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '436',
internalId:  '',
customField: '20070328-235946'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3164',
internalId:  '',
customField: '20070329-001008'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20070329-001800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '520',
internalId:  '',
customField: '20070329-002620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49201',
internalId:  '',
customField: '20070407-120531'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3543',
internalId:  '',
customField: '20070330-015225'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39101',
internalId:  '',
customField: '20070330-013400'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20070330-014737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39522',
internalId:  '',
customField: '20070330-014010'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '499',
internalId:  '',
customField: '20070417-234807'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '541',
internalId:  '',
customField: '20070417-115706'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '562',
internalId:  '',
customField: '20070407-123921'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '583',
internalId:  '',
customField: '20070328-162457'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '625',
internalId:  '',
customField: '20070331-184535'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20070328-012051'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20070329-174041'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42101',
internalId:  '',
customField: '20070329-174116'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020INXHVR';
var companyName   = 'POLICLINICA+DENTAL+PASAJE+2';
var htmlTitle	  = 'CLINICA+DENTAL+PASAJE+2';
var metaKeywords  = 'CLINICA+DENTAL+IMPLANTES+ORTODONCIA+PROTESIS+ENDODONCIA';
var metaContents  = 'CLINICA+DENTAL%2C+IMPLANTES%2C+ORTODONCIA%2C+PROTESIS%2C+ESTETICA%2C+CIRUGIA+ORAL+Y+MAXILOFACIAL';
					                                                                    
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 */					                                                            
