/* [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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','55',jdecode('Kayak+Rentals+%2FTrips'),jdecode(''), jdecode('%2F55.html'), 'true',[],'',''],
	['PAGE','2704',jdecode('Kayak%2Fbike+Rentals'),jdecode(''), jdecode('%2F2704.html'), 'true',[],'',''],
	['PAGE','2869',jdecode('Photos'),jdecode(''), jdecode('%2F2869.html'), 'true',[],'',''],
	['PAGE','3782',jdecode('Kayaks+%2F+Paddle+Boards'),jdecode(''), jdecode('%2F3782.html'), 'true',[],'',''],
	['PAGE','5652',jdecode('Directions'),jdecode(''), jdecode('%2F5652.html'), 'true',[],'','']];
var siteelementCount=5;
theSitetree.topTemplateName='Beach';
theSitetree.paletteFamily='94A3E7';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10565';
theSitetree.graphicsetId='10927';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='94B4E7';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLYTCPXC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Beach',
				paletteFamily: 	'94A3E7',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10565',
				graphicsetId: 	'10927',
				contentColor: 	'000000',
				contentBGColor: '94B4E7',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FF503F',
				e_color: 		'FF503F',
				f_color: 		'FF503F',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '55',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-6c85f11a83bd34201a3f5bf0faaa6a52']={
webappId:    '7060',
documentId:  '2869',
internalId:  '6c85f11a83bd34201a3f5bf0faaa6a52',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55',
internalId:  '',
customField: '20120203-155721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2704',
internalId:  '',
customField: '20120126-113800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2869',
internalId:  '',
customField: '20111208-122720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3782',
internalId:  '',
customField: '20120124-122011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5652',
internalId:  '',
customField: '20111208-121538'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INX278';
var companyName   = 'Tropical+Kayaks+Palm+Coast';
var htmlTitle	  = 'Florida+kayak+rentals%2C+kayak+tours%2C++kayak+sales%2C+bike+rentals%2C+in+palm+coast%2C+flagler+beach%2C+Ormond+beach+%2C+florida+Kayak+';
var metaKeywords  = 'tropical+kayaks%2C++kayak+retnals+palm+coast%2CFlorida%2Ckayak+with+dolphins%2CSt.+Augsutine+stand+up+paddleboards%2C+electric+boat+rentals%2C+Daytona+kayak%2C+bike+rentals+%2CPalm+coast+paddleboarding%2C+%2Cboat+rentals+%2Ckayaking+%2C+marineland+kayak+eco+tours%2Cflagler+beach%2C+tropical+Kayaks%2CFlorida+kayak+eco+tours%2C+kayak++with++dolphins%2C+kayak+rental%2Cdolphins+with++kayaks+rentals%2C+kayaking+with++manatees++%2Ctropical++kayaking++with+dolphins%2C+kayak+%2C+and+bike++rentals+in++palm+coast+%2Cestuary+guided+kayak+trips%2Cvisit+flagler+%2Ckayak+cafe%2C+boats+for+sale+florida%2C+flagler+chamber+of+commerce%2C+tropical+kayaks%2C+Bings+Landing%2C+chamber+of+commerce+events+%2CCinnomon+Beach%2C++Ocean+hammock+beach+resort+%2C+kayak++Flagler+beach%2CFlagler+parks+kayaking%2C+Princess+Place%2C++florida+eco+tours%2C+++jacksonville+fishing%2C+guided+kayaking++trips%2C+paddling%2C++flagler+beach%2C++used+kayaks+for+sale%2Cflorida+state+parks%2Ckayak+trips++%2C++pellicer+creek%2CFavre+Dykes%2C++boats+for+sale+%2C+palm++coast+tours%2Cflorida+kayaking%2C+fl+kayak+tours%2C+daytona+yacht+brokers+%2C+hammock+beach+resort%2C+flagler+county%2C++palm+coast+marina+%2C++kayak+sales%2C++fishing%2Cwashington+oaks%2Cgamble+rogers+%2Cpalm+coast+resort%2C++Bings+Landing%2Cginn+resort%2C+faa%2Cyachtworld%2Celectric+boats%2Cestuary+guided+kayak+trips%2Cvisit+flagler+%2Ckayak+cafe%2C++kayak+dolphins%2Cboat+flagler%2C+boats+for+sale+florida+%2C+daytona+yachts+flagler+chamber+of+commerce%2C+tropical+kayaks%2C+Bings+Landing%2C+chamber+of+commerce+events%2Cvacation+rentals%2C++Ocean+hammock+beach+resort+%2C+kayak++Flagler+beach%2CFlagler+parks+kayaking%2C++florida+eco+tours%2C+++jacksonville+fishing%2C+guided+kayaking++trips%2C+paddling%2C++flagler+beach%2C++used+kayaks+for+sale%2Cflorida+state+parks%2Ckayak+trips++%2C++boats+for+sale+%2C++%2Cpalm++coast+tours%2Cflorida+kayaking%2C+fl+kayak+lessons+%2Cvacation+rentals+by+owner%2Chow+to+stand+up+paddleboard';
var metaContents  = 'Kayak+rentals%2C+Standup+Paddle+board+rentals+and+lessons+in+Palm+Coast%2C+Electric+boat+rentals.+visiting+Flagler+Beach%3F+St.+Augustine%2C+Ormond+beach+or+on+vacation+in+Daytona%3F++Paddle+with+Tropical+Kayaks+%2C+the+dolphins+%26++Manatees+do%21+We+offer+seasonal++Florida+kayak+eco+tours%2C+year+round+kayak+rentals%2C+and+bike++rentals+in++palm+coast+.Beginners+welcome%2C+brief+lesson+provided+and+map+of+the+area+for+easy+paddling+into+creeks+and+Manatee+Cove%21+Always+a+cool+breeze+on+the+water+with+Tropical+Kayaks+Palm+Coast.';
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) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	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();
};

