/* [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','3501',jdecode('Home'),jdecode(''),'/3501.html','true',[],''],
	['PAGE','3552',jdecode('About+CSC'),jdecode(''),'/3552.html','true',[],''],
	['PAGE','19301',jdecode('CSC+SPA'),jdecode(''),'/19301/index.html','true',[ 
		['PAGE','36701',jdecode('Speed+%26+Agility+Testing'),jdecode(''),'/19301/36701.html','true',[],''],
		['PAGE','36722',jdecode('Strength+%26+Power+'),jdecode(''),'/19301/36722.html','true',[],''],
		['PAGE','39801',jdecode('Custom+Protocols'),jdecode(''),'/19301/39801.html','true',[],'']
	],''],
	['PAGE','34201',jdecode('Education+%26+Seminars'),jdecode(''),'/34201.html','true',[],''],
	['PAGE','3573',jdecode('Sport+Conditioning'),jdecode(''),'/3573/index.html','true',[ 
		['PAGE','8901',jdecode('Hockey'),jdecode(''),'/3573/8901.html','true',[],''],
		['PAGE','8922',jdecode('Soccer'),jdecode(''),'/3573/8922.html','true',[],''],
		['PAGE','29601',jdecode('Volleyball'),jdecode(''),'/3573/29601.html','true',[],''],
		['PAGE','38801',jdecode('Golf'),jdecode(''),'/3573/38801.html','true',[],''],
		['PAGE','33901',jdecode('Basketball'),jdecode(''),'/3573/33901.html','true',[],''],
		['PAGE','33001',jdecode('Swimming'),jdecode(''),'/3573/33001.html','true',[],''],
		['PAGE','40222',jdecode('MMA'),jdecode(''),'/3573/40222.html','false',[],''],
		['PAGE','18601',jdecode('Other'),jdecode(''),'/3573/18601.html','true',[],'']
	],''],
	['PAGE','31901',jdecode('CSC+Athletes'),jdecode(''),'/31901.html','true',[],''],
	['PAGE','3615',jdecode('Non-Sport+Conditioning'),jdecode(''),'/3615/index.html','true',[ 
		['PAGE','9501',jdecode('Police%2FFire+Training'),jdecode(''),'/3615/9501.html','true',[],''],
		['PAGE','10701',jdecode('Boot+Camps'),jdecode(''),'/3615/10701.html','true',[],''],
		['PAGE','36101',jdecode('Corporate+Conditioning'),jdecode(''),'/3615/36101.html','true',[],'']
	],''],
	['PAGE','19322',jdecode('Programs'),jdecode(''),'/19322.html','true',[],''],
	['PAGE','3594',jdecode('Careers'),jdecode(''),'/3594.html','true',[],''],
	['PAGE','3636',jdecode('Contact+Us'),jdecode(''),'/3636/index.html','true',[ 
		['PAGE','9201',jdecode('Contact+Us'),jdecode(''),'/3636/9201.html','true',[],''],
		['PAGE','9027',jdecode('Map'),jdecode(''),'/3636/9027.html','true',[],'']
	],''],
	['PAGE','3678',jdecode('CSC+Blog'),jdecode(''),'/3678.html','true',[],''],
	['PAGE','9401',jdecode('Links'),jdecode(''),'/9401.html','true',[],''],
	['PAGE','9422',jdecode('Forms+%26+PDFs'),jdecode(''),'/9422/index.html','true',[ 
		['PAGE','30901',jdecode('Privacy+Policy'),jdecode(''),'/9422/30901.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Easy';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='49';
theSitetree.graphicsetId='57';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Easy',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'49',
				graphicsetId: 	'57',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003366',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8922',
internalId:  '',
customField: '20090802-131243'
};
webappMappings['7050']=webappMappings['7050-39']={
webappId:    '7050',
documentId:  '3678',
internalId:  '39',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20091020-012327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3552',
internalId:  '',
customField: '20091010-173645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3573',
internalId:  '',
customField: '20091010-174017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20090802-192930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3678',
internalId:  '',
customField: '20090330-025709'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '9027',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3636',
internalId:  '',
customField: '20090706-004730'
};
webappMappings['7008']=webappMappings['7008-470']={
webappId:    '7008',
documentId:  '9201',
internalId:  '470',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9027',
internalId:  '',
customField: '20090328-185331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20090307-013732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19322',
internalId:  '',
customField: '20091023-195638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20090802-193009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20090802-124212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20090907-003555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3615',
internalId:  '',
customField: '20090906-194719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20090303-014751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3594',
internalId:  '',
customField: '20091023-195558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20091020-150403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9422',
internalId:  '',
customField: '20091010-173708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20090910-001523'
};
webappMappings['1501']=webappMappings['1501-2576421']={
webappId:    '1501',
documentId:  '3501',
internalId:  '2576421',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20090505-152835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20091027-220906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20090717-164020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20090802-132547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20090802-134032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20090906-194955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36722',
internalId:  '',
customField: '20090907-003934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36701',
internalId:  '',
customField: '20090906-193449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20090909-235630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39801',
internalId:  '',
customField: '20091023-195232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40222',
internalId:  '',
customField: '20091020-005949'
};
var canonHostname = 'cm4all.netfirms.com';
var accountId     = 'ANFI10INX3AU';
var companyName   = 'CSC+++CSC+++CSC+++CSC+++CSC+++CSC+++CSC+++CSC+++CSC+++CSC+++CSC++';
var htmlTitle	  = '';
var metaKeywords  = 'Edmonton%2C+sport%2C+conditioning%2C+speed%2C+performance%2C+power%2C+strength%2C+stamina%2C+explosive%2C+fast%2C+champions%2C+training%2C+coach%2C+program%2C+nutrition%2C+supplements%2C+plyometric%2C+sprint%2C+agility%2C+flexibility%2C+coordination%2C+soccer%2C+football%2C+hockey%2C+basketball%2C+volleyball%2C+swimming%2C+golf%2C+lacrosse%2C+baseball%2C+rugby%2C+powerlifting%2C+olympic+lifting%2C+athleticism%2C+';
var metaContents  = 'Welcome+to+Champions+Sport+Conditioning%3B+Edmontons+elite+sport+conditioning+is+geared+towards+improving+overall+athletic+development+and+the+empowering+of+youths.++Improve+performance+and+reach+your+maximum+potential+by+working+with+certified+strength+and+conditioning+specialists+with+expertise+in+sport+conditioning.';
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();
};

