/* [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(''),'/1801/index.html','true',[ 
		['PAGE','59712',jdecode('Administrative+Offices'),jdecode(''),'/1801/59712.html','true',[],'',''],
		['PAGE','1852',jdecode('Board+Members'),jdecode(''),'/1801/1852.html','true',[],'',''],
		['PAGE','1873',jdecode('Contact+Information'),jdecode(''),'/1801/1873.html','true',[],'',''],
		['PAGE','33101',jdecode('Information+Request'),jdecode(''),'/1801/33101.html','true',[],'',''],
		['PAGE','1999',jdecode('Program+Staff'),jdecode(''),'/1801/1999.html','true',[],'','']
	],'',''],
	['PAGE','64512',jdecode('SERVICES+%2F+SUPPORTS'),jdecode(''),'/64512.html','true',[],'',''],
	['PAGE','57712',jdecode('SSA+SERVICES'),jdecode(''),'/57712/index.html','true',[ 
		['PAGE','62512',jdecode('School+Age'),jdecode(''),'/57712/62512.html','true',[],'',''],
		['PAGE','62312',jdecode('Eligibility'),jdecode(''),'/57712/62312.html','true',[],'',''],
		['PAGE','62333',jdecode('Major+Unusual+Incidents'),jdecode(''),'/57712/62333.html','true',[],'',''],
		['PAGE','62354',jdecode('Critical+Needs+Fund'),jdecode(''),'/57712/62354.html','true',[],'','']
	],'',''],
	['PAGE','58812',jdecode('PROGRAMS'),jdecode(''),'/58812/index.html','true',[ 
		['PAGE','62533',jdecode('Adult+Day+Services'),jdecode(''),'/58812/62533.html','true',[],'',''],
		['PAGE','62554',jdecode('L%26M+Products'),jdecode(''),'/58812/62554.html','true',[],'',''],
		['PAGE','62575',jdecode('Private+Day+Hab'),jdecode(''),'/58812/62575.html','true',[],'',''],
		['PAGE','58833',jdecode('Early+Intervention'),jdecode(''),'/58812/58833.html','true',[],'',''],
		['PAGE','61633',jdecode('Transportation'),jdecode(''),'/58812/61633.html','true',[],'','']
	],'',''],
	['PAGE','61412',jdecode('CALENDAR%2FACTIVITIES'),jdecode(''),'/61412/index.html','true',[ 
		['PAGE','62596',jdecode('Special+Olympics'),jdecode(''),'/61412/62596.html','true',[],'',''],
		['PAGE','62617',jdecode('People+First'),jdecode(''),'/61412/62617.html','true',[],'',''],
		['PAGE','62638',jdecode('Playground+Project'),jdecode(''),'/61412/62638.html','true',[],'','']
	],'',''],
	['PAGE','66512',jdecode('PHOTOS'),jdecode(''),'/66512.html','true',[],'',''],
	['PAGE','1978',jdecode('RESOURCES'),jdecode(''),'/1978/index.html','true',[ 
		['PAGE','41564',jdecode('Brochures+and+Publications'),jdecode(''),'/1978/41564.html','true',[],'',''],
		['PAGE','61112',jdecode('Comprehensive+Service+Plan'),jdecode(''),'/1978/61112.html','true',[],'',''],
		['PAGE','36201',jdecode('Links'),jdecode(''),'/1978/36201.html','true',[],'',''],
		['PAGE','41585',jdecode('Newsletters'),jdecode(''),'/1978/41585.html','true',[],'',''],
		['PAGE','41606',jdecode('Press+Releases'),jdecode(''),'/1978/41606.html','true',[],'','']
	],'',''],
	['PAGE','41648',jdecode('EMPLOYMENT'),jdecode(''),'/41648.html','true',[],'','']];
var siteelementCount=30;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='6699CC';
theSitetree.keyvisualId='9242';
theSitetree.keyvisualName='kv4.swf';
theSitetree.fontsetId='17360';
theSitetree.graphicsetId='12764';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'6699CC',
				keyvisualId: 	'9242',
				keyvisualName: 	'kv4.swf',
				fontsetId: 		'17360',
				graphicsetId: 	'12764',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20100722-153430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20100719-153930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1873',
internalId:  '',
customField: '20100331-113642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41648',
internalId:  '',
customField: '20100719-143243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64512',
internalId:  '',
customField: '20100310-120309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1999',
internalId:  '',
customField: '20100701-122550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1978',
internalId:  '',
customField: '20100331-115712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61112',
internalId:  '',
customField: '20100330-112814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41585',
internalId:  '',
customField: '20100701-125402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41606',
internalId:  '',
customField: '20090610-081228'
};
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:  '58812',
internalId:  '',
customField: '20100331-114725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59712',
internalId:  '',
customField: '20100225-114546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61633',
internalId:  '',
customField: '20100331-114958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36201',
internalId:  '',
customField: '20100616-094525'
};
webappMappings['1501']=webappMappings['1501-13918749']={
webappId:    '1501',
documentId:  '1801',
internalId:  '13918749',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57712',
internalId:  '',
customField: '20100331-114430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66512',
internalId:  '',
customField: '20100701-125453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58833',
internalId:  '',
customField: '20100310-151043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61412',
internalId:  '',
customField: '20100719-142145'
};
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: '20100310-115221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62354',
internalId:  '',
customField: '20100331-114642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62512',
internalId:  '',
customField: '20100310-115605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62533',
internalId:  '',
customField: '20100310-150544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62554',
internalId:  '',
customField: '20100701-122718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62575',
internalId:  '',
customField: '20100310-151032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62596',
internalId:  '',
customField: '20100702-110645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62617',
internalId:  '',
customField: '20100310-151636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62638',
internalId:  '',
customField: '20100722-154121'
};
var canonHostname = 'diywk02.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();
};
