/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','15601',jdecode('President%26%23x27%3Bs+Message+'),jdecode(''),'/15601.html','true',[],'',''],
	['PAGE','3401',jdecode('IACN+Member+Lists'),jdecode(''),'/3401/index.html','true',[ 
		['PAGE','13401',jdecode('IACN+Members'),jdecode(''),'/3401/13401.html','true',[],'',''],
		['PAGE','13443',jdecode('Current+Neurologists'),jdecode(''),'/3401/13443.html','true',[],'',''],
		['PAGE','13422',jdecode('Diplomates+IBCN'),jdecode(''),'/3401/13422.html','true',[],'',''],
		['PAGE','73401',jdecode('Diplomates+IBE'),jdecode(''),'/3401/73401.html','true',[],'','']
	],'',''],
	['PAGE','3422',jdecode('Join%2FRenew%2FUpdate+IACN'),jdecode(''),'/3422.html','true',[],'',''],
	['PAGE','48801',jdecode('Events'),jdecode(''),'/48801.html','true',[],'',''],
	['PAGE','61001',jdecode('Journal'),jdecode(''),'/61001.html','true',[],'',''],
	['PAGE','3569',jdecode('IACN+Officers'),jdecode(''),'/3569.html','true',[],'',''],
	['PAGE','10201',jdecode('IBCN+%28Neurology+Board%29'),jdecode(''),'/10201/index.html','true',[ 
		['PAGE','18301',jdecode('Application'),jdecode(''),'/10201/18301.html','true',[],'',''],
		['PAGE','18701',jdecode('Board+Members'),jdecode(''),'/10201/18701.html','true',[],'','']
	],'',''],
	['PAGE','3506',jdecode('IBE+%28Edx+Board%29'),jdecode(''),'/3506.html','true',[],'',''],
	['PAGE','3485',jdecode('Neurology+Courses'),jdecode(''),'/3485.html','true',[],'',''],
	['PAGE','4222',jdecode('Electrodiagnosis+Courses'),jdecode(''),'/4222.html','true',[],'',''],
	['PAGE','85201',jdecode('Continued+Competence'),jdecode(''),'/85201.html','true',[],'',''],
	['PAGE','79501',jdecode('Speakers+Bureau'),jdecode(''),'/79501.html','true',[],'',''],
	['PAGE','2401',jdecode('IACN+Documents'),jdecode(''),'/2401/index.html','false',[ 
		['PAGE','56122',jdecode('BYLAWS+Vote'),jdecode(''),'/2401/56122.html','true',[],'','']
	],'',''],
	['PAGE','82201',jdecode('Communications'),jdecode(''),'/82201/index.html','true',[ 
		['PAGE','11301',jdecode('Newsletters'),jdecode(''),'/82201/11301.html','true',[],'',''],
		['PAGE','82222',jdecode('News+Releases'),jdecode(''),'/82201/82222.html','true',[],'','']
	],'',''],
	['PAGE','28201',jdecode('Convention+Gallery'),jdecode(''),'/28201.html','true',[],'',''],
	['PAGE','3737',jdecode('Links'),jdecode(''),'/3737.html','true',[],'',''],
	['PAGE','78801',jdecode('Contact+Us'),jdecode(''),'/78801.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='85';
theSitetree.graphicsetId='104';
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: 			'Global',
				paletteFamily: 	'006600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'85',
				graphicsetId: 	'104',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'176B03',
				b_color: 		'669900',
				c_color: 		'000000',
				d_color: 		'E0EEE3',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-2326002']={
webappId:    '1501',
documentId:  '601',
internalId:  '2326002',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-1293c2401ee3d4aa27d5e791f9592dcc']={
webappId:    '7060',
documentId:  '28201',
internalId:  '1293c2401ee3d4aa27d5e791f9592dcc',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78801',
internalId:  '',
customField: '20100421-223253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79501',
internalId:  '',
customField: '20100515-221914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82201',
internalId:  '',
customField: '20100409-095113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100411-233505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3401',
internalId:  '',
customField: '20100405-103016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20100324-132704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13443',
internalId:  '',
customField: '20100515-221755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20100405-103025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20100402-111150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13422',
internalId:  '',
customField: '20100405-102724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3422',
internalId:  '',
customField: '20100402-110620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20100402-190722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18301',
internalId:  '',
customField: '20080907-112553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20081105-123247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3506',
internalId:  '',
customField: '20100413-230015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3485',
internalId:  '',
customField: '20090903-200640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20080828-154250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3569',
internalId:  '',
customField: '20100408-160510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20090901-175016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28201',
internalId:  '',
customField: '20080907-121446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3737',
internalId:  '',
customField: '20080907-114950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82222',
internalId:  '',
customField: '20100412-001749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85201',
internalId:  '',
customField: '20100421-222858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73401',
internalId:  '',
customField: '20100406-195350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61001',
internalId:  '',
customField: '20100402-110823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48801',
internalId:  '',
customField: '20100402-110522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56122',
internalId:  '',
customField: '20100128-101244'
};
webappMappings['7008']=webappMappings['7008-5238']={
webappId:    '7008',
documentId:  '56122',
internalId:  '5238',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INVQMM';
var companyName   = 'IACN';
var htmlTitle	  = 'IACN+-+International+Academy+of+Chiropractic+Neurology';
var metaKeywords  = 'Board+Certified%2C+Diplomate%2C+neurology%2C+electrodiagnosis.+Dr.+Joe+Ferezy%2C+Dr.+Richard+L.+Cole%2C+Dr.+Judy+Lipka%2C+Dr.+Scott+Arnold%2C+Dr.+Paul+Dickerson%2C+Dr.+Lisa+Bloom%2C+Dr.+Bud+Cheney%2C+Dr.+Gordan+Staff%2C+Dr.+Jason+Evans';
var metaContents  = 'board+certified+chiropractic+neurologists%2C+electrodiagnosticians%2C+International+Academy+of+Chiropractic+Neurology%2C+INternational+Board+of+Chiropractic+Neurology%2C++International+Board+of+Electrodiagnosis%2C+chiropractic+neurology%2C+IACN%2C+DIBE%2C+DIBCN%2C+DACAN%2C+DACNB%2C+FIACN%2C+examinations%2C+competency+in+neurology%2C+National+Board+of+Chiropractic+Examiners%2C+NBCE';
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();
};
