/* [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','118837',jdecode('Home'),jdecode(''), jdecode('%2F118837.html'), 'true',[],'',''],
	['PAGE','121500',jdecode('Programs+%26+Services'),jdecode(''), jdecode('%2F121500%2Findex.html'), 'true',[ 
		['PAGE','123668',jdecode('Enrollment'),jdecode(''), jdecode('%2F121500%2F123668.html'), 'true',[],'',''],
		['PAGE','123731',jdecode('Adult+Education'),jdecode(''), jdecode('%2F121500%2F123731.html'), 'true',[],'',''],
		['PAGE','146359',jdecode('Food+Distribution'),jdecode(''), jdecode('%2F121500%2F146359.html'), 'true',[],'',''],
		['PAGE','123563',jdecode('Child+Support+Enforcement'),jdecode(''), jdecode('%2F121500%2F123563.html'), 'true',[],'',''],
		['PAGE','123500',jdecode('Tribal+Court'),jdecode(''), jdecode('%2F121500%2F123500.html'), 'true',[],'',''],
		['PAGE','130148',jdecode('Tag+Office'),jdecode(''), jdecode('%2F121500%2F130148.html'), 'true',[],'',''],
		['PAGE','123479',jdecode('Indian+Child+Welfare'),jdecode(''), jdecode('%2F121500%2F123479.html'), 'true',[],'',''],
		['PAGE','123458',jdecode('Senior+Citizen+Program'),jdecode(''), jdecode('%2F121500%2F123458.html'), 'true',[],'',''],
		['PAGE','123521',jdecode('Transit+Program'),jdecode(''), jdecode('%2F121500%2F123521.html'), 'true',[],'',''],
		['PAGE','123542',jdecode('Social+Development+Center'),jdecode(''), jdecode('%2F121500%2F123542.html'), 'true',[],'',''],
		['PAGE','123584',jdecode('Roads+Program'),jdecode(''), jdecode('%2F121500%2F123584.html'), 'true',[],'',''],
		['PAGE','123605',jdecode('Language'),jdecode(''), jdecode('%2F121500%2F123605.html'), 'true',[],'',''],
		['PAGE','123626',jdecode('Youth+Outreach'),jdecode(''), jdecode('%2F121500%2F123626.html'), 'true',[],'',''],
		['PAGE','130169',jdecode('Wellness+Center'),jdecode(''), jdecode('%2F121500%2F130169.html'), 'true',[],'',''],
		['PAGE','123647',jdecode('Early+Childhood+Center'),jdecode(''), jdecode('%2F121500%2F123647.html'), 'true',[],'',''],
		['PAGE','123689',jdecode('Office+of+Environmental+Management'),jdecode(''), jdecode('%2F121500%2F123689.html'), 'true',[],'','']
	],'',''],
	['PAGE','155159',jdecode('WHITE+EAGLE+HEALTH+CLINIC'),jdecode(''), jdecode('%2F155159%2Findex.html'), 'true',[ 
		['PAGE','155180',jdecode('Behavioral+Health'),jdecode(''), jdecode('%2F155159%2F155180.html'), 'true',[],'',''],
		['PAGE','155359',jdecode('Administrative'),jdecode(''), jdecode('%2F155159%2F155359.html'), 'true',[],'',''],
		['PAGE','155380',jdecode('Medical'),jdecode(''), jdecode('%2F155159%2F155380.html'), 'true',[],'',''],
		['PAGE','155401',jdecode('Medical+Records'),jdecode(''), jdecode('%2F155159%2F155401.html'), 'true',[],'',''],
		['PAGE','155422',jdecode('Health+Director'),jdecode(''), jdecode('%2F155159%2F155422.html'), 'true',[],'',''],
		['PAGE','155443',jdecode('Optometry'),jdecode(''), jdecode('%2F155159%2F155443.html'), 'true',[],'',''],
		['PAGE','155464',jdecode('Pharmacy'),jdecode(''), jdecode('%2F155159%2F155464.html'), 'true',[],'',''],
		['PAGE','155485',jdecode('CHR'),jdecode(''), jdecode('%2F155159%2F155485.html'), 'true',[],'',''],
		['PAGE','155506',jdecode('Radiology'),jdecode(''), jdecode('%2F155159%2F155506.html'), 'true',[],'',''],
		['PAGE','155527',jdecode('Laborotory'),jdecode(''), jdecode('%2F155159%2F155527.html'), 'true',[],'',''],
		['PAGE','155548',jdecode('Contract+Health'),jdecode(''), jdecode('%2F155159%2F155548.html'), 'true',[],'',''],
		['PAGE','155569',jdecode('Pawnee+Benefit'),jdecode(''), jdecode('%2F155159%2F155569.html'), 'true',[],'',''],
		['PAGE','155590',jdecode('Diabetes+Director'),jdecode(''), jdecode('%2F155159%2F155590.html'), 'true',[],'','']
	],'',''],
	['PAGE','121437',jdecode('Two+Rivers+Casino'),jdecode(''), jdecode('%2F121437.html'), 'true',[],'',''],
	['PAGE','133348',jdecode('Location'),jdecode(''), jdecode('%2F133348.html'), 'false',[],'',''],
	['PAGE','121479',jdecode('Government'),jdecode(''), jdecode('%2F121479.html'), 'true',[],'',''],
	['PAGE','135548',jdecode('Ponca+Language'),jdecode(''), jdecode('%2F135548.html'), 'true',[],'',''],
	['PAGE','121458',jdecode('History'),jdecode(''), jdecode('%2F121458.html'), 'true',[],'',''],
	['PAGE','121542',jdecode('Photos'),jdecode(''), jdecode('%2F121542.html'), 'true',[],'',''],
	['PAGE','121584',jdecode('Guestbook'),jdecode(''), jdecode('%2F121584.html'), 'false',[],'',''],
	['PAGE','121605',jdecode('Facebook'),jdecode(''), jdecode('%2F121605.html'), 'false',[],'',''],
	['PAGE','121626',jdecode('White+Eagle+Park'),jdecode(''), jdecode('%2F121626.html'), 'true',[],'',''],
	['PAGE','122237',jdecode('Member+Update'),jdecode(''), jdecode('%2F122237.html'), 'true',[],'',''],
	['PAGE','121521',jdecode('Contact'),jdecode(''), jdecode('%2F121521.html'), 'true',[],'',''],
	['PAGE','123752',jdecode('Gaming'),jdecode(''), jdecode('%2F123752%2Findex.html'), 'true',[ 
		['PAGE','123773',jdecode('Two+Rivers+Casino'),jdecode(''), jdecode('%2F123752%2F123773.html'), 'true',[],'',''],
		['PAGE','132748',jdecode('Driving++Directions'),jdecode(''), jdecode('%2F123752%2F132748.html'), 'false',[],'',''],
		['PAGE','123794',jdecode('Gaming+Commission'),jdecode(''), jdecode('%2F123752%2F123794.html'), 'true',[],'','']
	],'',''],
	['PAGE','121563',jdecode('Weather'),jdecode(''), jdecode('%2F121563.html'), 'true',[],'',''],
	['PAGE','35501',jdecode('Employee+E-mail'),jdecode(''), jdecode('%2F35501.html'), 'true',[],'','']];
var siteelementCount=49;
theSitetree.topTemplateName='Welcome';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='9178';
theSitetree.keyvisualName='kv_9178.jpg';
theSitetree.fontsetId='10364';
theSitetree.graphicsetId='10524';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC0A16';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Welcome',
				paletteFamily: 	'990000',
				keyvisualId: 	'9178',
				keyvisualName: 	'kv_9178.jpg',
				fontsetId: 		'10364',
				graphicsetId: 	'10524',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC0A16',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D6AAAA',
				e_color: 		'DC6C70',
				f_color: 		'68070E',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132748',
internalId:  '',
customField: '20110909-205903'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '118837',
internalId:  '1006',
customField: '1006'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '132748',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['7060']=webappMappings['7060-11d21911505e255cf32cd54834f08897']={
webappId:    '7060',
documentId:  '121542',
internalId:  '11d21911505e255cf32cd54834f08897',
customField: 'language:en;country:US;'
};
webappMappings['7080']=webappMappings['7080-1095']={
webappId:    '7080',
documentId:  '121563',
internalId:  '1095',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-121584avec10in3q2g']={
webappId:    '1002',
documentId:  '121584',
internalId:  '121584avec10in3q2g',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-21931']={
webappId:    '7008',
documentId:  '122237',
internalId:  '21931',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121437',
internalId:  '',
customField: '20111003-150352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121458',
internalId:  '',
customField: '20110104-231003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121479',
internalId:  '',
customField: '20110104-231003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121500',
internalId:  '',
customField: '20111229-121044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121521',
internalId:  '',
customField: '20111219-162111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121542',
internalId:  '',
customField: '20110104-231003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121563',
internalId:  '',
customField: '20110104-232728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121584',
internalId:  '',
customField: '20110104-231007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121605',
internalId:  '',
customField: '20110104-231008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121626',
internalId:  '',
customField: '20110519-180301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122237',
internalId:  '',
customField: '20110104-232613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123500',
internalId:  '',
customField: '20111219-153610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123458',
internalId:  '',
customField: '20111227-123253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123479',
internalId:  '',
customField: '20110517-094708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123521',
internalId:  '',
customField: '20111220-172042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123542',
internalId:  '',
customField: '20111220-143208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123563',
internalId:  '',
customField: '20110519-170950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123584',
internalId:  '',
customField: '20110517-094918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123605',
internalId:  '',
customField: '20111028-112112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118837',
internalId:  '',
customField: '20120103-103548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146359',
internalId:  '',
customField: '20111227-142906'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '133348',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130148',
internalId:  '',
customField: '20111219-165531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130169',
internalId:  '',
customField: '20110519-220959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123626',
internalId:  '',
customField: '20110517-095122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123647',
internalId:  '',
customField: '20111227-122154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123668',
internalId:  '',
customField: '20110517-095415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123689',
internalId:  '',
customField: '20110517-095542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155180',
internalId:  '',
customField: '20111228-163010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20110104-133500'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '118837',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133348',
internalId:  '',
customField: '20110910-090556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135548',
internalId:  '',
customField: '20111028-135053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155159',
internalId:  '',
customField: '20111228-155257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123731',
internalId:  '',
customField: '20110517-232536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123752',
internalId:  '',
customField: '20110909-235111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123773',
internalId:  '',
customField: '20110909-235343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123794',
internalId:  '',
customField: '20110517-100256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155359',
internalId:  '',
customField: '20111228-154017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155380',
internalId:  '',
customField: '20111228-154017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155401',
internalId:  '',
customField: '20111228-154017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155422',
internalId:  '',
customField: '20111228-154017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155443',
internalId:  '',
customField: '20111228-154017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155464',
internalId:  '',
customField: '20111228-154017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155485',
internalId:  '',
customField: '20111228-154017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155506',
internalId:  '',
customField: '20111228-154018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155527',
internalId:  '',
customField: '20111228-154018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155548',
internalId:  '',
customField: '20111228-154018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155569',
internalId:  '',
customField: '20111228-154018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155590',
internalId:  '',
customField: '20111228-154018'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN3Q2G';
var companyName   = 'Ponca+Tribe+of+Oklahoma';
var htmlTitle	  = 'The+Official+Website+of+the+Ponca+Tribe+of+Oklahoma';
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();
};

