/* [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','3801',jdecode('Dream+Passages'),jdecode(''),'/3801.html','true',[],'',''],
	['PAGE','12622',jdecode('Groups+%26+Workshops'),jdecode(''),'/12622.html','true',[],'',''],
	['PAGE','12664',jdecode('Dream+Tending'),jdecode(''),'/12664.html','true',[],'',''],
	['PAGE','12601',jdecode('Private+Practice'),jdecode(''),'/12601.html','true',[],'',''],
	['PAGE','58815',jdecode('Teachers+and+Venues'),jdecode(''),'/58815.html','true',[],'',''],
	['PAGE','67226',jdecode('On+Being+A+Parent'),jdecode(''),'/67226.html','true',[],'',''],
	['PAGE','65526',jdecode('Lucid+Dreaming'),jdecode(''),'/65526.html','true',[],'',''],
	['PAGE','12727',jdecode('Contact'),jdecode(''),'/12727.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Draft';
theSitetree.paletteFamily='2D50A1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10399';
theSitetree.graphicsetId='10611';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='2D50A1';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Draft',
				paletteFamily: 	'2D50A1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10399',
				graphicsetId: 	'10611',
				contentColor: 	'FFFFFF',
				contentBGColor: '2D50A1',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D09868',
				e_color: 		'9E9E9F',
				f_color: 		'051E56',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3801',
internalId:  '',
customField: '20100515-181236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12622',
internalId:  '',
customField: '20100515-180353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58815',
internalId:  '',
customField: '20100111-192940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12664',
internalId:  '',
customField: '20100515-180637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20100515-180612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12727',
internalId:  '',
customField: '20100515-180450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65526',
internalId:  '',
customField: '20091212-160859'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67226',
internalId:  '',
customField: '20100111-193433'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INLZC1';
var companyName   = 'Dream+Passages';
var htmlTitle	  = 'Robin+Nicolaus+and+DREAM+PASSAGES++individual++language+and+symbolic+nature+of+dream.+Each+image+that+manifests+with-in+a+dream+is+the+perfect+constellation+of+that+individual%E2%80%99s+lifetime+of+collective+memory+and';
var metaKeywords  = 'Toltec%2C+Miguel+Ruiz%2C+Ruiz%2C+Dream+Work%2C+Dreaming%2C+Psychology%2C+In-depth+psychology%2C+Stephen+Aizenstat%2C+Nagual%2C+Teotihuacan%2C+DreamTending%2C+consciousness%2C+Dream+Image%2C+Dream+Symbol%2C+Meditation%2C+Journeys%2C+Jose+Ruiz%2C+Don+Jose+Ruiz%2C+Don+Miguel%2C+Don+Miguel+Ruiz%2C+Mythology%2C+Mark+Bonta%2C+Robin+Nicolaus%2C+Dream+Practices%2C+carlos+castaneda%2C+Jung%2C+Joseph+Campbell%2C+Lucid+Dreaming%2C+Lucid+dream%2C+Dream+Interpretation%2C+Dream+Analysis%2C+Dream+Dictionary%2C+nightmare%2C+nightmares%2C+death%2C+dying%2C+dreams+of+death%2C+fear+of+death%2C+nightmares+of+death%2C+grief%2C+death+and+dying%2C+dreams+of+death%2C+parenting%2C+marriage+counseling%2C+Teo%2C+Womans+dreams%2C+women+dreaming%2C+Life+skills+coach%2C+adolescence%2C+fear%2C+help%2C+help+me%2C+guide%2C+teach%2C+accompany%2C+';
var metaContents  = 'DREAM+PASSAGES+offers+an+individual+the+opportunity+to+learn+the+unique+language+and+symbolic+nature+of+dream.+Each+image+that+manifests+with-in+a+dream+is+the+perfect+constellation+of+that+individual%E2%80%99s+lifetime+of+collective+memory+and+emotion.+Each+dream+image+offers+the+innate+wisdom+needed+to+engage+in+and+master+the+event+of+life.Workshops+and+private+appointments+++';
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();
};

