/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Fishing+Reports'),jdecode(''),'/452.html','true',[],''],
	['PAGE','536',jdecode('Guides'),jdecode(''),'/536.html','true',[],''],
	['PAGE','5101',jdecode('Marinas'),jdecode(''),'/5101.html','true',[],''],
	['PAGE','5143',jdecode('Lodging'),jdecode(''),'/5143.html','true',[],''],
	['PAGE','5122',jdecode('Campgrounds'),jdecode(''),'/5122.html','true',[],''],
	['PAGE','5522',jdecode('Links+of+Interest'),jdecode(''),'/5522.html','true',[],''],
	['PAGE','5164',jdecode('Under+Development'),jdecode(''),'/5164.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Cube';
theSitetree.paletteFamily='154186';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10605';
theSitetree.graphicsetId='10488';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Cube',
				paletteFamily: 	'154186',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10605',
				graphicsetId: 	'10488',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				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['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN2KB1';
var companyName   = 'Lake+Weiss+Guide';
var htmlTitle	  = 'Lake+Weiss+Guide%2C+Complete+Source+for+Crappie+Bass+Fishing+Reports+Guides+Marinas+Campgrounds';
var metaKeywords  = 'lake%2Cweiss%2C+lake+weiss%2C+weiss+lake%2C+guide%2C+fishing%2C+fishing+guide%2C+crappie+guide%2C+lake+weiss+fishing+guide%2C+weiss+lake+fishing+guide%2C+lake+weiss+crappie+guide%2C+weiss+lake+crappie+guide%2C+alabama%2C+crappie%2C+bass%2Cmarinas%2C+marina%2C+campground%2C+campgrounds%2Creal+estate%2C+fishing+reports%2C+weiss+lake+fishing+guides%2C+lake+weiss+fishing+guides%2C+lake+weiss+fishing+reports%2C+lake+weiss+crappie+lafishing+guide%2C+weiss+lake+crappie+fishing+guide%2C+lake+weiss+fishing+report%2C+weiss+lake+fishing+report%2C+lake+weiss+alabama%2C+lake+weiss+real+estate%2C+lake+weiss+guide+service%2C+lake+wiess+guide%2C+lake+weiss+fishing%2C+lake+weiss+crappie%2C+lake+weiss+realty%2C+lake+weiss+alabama+real+estate%2C+lake+weiss+rental%2C+lake+weiss+crappie+fishing%2C+lake+weiss+cabin+rental+lake+weiss+campground%2C+lake+weiss+lakefront+property%2C+fishing+guide+lake+weiss.';
var metaContents  = 'Lake+Weiss+Guide+is+your+one+source+for+Crappie%2C+Bass%2C+and+Striper+Fishing+Reports%2C+Fishing+Guides%2C+Marinas%2C+Lodging%2C+Motels%2C+Cabins%2C++Campgrounds%2C+Real+Estate%2C+and+Area+Links+of+Interest+in+and+around+Weiss+Lake+in+Alabama.++Lake+Weiss+is+the+Crappie+Capital+of+the+world.+++';
					                                                                    
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 */					                                                            
