/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],'',''],
	['PAGE','752',jdecode('History'),jdecode(''),'/752.html','true',[],'',''],
	['PAGE','29101',jdecode('Government'),jdecode(''),'/29101/index.html','true',[ 
		['PAGE','29122',jdecode('Constitution'),jdecode(''),'/29101/29122.html','true',[],'',''],
		['PAGE','29143',jdecode('Governing+Body'),jdecode(''),'/29101/29143.html','true',[],'',''],
		['PAGE','31801',jdecode('Chairman'),jdecode(''),'/29101/31801.html','true',[],'',''],
		['PAGE','31822',jdecode('Vice-Chairman'),jdecode(''),'/29101/31822.html','true',[],'',''],
		['PAGE','31843',jdecode('Secretary%2FTreasurer'),jdecode(''),'/29101/31843.html','true',[],'',''],
		['PAGE','31864',jdecode('Committee+Member'),jdecode(''),'/29101/31864.html','true',[],'',''],
		['PAGE','31885',jdecode('Committee+Member'),jdecode(''),'/29101/31885.html','true',[],'',''],
		['PAGE','31906',jdecode('Committee+Member'),jdecode(''),'/29101/31906.html','true',[],'',''],
		['PAGE','37401',jdecode('Committee+Member'),jdecode(''),'/29101/37401.html','true',[],'','']
	],'',''],
	['PAGE','9801',jdecode('Services'),jdecode(''),'/9801/index.html','true',[ 
		['PAGE','29164',jdecode('Tribal+Administrator'),jdecode(''),'/9801/29164.html','true',[],'',''],
		['PAGE','29500',jdecode('Language'),jdecode(''),'/9801/29500.html','true',[],'',''],
		['PAGE','29479',jdecode('Enrollment'),jdecode(''),'/9801/29479.html','true',[],'',''],
		['PAGE','29311',jdecode('Tax+Commission%2FTags'),jdecode(''),'/9801/29311.html','true',[],'',''],
		['PAGE','114537',jdecode('Housing'),jdecode(''),'/9801/114537.html','true',[],'',''],
		['PAGE','29185',jdecode('Health+Center'),jdecode(''),'/9801/29185.html','true',[],'',''],
		['PAGE','29227',jdecode('Food+Distribution'),jdecode(''),'/9801/29227.html','true',[],'',''],
		['PAGE','108037',jdecode('Early+Childhood+Center'),jdecode(''),'/9801/108037.html','true',[],'',''],
		['PAGE','29248',jdecode('Social+Development+Center'),jdecode(''),'/9801/29248.html','true',[],'',''],
		['PAGE','39601',jdecode('Transit'),jdecode(''),'/9801/39601.html','true',[],'',''],
		['PAGE','29290',jdecode('District+Court'),jdecode(''),'/9801/29290.html','true',[],'',''],
		['PAGE','29458',jdecode('Higher+Education'),jdecode(''),'/9801/29458.html','true',[],'',''],
		['PAGE','29206',jdecode('Senior+Citizen+Center'),jdecode(''),'/9801/29206.html','true',[],'',''],
		['PAGE','29332',jdecode('Child+Support+Enforcement'),jdecode(''),'/9801/29332.html','true',[],'',''],
		['PAGE','29353',jdecode('Environmental+Management'),jdecode(''),'/9801/29353.html','true',[],'',''],
		['PAGE','29374',jdecode('Indian+Child+Welfare'),jdecode(''),'/9801/29374.html','true',[],'',''],
		['PAGE','29437',jdecode('Tribal+Youth+Program'),jdecode(''),'/9801/29437.html','true',[],'',''],
		['PAGE','39064',jdecode('Family+Services'),jdecode(''),'/9801/39064.html','true',[],'',''],
		['PAGE','39169',jdecode('Wellness+Center'),jdecode(''),'/9801/39169.html','true',[],'',''],
		['PAGE','39190',jdecode('WIA'),jdecode(''),'/9801/39190.html','true',[],'',''],
		['PAGE','83201',jdecode('Contact+Update'),jdecode(''),'/9801/83201.html','false',[],'','']
	],'',''],
	['PAGE','9885',jdecode('Contact'),jdecode(''),'/9885.html','true',[],'',''],
	['PAGE','59301',jdecode('Photos'),jdecode(''),'/59301.html','true',[],'',''],
	['PAGE','59001',jdecode('Weather'),jdecode(''),'/59001.html','true',[],'',''],
	['PAGE','92401',jdecode('Veterans'),jdecode(''),'/92401.html','true',[],'',''],
	['PAGE','73501',jdecode('Map'),jdecode(''),'/73501.html','true',[],'',''],
	['PAGE','109537',jdecode('Head+Start'),jdecode(''),'/109537.html','false',[],'',''],
	['PAGE','109558',jdecode('Child+Care'),jdecode(''),'/109558.html','false',[],'',''],
	['PAGE','82501',jdecode('Language+Survey'),jdecode(''),'/82501.html','false',[],'',''],
	['PAGE','92422',jdecode('Ponca+Pow-wow'),jdecode(''),'/92422.html','false',[],'',''],
	['PAGE','101201',jdecode('Guestbook'),jdecode(''),'/101201.html','true',[],'',''],
	['PAGE','107137',jdecode('Forum'),jdecode(''),'/107137.html','false',[],'',''],
	['ITEM','107158',jdecode('Calendar'),jdecode(''),'http://www.google.com/calendar/embed?src=webmaster%40ponca.com&ctz=America/Chicago" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>','true',[],'','_blank'],
	['PAGE','111237',jdecode('Facebook'),jdecode(''),'/111237.html','true',[],'',''],
	['PAGE','35501',jdecode('Employee+E-mail'),jdecode(''),'/35501.html','true',[],'',''],
	['PAGE','113637',jdecode('White+Eagle+Park'),jdecode(''),'/113637.html','true',[],'','']];
var siteelementCount=49;
theSitetree.topTemplateName='Logg';
theSitetree.paletteFamily='96652B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='421';
theSitetree.graphicsetId='472';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='96652B';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Logg',
				paletteFamily: 	'96652B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'421',
				graphicsetId: 	'472',
				contentColor: 	'FFFFFF',
				contentBGColor: '96652B',
				a_color: 		'96652B',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1003']=webappMappings['1003-avec10in3q2g126d27581f1']={
webappId:    '1003',
documentId:  '107137',
internalId:  'avec10in3q2g126d27581f1',
customField: 'en:US'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107137',
internalId:  '',
customField: '20100215-173219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100423-094025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20090314-100348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29101',
internalId:  '',
customField: '20081123-124354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29122',
internalId:  '',
customField: '20090105-093402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29143',
internalId:  '',
customField: '20081123-124413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20100112-155448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31822',
internalId:  '',
customField: '20100112-155640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31843',
internalId:  '',
customField: '20100112-155749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31864',
internalId:  '',
customField: '20100112-155922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31885',
internalId:  '',
customField: '20100112-160030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31906',
internalId:  '',
customField: '20100112-160128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37401',
internalId:  '',
customField: '20100112-160227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20081119-100918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29164',
internalId:  '',
customField: '20090314-100531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29185',
internalId:  '',
customField: '20090313-134733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29206',
internalId:  '',
customField: '20080328-191202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29227',
internalId:  '',
customField: '20090313-095140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29248',
internalId:  '',
customField: '20091009-161303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39601',
internalId:  '',
customField: '20090314-100958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73501',
internalId:  '',
customField: '20100226-105357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29290',
internalId:  '',
customField: '20100429-142118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29311',
internalId:  '',
customField: '20090313-095745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29332',
internalId:  '',
customField: '20090602-091546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29353',
internalId:  '',
customField: '20090313-100017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29374',
internalId:  '',
customField: '20100212-165237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83201',
internalId:  '',
customField: '20090515-093009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92401',
internalId:  '',
customField: '20090626-141106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29437',
internalId:  '',
customField: '20090313-100230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29458',
internalId:  '',
customField: '20091027-093100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29479',
internalId:  '',
customField: '20090515-204159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29500',
internalId:  '',
customField: '20100121-093816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92422',
internalId:  '',
customField: '20090626-140242'
};
webappMappings['7008']=webappMappings['7008-7601']={
webappId:    '7008',
documentId:  '82501',
internalId:  '7601',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39064',
internalId:  '',
customField: '20090313-102754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82501',
internalId:  '',
customField: '20090519-113140'
};
webappMappings['7008']=webappMappings['7008-7634']={
webappId:    '7008',
documentId:  '83201',
internalId:  '7634',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39169',
internalId:  '',
customField: '20090313-102937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39190',
internalId:  '',
customField: '20091009-161725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101201',
internalId:  '',
customField: '20100506-160728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108037',
internalId:  '',
customField: '20100225-222154'
};
webappMappings['1002']=webappMappings['1002-101201avec10in3q2g']={
webappId:    '1002',
documentId:  '101201',
internalId:  '101201avec10in3q2g',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9885',
internalId:  '',
customField: '20090313-103341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59301',
internalId:  '',
customField: '20081209-114745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20090204-134301'
};
webappMappings['7080']=webappMappings['7080-4']={
webappId:    '7080',
documentId:  '59001',
internalId:  '4',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59001',
internalId:  '',
customField: '20081209-122155'
};
webappMappings['7060']=webappMappings['7060-a5a614441627d03b121d1a7e5dbd9b02']={
webappId:    '7060',
documentId:  '59301',
internalId:  'a5a614441627d03b121d1a7e5dbd9b02',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109537',
internalId:  '',
customField: '20100225-222407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109558',
internalId:  '',
customField: '20100225-222434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111237',
internalId:  '',
customField: '20100413-072737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113637',
internalId:  '',
customField: '20100628-090114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114537',
internalId:  '',
customField: '20100701-143833'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN3Q2G';
var companyName   = 'Ponca+Tribe+of+Indians+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();
};
