/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','452',jdecode('About+Us'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','515',jdecode('Board+%26+Regional+Reps'),jdecode(''),'/452/515.html','true',[],'',''],
		['PAGE','557',jdecode('Regional+Map'),jdecode(''),'/452/557.html','true',[],'',''],
		['PAGE','536',jdecode('Bylaws+etc.'),jdecode(''),'/452/536.html','true',[],'',''],
		['PAGE','494',jdecode('WSSDVS+History'),jdecode(''),'/452/494.html','true',[],'',''],
		['PAGE','17401',jdecode('Position+Descriptions'),jdecode(''),'/452/17401.html','true',[],'','']
	],'',''],
	['PAGE','578',jdecode('How+To+Join+Us'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','599',jdecode('Membership+Application'),jdecode(''),'/578/599.html','true',[],'','']
	],'',''],
	['PAGE','620',jdecode('Calendar+%26+Events'),jdecode(''),'/620/index.html','true',[ 
		['PAGE','641',jdecode('Regional'),jdecode(''),'/620/641.html','true',[],'',''],
		['PAGE','662',jdecode('Board+Meeting+Dates'),jdecode(''),'/620/662.html','true',[],'',''],
		['PAGE','683',jdecode('WSSDVS+Conference'),jdecode(''),'/620/683.html','true',[],'',''],
		['PAGE','704',jdecode('AHVRP+Information'),jdecode(''),'/620/704.html','true',[],'','']
	],'',''],
	['PAGE','746',jdecode('Resources+-+Members+Only'),jdecode(''),'/746/index.html','true',[ 
		['PAGE','767',jdecode('Membership+Directory'),jdecode(''),'/746/767.html','true',[],'',''],
		['PAGE','788',jdecode('Newsletter'),jdecode(''),'/746/788.html','true',[],'',''],
		['PAGE','809',jdecode('Salary+Survey'),jdecode(''),'/746/809.html','true',[],'',''],
		['PAGE','830',jdecode('Cost+of+a+Volunteer'),jdecode(''),'/746/830.html','true',[],'',''],
		['PAGE','25501',jdecode('Program+Awards'),jdecode(''),'/746/25501.html','true',[],'',''],
		['PAGE','851',jdecode('Discussion+Board'),jdecode(''),'/746/851.html','true',[],'','']
	],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Contrast';
theSitetree.paletteFamily='3F7928';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16628';
theSitetree.graphicsetId='12214';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Contrast',
				paletteFamily: 	'3F7928',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16628',
				graphicsetId: 	'12214',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1003']=webappMappings['1003-ahw050inx3ii11acbedd659']={
webappId:    '1003',
documentId:  '851',
internalId:  'ahw050inx3ii11acbedd659',
customField: 'en:US:'
};
webappMappings['1501']=webappMappings['1501-247046']={
webappId:    '1501',
documentId:  '401',
internalId:  '247046',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100225-184542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100112-134001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100112-141220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20070920-184549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090904-101030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100112-134802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20091014-153038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100112-135307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20100112-141058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20090113-102312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20100525-170338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20100707-185333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20100707-201157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20100112-135646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20100707-192113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20100707-192357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20100525-171654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20080526-205903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20100112-135928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20100226-100513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '851',
internalId:  '',
customField: '20080604-140126'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INX3II';
var companyName   = 'WA+State+Society+of+Directors+of+Volunteer+Services';
var htmlTitle	  = 'Washington+State+Society+of+Directors+of+Volunteer+Services+in+Healthcare';
var metaKeywords  = 'WSSDVS++Washington+State+Society+of+Directors+of+Volunteer+Services+hospital+volunteer+hospital+gift+shop+';
var metaContents  = 'Volunteer+Services++professionals+at+hospitals+in+Washington+State%2C+including+gift+shops.';
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();
};
