/* [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','4436',jdecode('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','8373',jdecode('About+us'),jdecode(''),'/8373.html','true',[],''],
	['PAGE','67527',jdecode('Our+Hotel'),jdecode(''),'/67527/index.html','true',[ 
		['PAGE','67554',jdecode('Accommodation'),jdecode(''),'/67527/67554.html','true',[],''],
		['PAGE','67581',jdecode('Wine+%26+Dine'),jdecode(''),'/67527/67581.html','true',[],''],
		['PAGE','67608',jdecode('Fitness%2FWellness'),jdecode(''),'/67527/67608.html','true',[],'']
	],''],
	['PAGE','67701',jdecode('Accommodation+Prices'),jdecode(''),'/67701/index.html','true',[ 
		['PAGE','67728',jdecode('Special+Offers'),jdecode(''),'/67701/67728.html','true',[],'']
	],''],
	['PAGE','68602',jdecode('Hotel+Photos'),jdecode(''),'/68602.html','true',[],''],
	['PAGE','8454',jdecode('Career+Opportunites'),jdecode(''),'/8454.html','true',[],''],
	['PAGE','8481',jdecode('Contact+Us'),jdecode(''),'/8481/index.html','true',[ 
		['PAGE','64302',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/8481/64302.html','false',[],'']
	],''],
	['PAGE','67403',jdecode('How+to+find+us'),jdecode(''),'/67403.html','true',[],''],
	['PAGE','69304',jdecode('Driving+Directions'),jdecode(''),'/69304.html','true',[],''],
	['PAGE','65409',jdecode('Business+News'),jdecode(''),'/65409/index.html','true',[ 
		['PAGE','10002',jdecode('Top+News'),jdecode(''),'/65409/10002.html','true',[],''],
		['PAGE','10038',jdecode('National'),jdecode(''),'/65409/10038.html','true',[],''],
		['PAGE','10202',jdecode('Market+Reports'),jdecode(''),'/65409/10202.html','true',[],'']
	],''],
	['PAGE','65501',jdecode('Other+News'),jdecode(''),'/65501/index.html','true',[ 
		['PAGE','63402',jdecode('Entertainment'),jdecode(''),'/65501/63402.html','true',[],''],
		['PAGE','10074',jdecode('Baseball'),jdecode(''),'/65501/10074.html','true',[],''],
		['PAGE','63502',jdecode('Travel'),jdecode(''),'/65501/63502.html','true',[],''],
		['PAGE','66902',jdecode('Weather'),jdecode(''),'/65501/66902.html','true',[],'']
	],''],
	['PAGE','65605',jdecode('Games'),jdecode(''),'/65605/index.html','true',[ 
		['PAGE','63538',jdecode('Suitcase'),jdecode(''),'/65605/63538.html','true',[],'']
	],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Activate';
					                                                                    
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 */					                                                            
