/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','3001',jdecode('Home'),jdecode(''),'/3001.html','true',[],''],
	['PAGE','3052',jdecode('About+The+Capt'),jdecode(''),'/3052.html','true',[],''],
	['PAGE','3073',jdecode('Boat+Deliveries'),jdecode(''),'/3073.html','true',[],''],
	['PAGE','13601',jdecode('Request+Delivery+Estimate'),jdecode(''),'/13601.html','true',[],''],
	['PAGE','5401',jdecode('Offshore+Charters'),jdecode(''),'/5401.html','true',[],''],
	['PAGE','13301',jdecode('Book+your+Charter'),jdecode(''),'/13301.html','true',[],''],
	['PAGE','3094',jdecode('Links'),jdecode(''),'/3094.html','true',[],''],
	['PAGE','4101',jdecode('Photos+%26+Guestbook'),jdecode(''),'/4101.html','true',[],''],
	['PAGE','3115',jdecode('Contact'),jdecode(''),'/3115.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Mote';
theSitetree.paletteFamily='0450C2';
theSitetree.keyvisualId='11108';
theSitetree.keyvisualName='kv_11108.jpg';
theSitetree.fontsetId='31998';
theSitetree.graphicsetId='13828';
theSitetree.contentColor='8E8C8C';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Mote',
				paletteFamily: 	'0450C2',
				keyvisualId: 	'11108',
				keyvisualName: 	'kv_11108.jpg',
				fontsetId: 		'31998',
				graphicsetId: 	'13828',
				contentColor: 	'8E8C8C',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20080607-162645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3052',
internalId:  '',
customField: '20080607-194523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3073',
internalId:  '',
customField: '20080607-194232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3094',
internalId:  '',
customField: '20080703-192740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3115',
internalId:  '',
customField: '20080607-193854'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3001',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-4101aendu0in2uhs']={
webappId:    '1002',
documentId:  '4101',
internalId:  '4101aendu0in2uhs',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20080607-175705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20080607-192945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20080608-103309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20080608-103254'
};
webappMappings['7008']=webappMappings['7008-4809']={
webappId:    '7008',
documentId:  '13301',
internalId:  '4809',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-4810']={
webappId:    '7008',
documentId:  '13601',
internalId:  '4810',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2UHS';
var companyName   = 'Captain+Lon%27s+Boat+Delivery+%26+Charter+Service';
var htmlTitle	  = 'Captain+Lons+Boat+Delivery+and+Charter+Service';
var metaKeywords  = 'Fishing+Charter+Service+Boat+Delivery+Boat+Transport+Boat+25+Ton+King+Fish+Dolphin+Mahi+Mahi+Grouper+Cape+Canaveral+Sebastin+Inlet+Fort+Pierce+power+yatcht+transport+coast+guard+port+canaveral+charters+deep+sea+fishing+offshore+fishing+penn+reel+wahoo+catch+fish+pelican+flats+florida+charters+service+boston+new+york+charleston+north+south+carolina+georgia+keys+key+west+north+south+palm+beach+fort+lauderdale+tampa+fort+myers+marco+island+marathon+key+naussa+bahamas+sheepshead+kingfish+gulf+of+mexico+atlantic+ocean+weed+line+gulf+stream+tuna+flats+bouy+wreck+dive+east+central+florida+fl+captain+cocoa+beach+melbourne+titusville+merritt+island+Disney+Universal+studios+brevard+zoo+kennedy+space+center+orlando+amberjack+barracuda+cobia+cape+canaveral+charter+dolphin+fishing+weed+line+bottom+fishing+flying+fish+gouper+catch+fish+record+breaker+vacation+fishing+disney+cocoa+beach+patrick+air+force+base+bike+week+biketoberfest+captain+for+hire+captain+east+coast+captain+yacht+captain+gulf+of+mexico+tampa+bay+saint+johns+river+st.+johns+river+indian+atlantic+indian+river+long+point+park+brevard+florida+ballyhoo+island+hopper+rig+downrigger+outrigger+leader+fishing+tournament+record+holder+gulf+stream+blackfin+tuna';
var metaContents  = 'Captain+Lons+Boat+Delivery+and+Charter+Service+operates+The+Brandy+II+out+of+Port+Canaveral%2C+Sebastian+Inlet%2C+and+Fort+Pierce+Florida.+I+conduct+small+group+charters+from+any+of+these+locations.I+also+will+deliver+or+captain+your+boat+along+the+east+coast+of+the+United+States+or+to+the+Islands.I+offer+instruction+to+new+boat+owners+or+those+moving+up+to+larger+boats.I+will+also+assist+boat+owners+in+offshore+navigation+or+learning+techniques+of+offshore+fishing.+When+offshore+fishing+I+enjoy+having+youngsters+aboard+to+share+in+the+enjoyment+of+a+family+sport.+++';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            
