/* [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','536',jdecode('Chapter'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','557',jdecode('Mission'),jdecode(''),'/536/557.html','true',[],'',''],
		['PAGE','578',jdecode('Contacts'),jdecode(''),'/536/578.html','true',[],'','']
	],'',''],
	['PAGE','452',jdecode('Happenings'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','5201',jdecode('Upcoming+Programs'),jdecode(''),'/452/5201.html','true',[],'',''],
		['PAGE','473',jdecode('News'),jdecode(''),'/452/473.html','true',[],'',''],
		['PAGE','60801',jdecode('Learning+Links'),jdecode(''),'/452/60801.html','true',[],'',''],
		['PAGE','59501',jdecode('2008+Executive+Forum'),jdecode(''),'/452/59501.html','true',[],'','']
	],'',''],
	['PAGE','44601',jdecode('Trainer%26%23x27%3Bs+Connection'),jdecode(''),'/44601.html','true',[],'',''],
	['PAGE','5222',jdecode('Connect'),jdecode(''),'/5222/index.html','true',[ 
		['PAGE','494',jdecode('Jobs'),jdecode(''),'/5222/494.html','true',[],'',''],
		['PAGE','7501',jdecode('For+Employers'),jdecode(''),'/5222/7501.html','true',[],'',''],
		['PAGE','5243',jdecode('Consultant+Directory'),jdecode(''),'/5222/5243.html','true',[],'',''],
		['PAGE','11901',jdecode('For+Consultants'),jdecode(''),'/5222/11901.html','true',[],'','']
	],'',''],
	['PAGE','20701',jdecode('Employee+Learning+Week'),jdecode(''),'/20701/index.html','true',[ 
		['PAGE','21101',jdecode('ELW+Forum'),jdecode(''),'/20701/21101.html','true',[],'',''],
		['PAGE','21601',jdecode('ELW+Tips'),jdecode(''),'/20701/21601.html','true',[],'','']
	],'',''],
	['PAGE','4801',jdecode('Membership'),jdecode(''),'/4801/index.html','true',[ 
		['PAGE','11001',jdecode('Request+Information'),jdecode(''),'/4801/11001.html','true',[],'',''],
		['PAGE','4822',jdecode('Renew+Your+Membership'),jdecode(''),'/4801/4822.html','false',[],'',''],
		['PAGE','14801',jdecode('Update+Your+Info'),jdecode(''),'/4801/14801.html','true',[],'','']
	],'',''],
	['PAGE','53201',jdecode('Partners'),jdecode(''),'/53201.html','true',[],'',''],
	['PAGE','5285',jdecode('Support'),jdecode(''),'/5285/index.html','true',[ 
		['PAGE','5264',jdecode('Volunteer'),jdecode(''),'/5285/5264.html','true',[],'',''],
		['PAGE','11022',jdecode('I+want+to+volunteer'),jdecode(''),'/5285/11022.html','true',[],'',''],
		['PAGE','5306',jdecode('Sponsors'),jdecode(''),'/5285/5306.html','true',[],'','']
	],'',''],
	['PAGE','13201',jdecode('Pay+Online'),jdecode(''),'/13201.html','false',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Easy';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='51';
theSitetree.graphicsetId='52';
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: 			'Easy',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'51',
				graphicsetId: 	'52',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-908']={
webappId:    '7008',
documentId:  '11001',
internalId:  '908',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-909']={
webappId:    '7008',
documentId:  '11022',
internalId:  '909',
customField: 'language:en;country:US;'
};
webappMappings['4001']=webappMappings['4001-7742157']={
webappId:    '4001',
documentId:  '13201',
internalId:  '7742157',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-910']={
webappId:    '7008',
documentId:  '14801',
internalId:  '910',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-avec10inlvim115c9b339e2']={
webappId:    '1003',
documentId:  '21101',
internalId:  'avec10inlvim115c9b339e2',
customField: 'en:US:'
};
webappMappings['7008']=webappMappings['7008-911']={
webappId:    '7008',
documentId:  '11901',
internalId:  '911',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-avec10inlvim11ad06ca2b6']={
webappId:    '1003',
documentId:  '44601',
internalId:  'avec10inlvim11ad06ca2b6',
customField: 'en:US:'
};
webappMappings['7060']=webappMappings['7060-1f01167bdaaafe1e0d8be76ba9ac6550']={
webappId:    '7060',
documentId:  '59501',
internalId:  '1f01167bdaaafe1e0d8be76ba9ac6550',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-7730522']={
webappId:    '1501',
documentId:  '401',
internalId:  '7730522',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100531-214022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100822-100355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20100822-101355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20100309-160935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20081211-123127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100309-145009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20090416-124707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100723-160913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100531-212430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59501',
internalId:  '',
customField: '20081203-140929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44601',
internalId:  '',
customField: '20080628-124339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5222',
internalId:  '',
customField: '20081008-143611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100822-104033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20090501-143821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5243',
internalId:  '',
customField: '20090310-142253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20080826-085818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20701',
internalId:  '',
customField: '20091112-152811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20091112-151042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20091112-152450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20100531-210025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20070920-123800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4822',
internalId:  '',
customField: '20070923-210301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20070923-210341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5285',
internalId:  '',
customField: '20080920-154049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5264',
internalId:  '',
customField: '20090915-084220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11022',
internalId:  '',
customField: '20070920-125151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5306',
internalId:  '',
customField: '20100318-140333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20090324-085942'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INLVIM';
var companyName   = 'Greater+Cleveland+ASTD';
var htmlTitle	  = 'Greater+Cleveland+ASTD';
var metaKeywords  = 'ASTD%2C+training%2C+development%2C+professional+association%2C+coaching%2C+leadership+development%2C+trainers%2C+instructors%2C+Cleveland%2C+Cuyahoga%2C+Lake%2C+Geauga%2C+instructional+design%2C+consultants';
var metaContents  = 'Greater+Cleveland+ASTD+is+a+professional+association+of+training+and+development+professionals+in+Cleveland%2C+OH.';
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();
};
