/* [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','86',jdecode('Home'),jdecode(''),'/86.html','true',[],''],
	['PAGE','107',jdecode('About+Us'),jdecode(''),'/107.html','true',[],''],
	['PAGE','116',jdecode('Our+Baits'),jdecode(''),'/116/index.html','true',[ 
		['PAGE','125',jdecode('Small+Baits'),jdecode(''),'/116/125.html','true',[],''],
		['PAGE','134',jdecode('Medium+Baits'),jdecode(''),'/116/134.html','true',[],''],
		['PAGE','143',jdecode('Large+Baits'),jdecode(''),'/116/143.html','true',[],'']
	],''],
	['PAGE','152',jdecode('News'),jdecode(''),'/152.html','true',[],''],
	['PAGE','161',jdecode('The+Gallery'),jdecode(''),'/161.html','true',[],''],
	['PAGE','170',jdecode('Links'),jdecode(''),'/170.html','true',[],''],
	['PAGE','179',jdecode('Contact'),jdecode(''),'/179/index.html','true',[ 
		['PAGE','1152',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/179/1152.html','false',[],'']
	],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Groove';
theSitetree.paletteFamily='B6B3B8';
theSitetree.keyvisualId='6016';
theSitetree.keyvisualName='kv_6016.jpg';
theSitetree.fontsetId='11123';
theSitetree.graphicsetId='11916';
theSitetree.contentColor='5F5F60';
theSitetree.contentBGColor='E4E4E6';
var theTemplate={
				name: 			'Groove',
				paletteFamily: 	'B6B3B8',
				keyvisualId: 	'6016',
				keyvisualName: 	'kv_6016.jpg',
				fontsetId: 		'11123',
				graphicsetId: 	'11916',
				contentColor: 	'5F5F60',
				contentBGColor: 'E4E4E6',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				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['1006']={
webappId:    '1006',
documentId:  '86',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '179',
internalId:  'awh010in2cng110999e6b96',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1152',
internalId:  'awh010in2cng110999e6b96',
customField: 'followUp'
};
var canonHostname = 'cm4all.west-datacenter.net';
var accountId     = 'AWH010IN2CNG';
var companyName   = 'BASSCHOW+-+The+Ultimate+In+Hand+Pours';
var htmlTitle	  = 'BASSCHOW+-+The+Ultimate+In+Hand+Pours%21';
var metaKeywords  = '%2Fbass%2C+fishing%2C+Bass%2C+Fishing%2C+lures%2C+finesse%2C+hand+pour%2C+handpoured%2C+largemouth%2C+smallmouth%2C+Southern+California%2C+Western%2C+plastic%2C+worms%2C+baits%2C+angler%2C+fish%2C+outdoors%2C+lunker%2C+hawg%2C+artificial%2C+keeper%2C+tackle%2C+handmade%2C+rubber';
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 */					                                                            
