/* [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 theSitetree=[ 
	['PAGE','4801',jdecode('Home'),jdecode(''),'/4801.html','true',[],''],
	['PAGE','7401',jdecode('About+us'),jdecode(''),'/7401/index.html','true',[ 
		['PAGE','9001',jdecode('+++++Our+Staff'),jdecode(''),'/7401/9001.html','true',[],''],
		['PAGE','9022',jdecode('+++++Board+of+Directors'),jdecode(''),'/7401/9022.html','true',[],'']
	],''],
	['PAGE','11401',jdecode('Mediation+Services'),jdecode(''),'/11401/index.html','true',[ 
		['PAGE','4852',jdecode('+++++Family'),jdecode(''),'/11401/4852.html','true',[],''],
		['PAGE','9064',jdecode('++++++Community'),jdecode(''),'/11401/9064.html','true',[],''],
		['PAGE','10501',jdecode('+++++Manufactured+Comm.'),jdecode(''),'/11401/10501.html','true',[],''],
		['PAGE','9085',jdecode('++++++Small+Claims'),jdecode(''),'/11401/9085.html','true',[],''],
		['PAGE','9106',jdecode('++++++Victim-Offender'),jdecode(''),'/11401/9106.html','true',[],'']
	],''],
	['PAGE','7422',jdecode('Supervised+Visitation'),jdecode(''),'/7422.html','true',[],''],
	['PAGE','9127',jdecode('Forms+%26+Publications'),jdecode(''),'/9127.html','true',[],''],
	['PAGE','4873',jdecode('Classes+%26+Trainings'),jdecode(''),'/4873/index.html','true',[ 
		['PAGE','11901',jdecode('+++++Mediation+Training'),jdecode(''),'/4873/11901.html','true',[],'']
	],''],
	['PAGE','7464',jdecode('Helpful+Links'),jdecode(''),'/7464.html','true',[],''],
	['PAGE','20106',jdecode('Pay+for+Services'),jdecode(''),'/20106.html','true',[],''],
	['PAGE','7443',jdecode('Donate'),jdecode(''),'/7443.html','true',[],''],
	['PAGE','10522',jdecode('-----'),jdecode(''),'/10522.html','true',[],''],
	['PAGE','10564',jdecode('Inicio'),jdecode(''),'/10564.html','true',[],''],
	['PAGE','10585',jdecode('Sobre+nosotros'),jdecode(''),'/10585/index.html','true',[ 
		['PAGE','10606',jdecode('+++++Nuestro+Personal'),jdecode(''),'/10585/10606.html','true',[],''],
		['PAGE','10627',jdecode('+++++Junta+Directiva'),jdecode(''),'/10585/10627.html','true',[],'']
	],''],
	['PAGE','10648',jdecode('Servicios++de+Mediaci%C3%B3n'),jdecode(''),'/10648/index.html','true',[ 
		['PAGE','10669',jdecode('++++Familia'),jdecode(''),'/10648/10669.html','true',[],''],
		['PAGE','10690',jdecode('+++Comunidad'),jdecode(''),'/10648/10690.html','true',[],''],
		['PAGE','10711',jdecode('++++Comunidades+casas+prefabricadas'),jdecode(''),'/10648/10711.html','true',[],''],
		['PAGE','10732',jdecode('++++Peque%C3%B1os+Reclamos+en+Tribunales'),jdecode(''),'/10648/10732.html','true',[],''],
		['PAGE','10753',jdecode('+++++V%C3%ADctima-Agresor'),jdecode(''),'/10648/10753.html','true',[],'']
	],''],
	['PAGE','10774',jdecode('Visita+Supervisada'),jdecode(''),'/10774.html','true',[],''],
	['PAGE','10795',jdecode('Formatos+y+Publicaciones'),jdecode(''),'/10795.html','true',[],''],
	['PAGE','10816',jdecode('Clases+y+Talleres'),jdecode(''),'/10816.html','true',[],''],
	['PAGE','10837',jdecode('Donaciones'),jdecode(''),'/10837.html','true',[],''],
	['PAGE','10858',jdecode('Enlaces'),jdecode(''),'/10858.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Contrast';
theSitetree.paletteFamily='363C95';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16630';
theSitetree.graphicsetId='12215';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Contrast',
				paletteFamily: 	'363C95',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16630',
				graphicsetId: 	'12215',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20091006-181032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4852',
internalId:  '',
customField: '20090210-164524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4873',
internalId:  '',
customField: '20090917-122718'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC24M']={
webappId:    '5003',
documentId:  '4801',
internalId:  'tid:1;pid:WSCSYSSSSLYTC24M',
customField: 'en:US::;language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20091006-180204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20091006-182548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9022',
internalId:  '',
customField: '20091006-174804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20090917-122946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9064',
internalId:  '',
customField: '20090210-170948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9085',
internalId:  '',
customField: '20090210-165438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9106',
internalId:  '',
customField: '20090210-165854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20091008-160403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10648',
internalId:  '',
customField: '20091008-113334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9127',
internalId:  '',
customField: '20090618-154345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7443',
internalId:  '',
customField: '20090507-181913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7464',
internalId:  '',
customField: '20090511-115447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10669',
internalId:  '',
customField: '20091008-115527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20090219-103926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10522',
internalId:  '',
customField: '20090204-154529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10564',
internalId:  '',
customField: '20091007-164011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10585',
internalId:  '',
customField: '20091007-170533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10606',
internalId:  '',
customField: '20091007-185120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10627',
internalId:  '',
customField: '20091008-113132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10690',
internalId:  '',
customField: '20090406-131825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10711',
internalId:  '',
customField: '20091008-115925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10732',
internalId:  '',
customField: '20091008-124444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10753',
internalId:  '',
customField: '20091008-124751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10774',
internalId:  '',
customField: '20091008-125131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10795',
internalId:  '',
customField: '20091015-161848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10816',
internalId:  '',
customField: '20090507-182013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10837',
internalId:  '',
customField: '20090406-135955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10858',
internalId:  '',
customField: '20090406-140145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20090210-164402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20106',
internalId:  '',
customField: '20090306-141320'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INVFJX';
var companyName   = '';
var htmlTitle	  = 'Linn-Benton+Mediation+Services';
var metaKeywords  = 'mediation%2C+small+claims%2C+victim%2C+offender%2C+child+support%2C+parenting+plan%2C+conflict%2C+resolution%2C+parent%2C+parents%2C+elder%2C+contract%2C+supervised%2C+visitation%2C+family%2C+community%2C+manufactured+dwelling+park%2C+manufactured+home+park%2C+linn%2C+benton%2C+albany%2C+corvallis%2C+lebanon%2C+sweet+home%2C+scio%2C+philomath%2C+alsea%2C+monroe%2C+skills%2C+class%2C+training%2C+volunteer%2C+court';
var metaContents  = 'Linn-Benton+Mediation+Services%2C+is+a+private+non-profit+organization+that+provides+alternative+dispute+resolution+and+supervised+visitation+services+to+residents+of+Linn+and+Benton+Counties%2C+Oregon.+Our+agency+offers+a+place+where+people+can+come+together+with+a+trained+mediator%2C+in+a+safe+and+neutral+environment%2C+and+talk+about+solutions+to+their+conflict.';
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();
};
