/* [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','2801',jdecode('Home'),jdecode(''),'/2801.html','true',[],'',''],
	['PAGE','2852',jdecode('About+F.A.S.T.'),jdecode(''),'/2852/index.html','true',[ 
		['PAGE','2873',jdecode('+F.A.S.T+Performance+'),jdecode(''),'/2852/2873.html','true',[],'',''],
		['PAGE','2894',jdecode('+F.A.S.T.+Fitness+'),jdecode(''),'/2852/2894.html','true',[],'',''],
		['PAGE','2915',jdecode('+Individual+Instruction'),jdecode(''),'/2852/2915.html','true',[],'','']
	],'',''],
	['PAGE','7401',jdecode('About+P.O.W.'),jdecode(''),'/7401/index.html','true',[ 
		['PAGE','7422',jdecode('+Level+1+Program'),jdecode(''),'/7401/7422.html','true',[],'',''],
		['PAGE','7443',jdecode('+Level+2+Program'),jdecode(''),'/7401/7443.html','true',[],'',''],
		['PAGE','7464',jdecode('+Level+3+Program'),jdecode(''),'/7401/7464.html','true',[],'',''],
		['PAGE','31723',jdecode('+Team+Training+Program'),jdecode(''),'/7401/31723.html','true',[],'',''],
		['PAGE','37823',jdecode('+Pricing'),jdecode(''),'/7401/37823.html','true',[],'','']
	],'',''],
	['PAGE','57822',jdecode('Competitions'),jdecode(''),'/57822.html','true',[],'',''],
	['PAGE','7485',jdecode('Schedules'),jdecode(''),'/7485/index.html','true',[ 
		['PAGE','7506',jdecode('+F.A.S.T.+Performance'),jdecode(''),'/7485/7506.html','true',[],'',''],
		['PAGE','7527',jdecode('+F.A.S.T.+Fitness'),jdecode(''),'/7485/7527.html','true',[],'',''],
		['PAGE','7548',jdecode('+P.O.W.'),jdecode(''),'/7485/7548.html','true',[],'','']
	],'',''],
	['PAGE','23701',jdecode('Biography'),jdecode(''),'/23701.html','true',[],'',''],
	['PAGE','2957',jdecode('Pictures'),jdecode(''),'/2957/index.html','true',[ 
		['PAGE','57628',jdecode('Facility+Pictures'),jdecode(''),'/2957/57628.html','true',[],'',''],
		['PAGE','57637',jdecode('FAST+Pictures'),jdecode(''),'/2957/57637.html','true',[],'',''],
		['PAGE','57646',jdecode('POW+Pictures'),jdecode(''),'/2957/57646.html','true',[],'',''],
		['PAGE','57655',jdecode('FAST+Fitness+Pictures'),jdecode(''),'/2957/57655.html','true',[],'',''],
		['PAGE','57719',jdecode('Competition+Pictures'),jdecode(''),'/2957/57719.html','true',[],'','']
	],'',''],
	['PAGE','41323',jdecode('Upcoming+Events'),jdecode(''),'/41323.html','true',[],'',''],
	['PAGE','57909',jdecode('Links'),jdecode(''),'/57909.html','true',[],'',''],
	['PAGE','2999',jdecode('Contact+Info'),jdecode(''),'/2999.html','true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Easy';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='50';
theSitetree.graphicsetId='51';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easy',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'50',
				graphicsetId: 	'51',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20090104-152246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41323',
internalId:  '',
customField: '20090818-155038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2957',
internalId:  '',
customField: '20090110-152747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57628',
internalId:  '',
customField: '20090111-151031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57637',
internalId:  '',
customField: '20081216-185931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57646',
internalId:  '',
customField: '20081216-191035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2852',
internalId:  '',
customField: '20071016-233635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2873',
internalId:  '',
customField: '20071017-153306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2894',
internalId:  '',
customField: '20091107-035027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2915',
internalId:  '',
customField: '20070521-183831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20081224-163428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20080204-161818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7443',
internalId:  '',
customField: '20080204-162602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7464',
internalId:  '',
customField: '20071016-163553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31723',
internalId:  '',
customField: '20090423-110722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37823',
internalId:  '',
customField: '20091228-191003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7485',
internalId:  '',
customField: '20070530-180836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7506',
internalId:  '',
customField: '20100611-123917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7527',
internalId:  '',
customField: '20100611-123713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7548',
internalId:  '',
customField: '20100611-122841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20090301-204419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57655',
internalId:  '',
customField: '20081224-163619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57719',
internalId:  '',
customField: '20090110-163853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2999',
internalId:  '',
customField: '20100114-152534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57822',
internalId:  '',
customField: '20090916-193415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57909',
internalId:  '',
customField: '20090119-211459'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEGJB';
var companyName   = 'Franco+Athletic+and+Sports+Training';
var htmlTitle	  = 'Franco+Athletic+and+Sports+Training';
var metaKeywords  = 'Sports%2C+Performance%2C+Training%2C+Fitness%2C+Speed%2C+Agility%2C+Strength%2C+Power%2C+Flexibility%2C+Quickness%2C+Athletic%2C+Athlete+';
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;
};

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();
};
