/* [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','501',jdecode('Home'),jdecode(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','552',jdecode('About+SWIMMERS'),jdecode(''), jdecode('%2F552.html'), 'true',[],'',''],
	['PAGE','657',jdecode('Childrens+Lessons'),jdecode(''), jdecode('%2F657%2Findex.html'), 'true',[ 
		['PAGE','678',jdecode('Water+Babies+%26+Toddlers'),jdecode(''), jdecode('%2F657%2F678.html'), 'true',[],'',''],
		['PAGE','699',jdecode('Pre+School'),jdecode(''), jdecode('%2F657%2F699.html'), 'true',[],'',''],
		['PAGE','720',jdecode('Big+Kids'),jdecode(''), jdecode('%2F657%2F720.html'), 'true',[],'','']
	],'',''],
	['PAGE','741',jdecode('Adult+Lessons'),jdecode(''), jdecode('%2F741.html'), 'true',[],'',''],
	['PAGE','762',jdecode('Swimfit'),jdecode(''), jdecode('%2F762.html'), 'true',[],'',''],
	['PAGE','24084',jdecode('Mommy+%26+Me+Classes'),jdecode(''), jdecode('%2F24084.html'), 'true',[],'',''],
	['PAGE','909',jdecode('Prices'),jdecode(''), jdecode('%2F909.html'), 'true',[],'',''],
	['PAGE','930',jdecode('Contact+Us%21'),jdecode(''), jdecode('%2F930%2Findex.html'), 'true',[ 
		['PAGE','20301',jdecode('Contact+Us%21+%28follow+up+page%29'),jdecode(''), jdecode('%2F930%2F20301.html'), 'false',[],'','']
	],'',''],
	['PAGE','2201',jdecode('FAQ%26%23x27%3Bs'),jdecode(''), jdecode('%2F2201%2Findex.html'), 'true',[ 
		['PAGE','3701',jdecode('Children%26%23x27%3Bs'),jdecode(''), jdecode('%2F2201%2F3701.html'), 'true',[],'',''],
		['PAGE','3722',jdecode('Adult%26%23x27%3Bs'),jdecode(''), jdecode('%2F2201%2F3722.html'), 'true',[],'','']
	],'',''],
	['PAGE','14601',jdecode('Booking+Form+-+Children%26%23x27%3Bs+Swim'),jdecode(''), jdecode('%2F14601.html'), 'true',[],'',''],
	['PAGE','14622',jdecode('Booking+Form+-+Adults+Swim'),jdecode(''), jdecode('%2F14622.html'), 'true',[],'',''],
	['PAGE','8901',jdecode('Testimonials+%28Adults%29'),jdecode(''), jdecode('%2F8901.html'), 'true',[],'',''],
	['PAGE','12201',jdecode('Qualifications'),jdecode(''), jdecode('%2F12201.html'), 'true',[],'',''],
	['PAGE','16701',jdecode('What+the+Press+Say%21'),jdecode(''), jdecode('%2F16701.html'), 'true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Caribic';
theSitetree.paletteFamily='7050FA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10579';
theSitetree.graphicsetId='10707';
theSitetree.contentColor='FDFBA6';
theSitetree.contentBGColor='B63636';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Caribic',
				paletteFamily: 	'7050FA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10579',
				graphicsetId: 	'10707',
				contentColor: 	'FDFBA6',
				contentBGColor: 'B63636',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100411-113528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090406-171133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20100411-121037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20100411-121151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20100411-115516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20100411-114247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20070620-161321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20070620-174122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '909',
internalId:  '',
customField: '20100810-104508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '930',
internalId:  '',
customField: '20110818-124441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20070621-143128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20080125-183930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20110110-143335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3722',
internalId:  '',
customField: '20110110-143356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20100411-120252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14622',
internalId:  '',
customField: '20100411-120321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20070618-184440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12201',
internalId:  '',
customField: '20070618-125648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20070620-174720'
};
webappMappings['7008']=webappMappings['7008-8897']={
webappId:    '7008',
documentId:  '930',
internalId:  '8897',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24084',
internalId:  '',
customField: '20090329-164427'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INE84A';
var companyName   = 'SWIMMERS';
var htmlTitle	  = 'www.FloridaSwimmers.com';
var metaKeywords  = 'Learn+to+swim.++Childrens+swim+lessons.++Adult+swim+lessons.++Swim+lessons+in+Lee+County.+Aquafit.+Swimming+tuition.+1-2-1+swim+lessons.+private+swim+lessons.+Infant+swim+lessons.+Red+Cross+Instructor.+Red+Cross+certified.+Floridaswimmers.+Jane+Roberts.+Adult+learn+to+swim.+children+learn+to+swim.+swim+lessons+in+Florida.+swimmers.+swimming+teacher.+water+safety.Learn+to+Swim+Fort+Myers.+Swimmers.+';
var metaContents  = 'TITLEfloridaswimmers.com%2FTITLEMETA+NAME%3Ddescription+CONTENT%3Dinfant%2C+children+and+adult+swim+lessons.+Private+1-2-1+tuiton.+Instructor+in+water.+Your+pool+or+ours.META+NAME%3Dkeywords+CONTENT%3Dlearn+to+swim%2C+Jane+Roberts';
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();
};

