/* [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','14601',jdecode('Home'),jdecode(''),'/14601.html','true',[],''],
	['PAGE','57291',jdecode('About+Us'),jdecode(''),'/57291.html','true',[],''],
	['PAGE','56991',jdecode('Fun+Run+2010'),jdecode(''),'/56991/index.html','true',[ 
		['PAGE','65705',jdecode('Recap+and+Results'),jdecode(''),'/56991/65705.html','true',[],'']
	],''],
	['PAGE','14652',jdecode('Events'),jdecode(''),'/14652/index.html','true',[ 
		['PAGE','49721',jdecode('2010+Events'),jdecode(''),'/14652/49721.html','true',[],''],
		['PAGE','48021',jdecode('2009+Events'),jdecode(''),'/14652/48021.html','true',[],''],
		['PAGE','52535',jdecode('Kaiser+2010'),jdecode(''),'/14652/52535.html','false',[],''],
		['PAGE','15801',jdecode('5K%2F10K+Fun+Run'),jdecode(''),'/14652/15801.html','false',[],''],
		['PAGE','16101',jdecode('Kaiser+1%2F2+Marathon'),jdecode(''),'/14652/16101.html','false',[],''],
		['PAGE','20701',jdecode('Dr+Blum+Extremity+Seminar'),jdecode(''),'/14652/20701.html','false',[],''],
		['PAGE','24801',jdecode('FAKTR-PM+with+Dr+Hyde+and+Dr+Feinberg'),jdecode(''),'/14652/24801.html','false',[],''],
		['PAGE','24822',jdecode('Sea+Otter+Classic'),jdecode(''),'/14652/24822.html','false',[],''],
		['PAGE','24843',jdecode('Dr+Susan+Bromley+Seminar'),jdecode(''),'/14652/24843.html','false',[],''],
		['PAGE','24864',jdecode('The+Great+Ski+Race'),jdecode(''),'/14652/24864.html','false',[],''],
		['PAGE','29601',jdecode('Great+Ski+Race'),jdecode(''),'/14652/29601.html','false',[],''],
		['PAGE','29622',jdecode('Cal+Bearathalon'),jdecode(''),'/14652/29622.html','false',[],''],
		['PAGE','36001',jdecode('Muddy+Buddy'),jdecode(''),'/14652/36001.html','false',[],''],
		['PAGE','36022',jdecode('Escape+from+Alcatraz'),jdecode(''),'/14652/36022.html','false',[],''],
		['PAGE','36043',jdecode('Volleyball'),jdecode(''),'/14652/36043.html','false',[],''],
		['PAGE','36064',jdecode('NAMI+Walk'),jdecode(''),'/14652/36064.html','false',[],''],
		['PAGE','43621',jdecode('Isaac+Bruce'),jdecode(''),'/14652/43621.html','false',[],''],
		['PAGE','43642',jdecode('Susan+G+Koman'),jdecode(''),'/14652/43642.html','false',[],''],
		['PAGE','45321',jdecode('Northface+%26%23x27%3B09'),jdecode(''),'/14652/45321.html','false',[],''],
		['PAGE','45621',jdecode('%26%23x27%3B09+Banquet'),jdecode(''),'/14652/45621.html','false',[],''],
		['PAGE','14778',jdecode('Kaiser+1%2F2+Marathon'),jdecode(''),'/14652/14778.html','false',[],''],
		['PAGE','33001',jdecode('Fun+Run+pics'),jdecode(''),'/14652/33001.html','false',[],''],
		['PAGE','33022',jdecode('Sea+Otter+pics'),jdecode(''),'/14652/33022.html','false',[],''],
		['PAGE','51635',jdecode('Dr.+Amor+Adams'),jdecode(''),'/14652/51635.html','false',[],''],
		['PAGE','52035',jdecode('Dr.+Hyde+Jan2010'),jdecode(''),'/14652/52035.html','false',[],''],
		['PAGE','54663',jdecode('Senior+Games'),jdecode(''),'/14652/54663.html','false',[],''],
		['PAGE','60291',jdecode('Go+Green+5k%2F10k'),jdecode(''),'/14652/60291.html','false',[],'']
	],''],
	['PAGE','14673',jdecode('Executive+Council'),jdecode(''),'/14673/index.html','true',[ 
		['PAGE','19501',jdecode('Benjamin+Stevens'),jdecode(''),'/14673/19501.html','false',[],''],
		['PAGE','17301',jdecode('Dr.+Ed+Feinberg'),jdecode(''),'/14673/17301.html','false',[],''],
		['PAGE','22701',jdecode('Adam+Meisenhelder'),jdecode(''),'/14673/22701.html','false',[],''],
		['PAGE','62605',jdecode('Levi+Irwin'),jdecode(''),'/14673/62605.html','false',[],''],
		['PAGE','62626',jdecode('Isaac+Boroweik'),jdecode(''),'/14673/62626.html','false',[],''],
		['PAGE','40821',jdecode('ExCo+Applications'),jdecode(''),'/14673/40821.html','false',[],''],
		['PAGE','60905',jdecode('Aimee+Carroll'),jdecode(''),'/14673/60905.html','false',[],''],
		['PAGE','61605',jdecode('Mike+Smith'),jdecode(''),'/14673/61605.html','false',[],''],
		['PAGE','61626',jdecode('Nate+Williams'),jdecode(''),'/14673/61626.html','false',[],''],
		['PAGE','61647',jdecode('Josh+Brusky'),jdecode(''),'/14673/61647.html','false',[],''],
		['PAGE','61668',jdecode('Kira+Franks'),jdecode(''),'/14673/61668.html','false',[],''],
		['PAGE','61689',jdecode('Dave+Cahodes'),jdecode(''),'/14673/61689.html','false',[],''],
		['PAGE','61710',jdecode('Trish+Smith'),jdecode(''),'/14673/61710.html','false',[],''],
		['PAGE','61731',jdecode('Mile+Larson'),jdecode(''),'/14673/61731.html','false',[],''],
		['PAGE','61752',jdecode('Zach+Bratner'),jdecode(''),'/14673/61752.html','false',[],'']
	],''],
	['PAGE','14715',jdecode('Past+Members'),jdecode(''),'/14715.html','false',[],''],
	['PAGE','42821',jdecode('SC+Alumni+Highlight'),jdecode(''),'/42821.html','true',[],''],
	['PAGE','64805',jdecode('Photo+Archive'),jdecode(''),'/64805.html','true',[],''],
	['PAGE','14736',jdecode('Links'),jdecode(''),'/14736.html','true',[],''],
	['PAGE','14799',jdecode('Contact'),jdecode(''),'/14799.html','true',[],'']];
var siteelementCount=53;
theSitetree.topTemplateName='Cube';
theSitetree.paletteFamily='154186';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10605';
theSitetree.graphicsetId='10488';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Cube',
				paletteFamily: 	'154186',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10605',
				graphicsetId: 	'10488',
				contentColor: 	'666666',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-2c63c1f44415b27922acba09324ab120']={
webappId:    '7060',
documentId:  '14778',
internalId:  '2c63c1f44415b27922acba09324ab120',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-12897']={
webappId:    '7008',
documentId:  '14799',
internalId:  '12897',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20100504-011148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14652',
internalId:  '',
customField: '20100504-004206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49721',
internalId:  '',
customField: '20100504-010554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14799',
internalId:  '',
customField: '20090127-010618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14673',
internalId:  '',
customField: '20100406-234140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20090203-182657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14715',
internalId:  '',
customField: '20090127-005731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14736',
internalId:  '',
customField: '20100310-001740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14778',
internalId:  '',
customField: '20090127-005731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60905',
internalId:  '',
customField: '20100322-131918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20090208-204102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20090510-155623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20100406-233450'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20701',
internalId:  '',
customField: '20090208-203120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61731',
internalId:  '',
customField: '20100406-233120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20100406-232522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61647',
internalId:  '',
customField: '20100406-232928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24843',
internalId:  '',
customField: '20090327-154317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20090222-003701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24822',
internalId:  '',
customField: '20090510-154327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24864',
internalId:  '',
customField: '20090327-155133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36043',
internalId:  '',
customField: '20090510-165208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36064',
internalId:  '',
customField: '20090510-163502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20090327-152710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29622',
internalId:  '',
customField: '20090331-223841'
};
webappMappings['7060']=webappMappings['7060-e3bb19b502bada15744759b7630ee70a']={
webappId:    '7060',
documentId:  '33001',
internalId:  'e3bb19b502bada15744759b7630ee70a',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-2a7f07229628b725974a0611b8f74a6d']={
webappId:    '7060',
documentId:  '33022',
internalId:  '2a7f07229628b725974a0611b8f74a6d',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20090425-190441'
};
webappMappings['1501']=webappMappings['1501-17218065']={
webappId:    '1501',
documentId:  '14601',
internalId:  '17218065',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33022',
internalId:  '',
customField: '20090425-190736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20090510-170135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36022',
internalId:  '',
customField: '20090510-170613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40821',
internalId:  '',
customField: '20091020-224220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42821',
internalId:  '',
customField: '20100310-194735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43621',
internalId:  '',
customField: '20091116-205532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43642',
internalId:  '',
customField: '20091116-210123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45621',
internalId:  '',
customField: '20091206-152853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45321',
internalId:  '',
customField: '20091206-155343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48021',
internalId:  '',
customField: '20100307-212548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51635',
internalId:  '',
customField: '20100130-220646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52035',
internalId:  '',
customField: '20100130-222828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52535',
internalId:  '',
customField: '20100225-001306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54663',
internalId:  '',
customField: '20100307-214231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56991',
internalId:  '',
customField: '20100406-234435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57291',
internalId:  '',
customField: '20100309-234226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60291',
internalId:  '',
customField: '20100322-125334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61626',
internalId:  '',
customField: '20100406-233901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61752',
internalId:  '',
customField: '20100406-234621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61668',
internalId:  '',
customField: '20100406-234956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61605',
internalId:  '',
customField: '20100407-001851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62605',
internalId:  '',
customField: '20100406-231448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62626',
internalId:  '',
customField: '20100406-231448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61689',
internalId:  '',
customField: '20100406-224755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61710',
internalId:  '',
customField: '20100406-224755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64805',
internalId:  '',
customField: '20100504-011001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65705',
internalId:  '',
customField: '20100628-133724'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INEZRO';
var companyName   = 'Palmer+West+Campus+Sports+Council';
var htmlTitle	  = 'Palmer%27s+West+Campus+Sports+Council';
var metaKeywords  = 'ChiropracticSportsMedicineVolunteer';
var metaContents  = 'Sports+Medicine+Group';
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();
};
