/* [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','22',jdecode('Home'),jdecode(''),'/22.html','true',[],''],
	['PAGE','2611',jdecode('Photo+Album'),jdecode(''),'/2611.html','true',[],''],
	['PAGE','394',jdecode('Rates+%26+Deposits'),jdecode(''),'/394.html','true',[],''],
	['PAGE','403',jdecode('Amenities'),jdecode(''),'/403.html','true',[],''],
	['PAGE','2840',jdecode('Local+Attractions'),jdecode(''),'/2840.html','true',[],''],
	['PAGE','412',jdecode('Car+Available'),jdecode(''),'/412.html','true',[],''],
	['PAGE','43',jdecode('Reservations'),jdecode(''),'/43/index.html','true',[ 
		['PAGE','2832',jdecode('Reservations+%28follow+up+page%29'),jdecode(''),'/43/2832.html','false',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Contrast';
theSitetree.paletteFamily='363C95';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16629';
theSitetree.graphicsetId='12215';
theSitetree.contentColor='191E6D';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Contrast',
				paletteFamily: 	'363C95',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16629',
				graphicsetId: 	'12215',
				contentColor: 	'191E6D',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '2611',
internalId:  '11b52168468',
customField: 'g.13d91d138.55fe09o5rfbnn.h5a40'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '43',
internalId:  'ahw050invmv1929b6292e66207b0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '2832',
internalId:  'ahw050invmv1929b6292e66207b0',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '22',
internalId:  '1006',
customField: '1006'
};
webappMappings['5003']={
webappId:    '5003',
documentId:  '22',
internalId:  'tid:1;pid:WSCSYSSSSLYTC245',
customField: 'en:US:'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INVMV1';
var companyName   = 'Villa+La+Paz+Puerto+Vallarta+Oceanfront+Rental';
var htmlTitle	  = 'Villa+La+Paz+-+Home+-+Puerto+Vallarta+Mexico+Vacation+Home+Rental';
var metaKeywords  = 'oceanfront+real+estate%2C+oceanfront%2C+oceanfront+condos%2C+oceanfront+rental%2C+oceanfront+property%2C+waterfront%2C+waterfront+property%2C+waterfront+home%2C+waterfront+properties%2C+waterfront+lake+property%2C+waterfront+rental%2C+mexico+vacation+rental%2C+mexico+rental%2C+home+rental+mexico+cozumel%2C+mexico+condo+rental%2C+mexico+rental+home%2C+rental+home%2C+holday+house%2C+holiday+house+vacation%2C+mexico+holiday%2C+holiday+in+mexico%2C+holiday+to+mexico%2C+house+in+mexico%2C+mexico+house%2C+Puerto+Vallarta+vacation+rental%2C+Puerto+Vallarta+house+rental%2C+Puerto+Vallarta+oceanfront+rental%2C+Puerto+Vallarta+oceanfront+house%2C+Puerto+Vallarta+oceanfront+Properties%2C+Puerto+Vallarta+oceanfront+vacation+rentals%2C+Puerto+Vallarta+waterfront+rentals%2C+Puerto+Vallarta+waterfront+vacation+homes%2C+Puerto+Vallarta+house+rental%2C+Bucerias+rental%2C+La+Cruz+rental%2C+Bucerias+house+rental%2C+La+Cruz+house+Rental';
var metaContents  = 'Ocean+Front+Vacation+Rental+-+Greater+Puerto+Vallarta+area%2C+Mexico.++Beautiful+4+bedroom+3+bath+home+at+affordable+rents.++Just+80+yards+from+the+waves+++';
					                                                                    
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 */					                                                            
