/* [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','28701',jdecode('Home'),jdecode(''),'/28701.html','true',[],''],
	['PAGE','162201',jdecode('Accreditation'),jdecode(''),'/162201.html','true',[],''],
	['PAGE','171401',jdecode('Contact+Us'),jdecode(''),'/171401.html','true',[],''],
	['PAGE','224501',jdecode('FAQ'),jdecode(''),'/224501.html','true',[],''],
	['PAGE','196601',jdecode('Credentials%2Flicensing'),jdecode(''),'/196601/index.html','true',[ 
		['PAGE','196801',jdecode('Agents+of+the+Church'),jdecode(''),'/196601/196801.html','true',[],''],
		['PAGE','196822',jdecode('Agents+of+the+State'),jdecode(''),'/196601/196822.html','true',[],'']
	],''],
	['PAGE','69301',jdecode('Creation+Therapy'),jdecode(''),'/69301.html','true',[],''],
	['PAGE','162243',jdecode('Lay-Counselor'),jdecode(''),'/162243.html','true',[],''],
	['PAGE','162222',jdecode('Programs'),jdecode(''),'/162222/index.html','true',[ 
		['PAGE','162264',jdecode('Program+1'),jdecode(''),'/162222/162264.html','true',[],''],
		['PAGE','162285',jdecode('Program+2'),jdecode(''),'/162222/162285.html','true',[],''],
		['PAGE','162306',jdecode('Program+3'),jdecode(''),'/162222/162306.html','true',[],''],
		['PAGE','162327',jdecode('Program+4'),jdecode(''),'/162222/162327.html','true',[],''],
		['PAGE','188301',jdecode('Program+5'),jdecode(''),'/162222/188301.html','true',[],'']
	],''],
	['PAGE','162622',jdecode('Course+descriptions'),jdecode(''),'/162622.html','true',[],''],
	['PAGE','188401',jdecode('Advanced+Courses'),jdecode(''),'/188401.html','true',[],''],
	['PAGE','162664',jdecode('Arno+Profile'),jdecode(''),'/162664.html','true',[],''],
	['PAGE','211601',jdecode('Enrollment+information'),jdecode(''),'/211601.html','true',[],''],
	['PAGE','200401',jdecode('Tuition'),jdecode(''),'/200401.html','true',[],''],
	['PAGE','182501',jdecode('Student+Area'),jdecode(''),'/182501/index.html','true',[ 
		['PAGE','167401',jdecode('Faculty'),jdecode(''),'/182501/167401.html','true',[],''],
		['PAGE','162643',jdecode('Rev.+Al+Hibbert%2C+Ph.D.'),jdecode(''),'/182501/162643.html','true',[],''],
		['PAGE','167422',jdecode('Iona+Hibbert%2C+M.A.'),jdecode(''),'/182501/167422.html','true',[],''],
		['PAGE','167443',jdecode('Barbara+Stuart%2C+Ph.D.'),jdecode(''),'/182501/167443.html','true',[],''],
		['PAGE','170201',jdecode('Dr.+Helen+Darks'),jdecode(''),'/182501/170201.html','true',[],''],
		['PAGE','183401',jdecode('Graduates'),jdecode(''),'/182501/183401.html','false',[],'']
	],''],
	['PAGE','162685',jdecode('OnLine%2FPhone+Counseling'),jdecode(''),'/162685/index.html','true',[ 
		['PAGE','174201',jdecode('Counseling+Forms'),jdecode(''),'/162685/174201.html','false',[],'']
	],''],
	['PAGE','208001',jdecode('AGAPE+Book+Store'),jdecode(''),'/208001.html','true',[],''],
	['PAGE','221201',jdecode('Newsletter'),jdecode(''),'/221201.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Steps';
theSitetree.paletteFamily='726C60';
theSitetree.keyvisualId='2281';
theSitetree.keyvisualName='studenten.jpg';
theSitetree.fontsetId='367';
theSitetree.graphicsetId='421';
theSitetree.contentColor='D9D7D2';
theSitetree.contentBGColor='726C60';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Steps',
				paletteFamily: 	'726C60',
				keyvisualId: 	'2281',
				keyvisualName: 	'studenten.jpg',
				fontsetId: 		'367',
				graphicsetId: 	'421',
				contentColor: 	'D9D7D2',
				contentBGColor: '726C60',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'726C60',
				b_color: 		'888173',
				c_color: 		'3366CC',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20090609-115146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69301',
internalId:  '',
customField: '20080905-112957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162222',
internalId:  '',
customField: '20080906-135735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162201',
internalId:  '',
customField: '20080905-112914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '171401',
internalId:  '',
customField: '20091001-105000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162243',
internalId:  '',
customField: '20080901-220744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162264',
internalId:  '',
customField: '20080902-114851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162285',
internalId:  '',
customField: '20080902-112428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162306',
internalId:  '',
customField: '20080902-113315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162327',
internalId:  '',
customField: '20080902-113957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196601',
internalId:  '',
customField: '20080904-063327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162622',
internalId:  '',
customField: '20080903-224127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162643',
internalId:  '',
customField: '20080906-105535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162664',
internalId:  '',
customField: '20080826-030944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162685',
internalId:  '',
customField: '20091001-105601'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '28701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167401',
internalId:  '',
customField: '20091001-105335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167422',
internalId:  '',
customField: '20080906-105656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167443',
internalId:  '',
customField: '20080827-125647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170201',
internalId:  '',
customField: '20080825-163456'
};
webappMappings['7008']=webappMappings['7008-7783']={
webappId:    '7008',
documentId:  '171401',
internalId:  '7783',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182501',
internalId:  '',
customField: '20091001-110632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174201',
internalId:  '',
customField: '20080831-010444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183401',
internalId:  '',
customField: '20080830-103522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221201',
internalId:  '',
customField: '20080913-170643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188301',
internalId:  '',
customField: '20080902-114721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188401',
internalId:  '',
customField: '20090316-181958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208001',
internalId:  '',
customField: '20090609-115653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200401',
internalId:  '',
customField: '20080903-104549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196801',
internalId:  '',
customField: '20080904-063053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196822',
internalId:  '',
customField: '20080904-063155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224501',
internalId:  '',
customField: '20090130-132812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211601',
internalId:  '',
customField: '20080907-141415'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INE983';
var companyName   = 'AGAPE+COUNSELOR+TRAINING+INSTITUTE';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
