/* [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','1801',jdecode('ORGANIZATION'),jdecode(''), jdecode('%2F1801%2Findex.html'), 'true',[ 
		['PAGE','59712',jdecode('Administrative+Offices'),jdecode(''), jdecode('%2F1801%2F59712.html'), 'true',[],'',''],
		['PAGE','1852',jdecode('Board+Members'),jdecode(''), jdecode('%2F1801%2F1852.html'), 'true',[],'',''],
		['PAGE','1873',jdecode('Contact+Information'),jdecode(''), jdecode('%2F1801%2F1873.html'), 'true',[],'',''],
		['PAGE','33101',jdecode('Information+Request'),jdecode(''), jdecode('%2F1801%2F33101.html'), 'true',[],'',''],
		['PAGE','1999',jdecode('Program+Staff'),jdecode(''), jdecode('%2F1801%2F1999.html'), 'true',[],'','']
	],'',''],
	['PAGE','64512',jdecode('SERVICES+%2F+SUPPORTS'),jdecode(''), jdecode('%2F64512.html'), 'true',[],'',''],
	['PAGE','57712',jdecode('SSA+SERVICES'),jdecode(''), jdecode('%2F57712%2Findex.html'), 'true',[ 
		['PAGE','62512',jdecode('School+Age'),jdecode(''), jdecode('%2F57712%2F62512.html'), 'true',[],'',''],
		['PAGE','62312',jdecode('Eligibility'),jdecode(''), jdecode('%2F57712%2F62312.html'), 'true',[],'',''],
		['PAGE','62333',jdecode('Major+Unusual+Incidents'),jdecode(''), jdecode('%2F57712%2F62333.html'), 'true',[],'',''],
		['PAGE','62354',jdecode('Critical+Needs+Fund'),jdecode(''), jdecode('%2F57712%2F62354.html'), 'true',[],'','']
	],'',''],
	['PAGE','58812',jdecode('PROGRAMS'),jdecode(''), jdecode('%2F58812%2Findex.html'), 'true',[ 
		['PAGE','62533',jdecode('Adult+Day+Services'),jdecode(''), jdecode('%2F58812%2F62533.html'), 'true',[],'',''],
		['PAGE','62554',jdecode('L%26M+Products'),jdecode(''), jdecode('%2F58812%2F62554.html'), 'true',[],'',''],
		['PAGE','62575',jdecode('Private+Day+Hab'),jdecode(''), jdecode('%2F58812%2F62575.html'), 'true',[],'',''],
		['PAGE','58833',jdecode('Early+Intervention'),jdecode(''), jdecode('%2F58812%2F58833.html'), 'true',[],'',''],
		['PAGE','61633',jdecode('Transportation'),jdecode(''), jdecode('%2F58812%2F61633.html'), 'true',[],'','']
	],'',''],
	['PAGE','61412',jdecode('CALENDAR%2FACTIVITIES'),jdecode(''), jdecode('%2F61412%2Findex.html'), 'true',[ 
		['PAGE','89023',jdecode('Upcoming+Events'),jdecode(''), jdecode('%2F61412%2F89023.html'), 'true',[],'',''],
		['PAGE','62596',jdecode('Special+Olympics'),jdecode(''), jdecode('%2F61412%2F62596.html'), 'true',[],'',''],
		['PAGE','62617',jdecode('People+First'),jdecode(''), jdecode('%2F61412%2F62617.html'), 'true',[],'',''],
		['PAGE','62638',jdecode('Playground+Project'),jdecode(''), jdecode('%2F61412%2F62638.html'), 'true',[],'',''],
		['PAGE','115000',jdecode('A.S.K.+Parent+Support+Group'),jdecode(''), jdecode('%2F61412%2F115000.html'), 'true',[],'','']
	],'',''],
	['PAGE','66512',jdecode('PHOTOS'),jdecode(''), jdecode('%2F66512.html'), 'true',[],'',''],
	['PAGE','1978',jdecode('RESOURCES'),jdecode(''), jdecode('%2F1978%2Findex.html'), 'true',[ 
		['PAGE','41564',jdecode('Brochures+and+Publications'),jdecode(''), jdecode('%2F1978%2F41564.html'), 'true',[],'',''],
		['PAGE','61112',jdecode('Comprehensive+Service+Plan'),jdecode(''), jdecode('%2F1978%2F61112.html'), 'true',[],'',''],
		['PAGE','36201',jdecode('Links'),jdecode(''), jdecode('%2F1978%2F36201.html'), 'true',[],'',''],
		['PAGE','41585',jdecode('Newsletters'),jdecode(''), jdecode('%2F1978%2F41585.html'), 'true',[],'',''],
		['PAGE','41606',jdecode('News%2FInformation'),jdecode(''), jdecode('%2F1978%2F41606.html'), 'true',[],'','']
	],'',''],
	['PAGE','143900',jdecode('POLICIES+%26+PROCEDURES'),jdecode(''), jdecode('%2F143900%2Findex.html'), 'true',[ 
		['PAGE','144000',jdecode('Policies+%26+Procedures+Section+One'),jdecode(''), jdecode('%2F143900%2F144000.html'), 'true',[],'',''],
		['PAGE','144100',jdecode('Policies+%26+Procedures+Section+Two'),jdecode(''), jdecode('%2F143900%2F144100.html'), 'true',[],'',''],
		['PAGE','144121',jdecode('Policies+%26+Procedures+Section+Three'),jdecode(''), jdecode('%2F143900%2F144121.html'), 'true',[],'',''],
		['PAGE','144142',jdecode('Policies+%26+Procedures+Section+Four'),jdecode(''), jdecode('%2F143900%2F144142.html'), 'true',[],'',''],
		['PAGE','144163',jdecode('Policies+%26+Procedures+Section+Five'),jdecode(''), jdecode('%2F143900%2F144163.html'), 'true',[],'','']
	],'',''],
	['PAGE','41648',jdecode('EMPLOYMENT'),jdecode(''), jdecode('%2F41648.html'), 'true',[],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp13-bizcla',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20120119-111940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20120111-115831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1873',
internalId:  '',
customField: '20110721-095245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41648',
internalId:  '',
customField: '20120112-140540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64512',
internalId:  '',
customField: '20110126-084811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1999',
internalId:  '',
customField: '20111103-084700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1978',
internalId:  '',
customField: '20111128-092935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61112',
internalId:  '',
customField: '20100330-112814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41585',
internalId:  '',
customField: '20111220-131618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41606',
internalId:  '',
customField: '20110426-130250'
};
webappMappings['7008']=webappMappings['7008-7355']={
webappId:    '7008',
documentId:  '33101',
internalId:  '7355',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20090506-144538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115000',
internalId:  '',
customField: '20110721-094420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89023',
internalId:  '',
customField: '20120111-114510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58812',
internalId:  '',
customField: '20100331-114725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59712',
internalId:  '',
customField: '20101008-104130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61633',
internalId:  '',
customField: '20100331-114958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143900',
internalId:  '',
customField: '20111221-133607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36201',
internalId:  '',
customField: '20111220-114608'
};
webappMappings['1501']=webappMappings['1501-13918749']={
webappId:    '1501',
documentId:  '1801',
internalId:  '13918749',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57712',
internalId:  '',
customField: '20110126-085120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66512',
internalId:  '',
customField: '20111006-120609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58833',
internalId:  '',
customField: '20110126-090610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61412',
internalId:  '',
customField: '20120112-124413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41564',
internalId:  '',
customField: '20100331-115803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62312',
internalId:  '',
customField: '20100310-115047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62333',
internalId:  '',
customField: '20110126-090229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62354',
internalId:  '',
customField: '20110126-090343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62512',
internalId:  '',
customField: '20110314-104903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62533',
internalId:  '',
customField: '20101116-143510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62554',
internalId:  '',
customField: '20110525-114359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62575',
internalId:  '',
customField: '20101116-101822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62596',
internalId:  '',
customField: '20120111-115634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62617',
internalId:  '',
customField: '20100310-151636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62638',
internalId:  '',
customField: '20110721-095015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144000',
internalId:  '',
customField: '20111220-133939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144100',
internalId:  '',
customField: '20120119-082548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144121',
internalId:  '',
customField: '20111221-102630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144142',
internalId:  '',
customField: '20120119-092704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144163',
internalId:  '',
customField: '20120119-113207'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHDDM';
var companyName   = 'PREBLE+COUNTY+BOARD+of+DD';
var htmlTitle	  = '';
var metaKeywords  = 'Preble+County+DD';
var metaContents  = 'Offering+a+wide+array+of+services+for+Individuals+with+Developmental+Disabilities';
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();
};

