/* [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','17801',jdecode('Career+Coaching'),jdecode(''),'/17801.html','true',[],''],
	['PAGE','16601',jdecode('Career+Clues+Blog'),jdecode(''),'/16601.html','true',[],''],
	['PAGE','19901',jdecode('Webinars'),jdecode(''),'/19901.html','true',[],''],
	['PAGE','25501',jdecode('Workshops'),jdecode(''),'/25501.html','true',[],''],
	['PAGE','1952',jdecode('Events+'),jdecode(''),'/1952.html','true',[],''],
	['PAGE','18975',jdecode('CyberLife+Tutors+News'),jdecode(''),'/18975.html','true',[],''],
	['PAGE','1994',jdecode('Our+Team'),jdecode(''),'/1994.html','true',[],''],
	['PAGE','3001',jdecode('Contact+Us'),jdecode(''),'/3001.html','true',[],''],
	['PAGE','26001',jdecode('Downloads'),jdecode(''),'/26001.html','false',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Mote';
theSitetree.paletteFamily='0450C2';
theSitetree.keyvisualId='11403';
theSitetree.keyvisualName='kv_11403.jpg';
theSitetree.fontsetId='31998';
theSitetree.graphicsetId='13828';
theSitetree.contentColor='565656';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Mote',
				paletteFamily: 	'0450C2',
				keyvisualId: 	'11403',
				keyvisualName: 	'kv_11403.jpg',
				fontsetId: 		'31998',
				graphicsetId: 	'13828',
				contentColor: 	'565656',
				contentBGColor: 'FFFFFF',
				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: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20081014-162500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20090130-082204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20090618-154352'
};
webappMappings['7050']=webappMappings['7050-4808']={
webappId:    '7050',
documentId:  '16601',
internalId:  '4808',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20090417-174734'
};
webappMappings['7008']=webappMappings['7008-5915']={
webappId:    '7008',
documentId:  '3001',
internalId:  '5915',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20090131-144932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20090406-123042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20090131-124811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18975',
internalId:  '',
customField: '20090131-142830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20090309-181436'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2VZ5';
var companyName   = 'Career+Coaching+-+CyberLife+Tutors+';
var htmlTitle	  = 'CyberLife+Tutors+-+Have+the+courage+to+be+better%21';
var metaKeywords  = 'jobs%2C+job%2C+job+search%2C+career%2C+careers%2C+career+advice%2C+networking';
var metaContents  = 'CyberLife+Tutors+Helping+people+enhance+their+careers.CyberLife+Tutors+provides+training+in+the+tools+and+best+practices+required+by+professionals+to+maximize+their+career+potential+in+todays+highly+competitive+global+marketplace.+These+tools+and+techniques+are+designed+to+give+you+an+edge+in+developing+new+business%2C+making+career+changes+and+accessing+the+resources+needed+to+achieve+your+goals.+Our+coursework+is+presented+in+a+manner+that+allows+you+to+immediately+incorporate+what+you+have+learned+into+your+daily+activities.We+are+specialists+in+professional+networking.+The+value+and+reach+of+networking+have+grown+dramatically+as+the+tools+used+in+the+practice+have+evolved+from+a+telephone+and+a+Rolodex+to+interactive+Web+2.0+applications+that+connect+millions+of+users+together+all+over+the+world.+We+can+teach+you+how+to+harness+the+power+of+the+six+degrees+of+separation+to+land+that+new+contract+or+make+your+next+big+career+move.';
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();
};
