/* [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','1001',jdecode('Home'),jdecode(''),'/1001.html','true',[],'',''],
	['PAGE','1052',jdecode('Services'),jdecode(''),'/1052/index.html','true',[ 
		['PAGE','7322',jdecode('Biofeedback'),jdecode(''),'/1052/7322.html','true',[],'',''],
		['PAGE','7301',jdecode('Neurofeedback'),jdecode(''),'/1052/7301.html','true',[],'',''],
		['PAGE','41835',jdecode('QEEG'),jdecode(''),'/1052/41835.html','true',[],'',''],
		['PAGE','41844',jdecode('LENS'),jdecode(''),'/1052/41844.html','true',[],'',''],
		['PAGE','41826',jdecode('NeuroField'),jdecode(''),'/1052/41826.html','true',[],'',''],
		['PAGE','41799',jdecode('HeartMath+%28Heartrate+Variability%29'),jdecode(''),'/1052/41799.html','true',[],'',''],
		['PAGE','41790',jdecode('EMDR'),jdecode(''),'/1052/41790.html','true',[],'',''],
		['PAGE','7343',jdecode('Counseling'),jdecode(''),'/1052/7343.html','true',[],'',''],
		['PAGE','23201',jdecode('Peak+Performance+Training'),jdecode(''),'/1052/23201.html','true',[],'','']
	],'',''],
	['PAGE','1157',jdecode('Profiles'),jdecode(''),'/1157/index.html','true',[ 
		['PAGE','7406',jdecode('Myron+Thurber%2C+Ph.D.%2C+LMHC'),jdecode(''),'/1157/7406.html','true',[],'',''],
		['PAGE','34201',jdecode('Sarah+Jordan%2C+M.A.%2C+LMHC'),jdecode(''),'/1157/34201.html','true',[],'',''],
		['PAGE','41808',jdecode('Ji-Hye+Jean%2C+M.A.%2C+LMHCA+'),jdecode(''),'/1157/41808.html','true',[],'',''],
		['PAGE','8601',jdecode('Patrick+Burch%2C+MBA'),jdecode(''),'/1157/8601.html','true',[],'',''],
		['PAGE','41817',jdecode('Kathryn+Fairbanks'),jdecode(''),'/1157/41817.html','true',[],'','']
	],'',''],
	['PAGE','25701',jdecode('Frequently+Asked+Questions'),jdecode(''),'/25701.html','true',[],'',''],
	['PAGE','19001',jdecode('Suggested+Books'),jdecode(''),'/19001.html','true',[],'',''],
	['PAGE','1220',jdecode('Links'),jdecode(''),'/1220.html','true',[],'',''],
	['PAGE','1073',jdecode('Products'),jdecode(''),'/1073/index.html','true',[ 
		['PAGE','1094',jdecode('emWave+Desktop%C2%AE'),jdecode(''),'/1073/1094.html','true',[],'',''],
		['PAGE','43282',jdecode('emWave2'),jdecode(''),'/1073/43282.html','true',[],'',''],
		['PAGE','1115',jdecode('emWave+Personal+Stress+Reliever%C2%AE'),jdecode(''),'/1073/1115.html','true',[],'',''],
		['PAGE','26501',jdecode('The+emWave+Experience'),jdecode(''),'/1073/26501.html','true',[],'',''],
		['PAGE','1136',jdecode('David+PAL+36'),jdecode(''),'/1073/1136.html','true',[],'','']
	],'',''],
	['PAGE','39001',jdecode('Map'),jdecode(''),'/39001.html','true',[],'',''],
	['PAGE','36501',jdecode('Privacy+Notice'),jdecode(''),'/36501.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='479949';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10895';
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: 			'Alpha',
				paletteFamily: 	'479949',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10895',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'479949',
				e_color: 		'479949',
				f_color: 		'479949',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '39001',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20110608-120800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20110524-183632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25701',
internalId:  '',
customField: '20110524-192407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1052',
internalId:  '',
customField: '20110524-192616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20110524-162153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20110520-132534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7343',
internalId:  '',
customField: '20110525-192441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20110524-123434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41844',
internalId:  '',
customField: '20110517-142103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1073',
internalId:  '',
customField: '20110516-124702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1094',
internalId:  '',
customField: '20100421-124051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1115',
internalId:  '',
customField: '20070518-154509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26501',
internalId:  '',
customField: '20070326-132620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1136',
internalId:  '',
customField: '20110516-124837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1157',
internalId:  '',
customField: '20110531-132955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7406',
internalId:  '',
customField: '20110525-190746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20110525-190736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20110531-132123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1220',
internalId:  '',
customField: '20110524-183714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39001',
internalId:  '',
customField: '20080214-195528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20071005-170740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41808',
internalId:  '',
customField: '20110531-134700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41790',
internalId:  '',
customField: '20110518-193500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41826',
internalId:  '',
customField: '20110518-193355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41835',
internalId:  '',
customField: '20110524-180356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41799',
internalId:  '',
customField: '20110520-145848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41817',
internalId:  '',
customField: '20110531-132833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43282',
internalId:  '',
customField: '20110617-162048'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INEM20';
var companyName   = 'NEUROTHERAPY+NORTHWEST';
var htmlTitle	  = 'Neurotherapy+Northwest';
var metaKeywords  = 'Neurotherapy%2C+Neurofeedback%2C+Biofeedback%2C+ADHD%2C+Chronic+Pain%2C+OCD%2C+Migraines%2C+Addictions%2C+EEG+Biofeedback%2C+Performance+anxiety%2C+Counseling%2C+Anxiety%2C+Depression%2C+HRV%2C+Heart+Rate+Variability%2C+AVE%2C+Audio+Visual+Entrainment%2C+HeartMath%2C+Stress+management%2C+Executive+coaching%2C+LENS+';
var metaContents  = 'Neurofeedback%2C+Biofeedback%2C+Counseling%2C+Peak+Performance%2C+ADHD%2C+Anxiety%2C+Headaches%2C+Migraines%2C+Sleeplessness%2C+Sleep+Disorders%2C+Stress%2C+Depression%2C+LENS';
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();
};

