/* [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','1701',jdecode('Home'),jdecode(''),'/1701.html','true',[],'',''],
	['PAGE','1752',jdecode('About+us'),jdecode(''),'/1752/index.html','true',[ 
		['PAGE','7201',jdecode('History'),jdecode(''),'/1752/7201.html','true',[],'',''],
		['PAGE','7501',jdecode('Board+of+Directors'),jdecode(''),'/1752/7501.html','true',[],'','']
	],'',''],
	['PAGE','6401',jdecode('Contact'),jdecode(''),'/6401.html','true',[],'',''],
	['PAGE','6422',jdecode('Events'),jdecode(''),'/6422/index.html','true',[ 
		['PAGE','12501',jdecode('2009+Annual+Golf+Outing+%26+Silent+Auction'),jdecode(''),'/6422/12501.html','false',[],'',''],
		['PAGE','14601',jdecode('Texas+Hold%26%23x27%3BEm'),jdecode(''),'/6422/14601.html','false',[],'',''],
		['PAGE','14501',jdecode('Dining+with+the+ARC'),jdecode(''),'/6422/14501.html','false',[],'',''],
		['PAGE','14622',jdecode('Annual+Pizza+%26+Beer+Benefit+Party'),jdecode(''),'/6422/14622.html','false',[],'',''],
		['PAGE','14901',jdecode('Halloween+Party'),jdecode(''),'/6422/14901.html','false',[],'',''],
		['PAGE','14801',jdecode('IEP+Days'),jdecode(''),'/6422/14801.html','false',[],'',''],
		['PAGE','18912',jdecode('Annual+Garage+Sales'),jdecode(''),'/6422/18912.html','false',[],'',''],
		['PAGE','19212',jdecode('Christmas+Gift+Wrap'),jdecode(''),'/6422/19212.html','false',[],'',''],
		['PAGE','22634',jdecode('Red+Wings'),jdecode(''),'/6422/22634.html','false',[],'',''],
		['PAGE','22655',jdecode('Second+Annual+Give+from+the+Heart+Bowl-A-Thon'),jdecode(''),'/6422/22655.html','false',[],'',''],
		['PAGE','23434',jdecode('Special+Education+Fair'),jdecode(''),'/6422/23434.html','false',[],'','']
	],'',''],
	['PAGE','6443',jdecode('Links'),jdecode(''),'/6443.html','true',[],'',''],
	['PAGE','6464',jdecode('Membership'),jdecode(''),'/6464.html','true',[],'',''],
	['PAGE','6485',jdecode('Donations'),jdecode(''),'/6485.html','true',[],'',''],
	['PAGE','6506',jdecode('Newsletter'),jdecode(''),'/6506.html','true',[],'',''],
	['PAGE','6527',jdecode('Privacy+Policy'),jdecode(''),'/6527.html','true',[],'',''],
	['PAGE','7701',jdecode('Advocacy'),jdecode(''),'/7701/index.html','false',[ 
		['PAGE','8101',jdecode('Information'),jdecode(''),'/7701/8101.html','false',[],'',''],
		['PAGE','8122',jdecode('Alternatives+to+Guardianship+and+Guardianship'),jdecode(''),'/7701/8122.html','false',[],'',''],
		['PAGE','8143',jdecode('Entitlement+Programs'),jdecode(''),'/7701/8143.html','false',[],'',''],
		['PAGE','8164',jdecode('Estate+Planning'),jdecode(''),'/7701/8164.html','false',[],'',''],
		['PAGE','8185',jdecode('Mental+Health+Services'),jdecode(''),'/7701/8185.html','false',[],'',''],
		['PAGE','8206',jdecode('Person+Centered+Planning'),jdecode(''),'/7701/8206.html','false',[],'','']
	],'',''],
	['PAGE','7722',jdecode('Circle+of+Support'),jdecode(''),'/7722.html','false',[],'',''],
	['PAGE','7743',jdecode('Community+Employment'),jdecode(''),'/7743/index.html','false',[ 
		['PAGE','10201',jdecode('Community-Based+Situational+Assessments'),jdecode(''),'/7743/10201.html','true',[],'',''],
		['PAGE','10222',jdecode('School-to-Work'),jdecode(''),'/7743/10222.html','true',[],'',''],
		['PAGE','10243',jdecode('Work+Adjustment+Program'),jdecode(''),'/7743/10243.html','true',[],'',''],
		['PAGE','10264',jdecode('Job+Seeking+Skills+Workshop'),jdecode(''),'/7743/10264.html','true',[],'',''],
		['PAGE','10285',jdecode('Job+Placement+Services'),jdecode(''),'/7743/10285.html','true',[],'',''],
		['PAGE','10306',jdecode('Job+Coaching+Services'),jdecode(''),'/7743/10306.html','true',[],'',''],
		['PAGE','10327',jdecode('Follow-Up%2FJob+Retention+Services'),jdecode(''),'/7743/10327.html','true',[],'',''],
		['PAGE','10348',jdecode('Mobility+Training'),jdecode(''),'/7743/10348.html','true',[],'',''],
		['PAGE','10369',jdecode('Driver%26%23x27%3Bs+Training+Tutoring'),jdecode(''),'/7743/10369.html','true',[],'','']
	],'',''],
	['PAGE','7764',jdecode('Community+Supports'),jdecode(''),'/7764.html','false',[],'',''],
	['PAGE','7785',jdecode('Facility+Based'),jdecode(''),'/7785.html','false',[],'',''],
	['PAGE','7806',jdecode('Fiscal+Intermediary'),jdecode(''),'/7806.html','false',[],'',''],
	['PAGE','7827',jdecode('Representative+Payee+Services'),jdecode(''),'/7827.html','false',[],'',''],
	['PAGE','7848',jdecode('Shared+Parenting+'),jdecode(''),'/7848.html','false',[],'',''],
	['PAGE','8227',jdecode('Special+Education'),jdecode(''),'/8227.html','false',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				a_color: 		'003390',
				b_color: 		'000000',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20091122-145835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1752',
internalId:  '',
customField: '20090827-102416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20091122-151119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20090826-151739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20090826-144504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8122',
internalId:  '',
customField: '20090826-144443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8143',
internalId:  '',
customField: '20091203-172410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8164',
internalId:  '',
customField: '20090826-144649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8185',
internalId:  '',
customField: '20090826-143736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8206',
internalId:  '',
customField: '20091203-172454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8227',
internalId:  '',
customField: '20090827-113850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7722',
internalId:  '',
customField: '20090826-154309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7743',
internalId:  '',
customField: '20090826-202145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7764',
internalId:  '',
customField: '20100121-132411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7785',
internalId:  '',
customField: '20090826-160718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20090826-193732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10222',
internalId:  '',
customField: '20090826-193858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10243',
internalId:  '',
customField: '20090826-194053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10264',
internalId:  '',
customField: '20090826-194139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10285',
internalId:  '',
customField: '20090826-194323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10306',
internalId:  '',
customField: '20090826-194520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10327',
internalId:  '',
customField: '20090826-194702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10348',
internalId:  '',
customField: '20090826-194848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10369',
internalId:  '',
customField: '20090826-194957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7806',
internalId:  '',
customField: '20090826-195653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7827',
internalId:  '',
customField: '20090826-200433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7848',
internalId:  '',
customField: '20090826-201752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6422',
internalId:  '',
customField: '20100121-134223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6443',
internalId:  '',
customField: '20091122-151820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6485',
internalId:  '',
customField: '20090827-113120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20090827-093311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20090827-101050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6464',
internalId:  '',
customField: '20100104-144625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20091130-123927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20091022-105021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14622',
internalId:  '',
customField: '20090827-114514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14501',
internalId:  '',
customField: '20100121-133708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20090827-115441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20090827-115552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6506',
internalId:  '',
customField: '20100121-135843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6527',
internalId:  '',
customField: '20090826-114334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18912',
internalId:  '',
customField: '20091022-104711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19212',
internalId:  '',
customField: '20091207-094152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22655',
internalId:  '',
customField: '20100121-133322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22634',
internalId:  '',
customField: '20100121-134524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23434',
internalId:  '',
customField: '20100121-134423'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHSLA';
var companyName   = 'ARC+Services+of+Macomb%2C+Inc.+';
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();
};
