/* [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','701',jdecode('Home'),jdecode(''),'/701/index.html','true',[ 
		['PAGE','773',jdecode('Teachers+%26+Workshops'),jdecode(''),'/701/773.html','true',[],''],
		['PAGE','794',jdecode('Schedule'),jdecode(''),'/701/794.html','true',[],''],
		['PAGE','11201',jdecode('Pre-Conference+Intensives'),jdecode(''),'/701/11201.html','true',[],'']
	],''],
	['PAGE','5801',jdecode('Registration'),jdecode(''),'/5801.html','true',[],''],
	['PAGE','32301',jdecode('Sponsors'),jdecode(''),'/32301.html','true',[],''],
	['PAGE','857',jdecode('Organizers'),jdecode(''),'/857.html','true',[],''],
	['PAGE','31201',jdecode('Photo+Gallery'),jdecode(''),'/31201.html','true',[],''],
	['PAGE','878',jdecode('Contact'),jdecode(''),'/878.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='364EB6';
theSitetree.keyvisualId='7146';
theSitetree.keyvisualName='kv_7146.jpg';
theSitetree.fontsetId='16395';
theSitetree.graphicsetId='12129';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Blossom',
				paletteFamily: 	'364EB6',
				keyvisualId: 	'7146',
				keyvisualName: 	'kv_7146.jpg',
				fontsetId: 		'16395',
				graphicsetId: 	'12129',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100218-120935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100217-183404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20100223-183803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20100217-144725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20100217-175856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20100218-120246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32301',
internalId:  '',
customField: '20100223-184706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20090218-065938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20100217-182348'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INL3KN';
var companyName   = 'Breitenbush+Herbal+Conference+2010';
var htmlTitle	  = 'Breitenbush+Herbal+Conference';
var metaKeywords  = 'Breitenbush+Herbal+Conference%2C+Herbal+Conference%2C+Oregon%2C+Herbalist%2C+Herbalism%2C+Herbology%2C+Herbal+Education%2C+Hot+Springs%2C+Cascade+Anderson+Geller%2C+Rosita+Arvigo%2C+Jane+Bothwell%2C+Howie+Brounstein%2C+Candis+Cantin%2C+Robin+DiPasquale%2C+Charles+Garcia%2C+Jo+Jenner%2C+Scott+Kloos%2C+Seth+McLaughlin%2C+Bob+Quinn%2C+Naturopathic+Medicine%2C+Alternative+Medicine%2C+Health+Care+Continuing+Education%2C+Herb+Walk%2C+Abdominal+Massage%2C+Food+as+Medicine%2C+History+and+Mystery+of+Hebal+Medicine%2C+Sue+Burns%2C+Trudy+Zimmerly%2C+Catherine+Magasich%2C+Hydrotherapy%2C+Moxa%2C+Curanderismo';
var metaContents  = '2010+brings+us+the+24th+Breitenbush+Herbal+Conference.++The+theme+for+this+year%E2%80%99s+conference%2C+%E2%80%9CThe+History+and+Mystery+of+Herbal+Medicine%E2%80%9D+explores+a+wide+array+of+topics+including%3A+Ancient+Roots+of++Herbal+Medicine%2C+Healing+with+Flower+Essences%2C+California+Curanderismo%2C+A+Pathway+from+Addiction+with+Herbs+and+Supplements%2C+Hydrotherapy%3A+do+magic+at+home%2C+Maya+Abdominal+Massage%2C+Moxa+Magic%2C++traditional+foods+as+medicine%2C+Tree+Medicine+-+Tree+Magic%2C+Facials+Galore%3A+Time+tested+recipes+using+nature%E2%80%99s+bounty%2C+Physical+Assessment+of+the+Herbal+Client%2C+Concurrent+Use+of+Medication+and+Herbs%2C+Maya+Spiritual+Healing%2C+Herbs+That+Are+Red+-+Herbs+of+the+Earth+Chakra+and+Herb+Walks.Workshops%2C+demonstrations%2C+herb+walks+and+merriment%2C+will+appeal+to+all+levels+of+students.++The+healing+waters+and+ancient+forests+of+Breitenbush+provide+an+incredible+setting+for+this+gathering.+Professional+Continuing+Education+Credits+and+Children%E2%80%99s+Program+are+available.+We+look+forward+to+sharing+this+amazing+and+unique+experience+with+you.++In+addition+to+the+main+conference%2C+consider+joining+us+for+one+of+the+2+pre-conference+intensive+workshops+%E2%80%9CCalifornia+Curandismo%E2%80%9D+with+Charles+Garcia+or+Ancient+Roots+-+Future+Visions++of+Medical+Herbalism+%7E+Ancient+History+and+of+Medicinal+Herbalism+and+Its+impact+and++role+in+the+21st+Century+with+Candis+Cantin%2C+or+the+pre-conference+excursion+with+Howie+Brounstein+from+9%3A30+to+3%3A30+on+Friday.++Space+is+limited.++Thursday+night+lodging+at+Breitenbush+and+class+fee+required.Each+year+some+of+the+finest+herbalists+share+their+knowledge%2C+and+wisdom.+The+2010+teachers%3A+Cascade+Anderson+Geller%2C+Rosita+Arvigo%2C+Jane+Bothwell%2C+Howie+Brounstein%2C+Candis+Cantin%2C+Robin+DiPasquale%2C+Charles+Garcia%2C+Jo+Jenner%2C+Scott+Kloos%2C+Seth+McLaughlin%2C+and+Bob+Quinn.Conference+Program+Begins+Friday+at+4%3A30%3B+Ends+Sunday+at+noon+%28Intensive+lodging+begins+Thursday+evening%29+Cost%3A+%24265+plus+lodging+%28Call+for+info+about+early+registration%2C+scholarships+and+work+exchanges%29+Pre-conference+intensive+%24100+plus+lodging.+Late+registration+fees+after+8%2F15%2F10.Information+and+Registration%3A+www.breitenbushherbalconference.com+or+503-288-3588+or+info%40+breitenbushherbalconference.com';
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();
};
