/* [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','2901',jdecode('Home'),jdecode(''),'/2901.html','true',[],''],
	['PAGE','2973',jdecode('About+TeamOK'),jdecode(''),'/2973/index.html','true',[ 
		['PAGE','66212',jdecode('2010'),jdecode(''),'/2973/66212.html','true',[],''],
		['PAGE','48301',jdecode('2009'),jdecode(''),'/2973/48301.html','true',[],''],
		['PAGE','48322',jdecode('2008'),jdecode(''),'/2973/48322.html','true',[],''],
		['PAGE','48343',jdecode('2006'),jdecode(''),'/2973/48343.html','true',[],''],
		['PAGE','48364',jdecode('2004'),jdecode(''),'/2973/48364.html','true',[],''],
		['PAGE','48385',jdecode('2002'),jdecode(''),'/2973/48385.html','true',[],''],
		['PAGE','48701',jdecode('2001'),jdecode(''),'/2973/48701.html','true',[],''],
		['PAGE','48406',jdecode('2000'),jdecode(''),'/2973/48406.html','true',[],''],
		['PAGE','48427',jdecode('1998'),jdecode(''),'/2973/48427.html','true',[],''],
		['PAGE','48722',jdecode('1997'),jdecode(''),'/2973/48722.html','true',[],''],
		['PAGE','48448',jdecode('1996'),jdecode(''),'/2973/48448.html','true',[],''],
		['PAGE','48469',jdecode('1994'),jdecode(''),'/2973/48469.html','true',[],''],
		['PAGE','48490',jdecode('1992'),jdecode(''),'/2973/48490.html','true',[],'']
	],''],
	['PAGE','47401',jdecode('Join+Team+Ok'),jdecode(''),'/47401.html','true',[],''],
	['PAGE','24001',jdecode('2010+Sponsors'),jdecode(''),'/24001.html','true',[],''],
	['PAGE','2994',jdecode('News+%26+Events'),jdecode(''),'/2994.html','true',[],''],
	['PAGE','59801',jdecode('Organ+Donor+Awareness'),jdecode(''),'/59801.html','true',[],''],
	['PAGE','3015',jdecode('Green+Ribbon+Store'),jdecode(''),'/3015/index.html','true',[ 
		['PAGE','47464',jdecode('Jewelry'),jdecode(''),'/3015/47464.html','true',[],'']
	],''],
	['PAGE','23901',jdecode('Honoring+our+Donors'),jdecode(''),'/23901/index.html','true',[ 
		['PAGE','47485',jdecode('Living+Donors'),jdecode(''),'/23901/47485.html','true',[],''],
		['PAGE','47506',jdecode('Deceased+Donors'),jdecode(''),'/23901/47506.html','true',[],'']
	],''],
	['PAGE','2952',jdecode('Remembering+our+own'),jdecode(''),'/2952.html','true',[],''],
	['PAGE','3036',jdecode('Contact'),jdecode(''),'/3036.html','true',[],''],
	['PAGE','12801',jdecode('Links'),jdecode(''),'/12801.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='378927';
theSitetree.keyvisualId='2224';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='416';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='378927';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Enjoy',
				paletteFamily: 	'378927',
				keyvisualId: 	'2224',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'416',
				contentColor: 	'FFFFFF',
				contentBGColor: '378927',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'378927',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				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:  '2901',
internalId:  '',
customField: '20100216-020911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2952',
internalId:  '',
customField: '20100216-024023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2973',
internalId:  '',
customField: '20090811-190607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2994',
internalId:  '',
customField: '20100216-023535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20091013-164812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3036',
internalId:  '',
customField: '20100216-020507'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3015',
internalId:  '',
customField: '20100312-034837'
};
webappMappings['1501']=webappMappings['1501-17104637']={
webappId:    '1501',
documentId:  '2901',
internalId:  '17104637',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20100312-034609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20090810-225737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47485',
internalId:  '',
customField: '20090811-193801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47506',
internalId:  '',
customField: '20100312-034008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48301',
internalId:  '',
customField: '20090929-021606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48322',
internalId:  '',
customField: '20090811-130447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48490',
internalId:  '',
customField: '20090810-232742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48343',
internalId:  '',
customField: '20090811-130421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48364',
internalId:  '',
customField: '20090811-192729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48385',
internalId:  '',
customField: '20090811-193104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20090811-174702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48406',
internalId:  '',
customField: '20090811-192131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48427',
internalId:  '',
customField: '20090811-192025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48722',
internalId:  '',
customField: '20090811-175745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48448',
internalId:  '',
customField: '20090811-191633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48469',
internalId:  '',
customField: '20090811-191127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47401',
internalId:  '',
customField: '20090811-193632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66212',
internalId:  '',
customField: '20100216-021950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47464',
internalId:  '',
customField: '20100216-015310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59801',
internalId:  '',
customField: '20100216-002331'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2QC3';
var companyName   = 'Team+Oklahoma';
var htmlTitle	  = '';
var metaKeywords  = '';
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();
};
