/* [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','9401',jdecode('Home'),jdecode(''),'/9401.html','true',[],''],
	['PAGE','5022',jdecode('What+is+a+Learning+Strategist%3F'),jdecode(''),'/5022.html','true',[],''],
	['PAGE','5073',jdecode('About+Dan+Tobin'),jdecode(''),'/5073.html','true',[],''],
	['PAGE','5094',jdecode('Consulting+Services'),jdecode(''),'/5094/index.html','true',[ 
		['PAGE','5115',jdecode('Strategic+Planning+for+Learning'),jdecode(''),'/5094/5115.html','true',[],''],
		['PAGE','5136',jdecode('Coaching'),jdecode(''),'/5094/5136.html','true',[],''],
		['PAGE','5157',jdecode('Leadership+Development+Programs'),jdecode(''),'/5094/5157.html','true',[],''],
		['PAGE','5178',jdecode('Evaluation+Strategies'),jdecode(''),'/5094/5178.html','true',[],'']
	],''],
	['PAGE','5199',jdecode('Keynotes+and+Workshops'),jdecode(''),'/5199/index.html','true',[ 
		['PAGE','19401',jdecode('The+Learning+Contract%3A+Tying+Learning+to+Business+Goals'),jdecode(''),'/5199/19401.html','true',[],'']
	],''],
	['PAGE','5220',jdecode('Books+by+Dan+Tobin'),jdecode(''),'/5220/index.html','true',[ 
		['PAGE','21101',jdecode('Endorsements+for+Feeding+Your+Leadership+Pipeline'),jdecode(''),'/5220/21101.html','true',[],'']
	],''],
	['PAGE','5346',jdecode('Articles'),jdecode(''),'/5346/index.html','true',[ 
		['PAGE','20601',jdecode('Getting+Maximum+Value+from+Attending+an+Executive+Education%2FLeadership+Program'),jdecode(''),'/5346/20601.html','true',[],''],
		['PAGE','5367',jdecode('The+Fallacy+of+ROI+Calculations'),jdecode(''),'/5346/5367.html','true',[],''],
		['PAGE','5388',jdecode('Take+Responsibility+for+your+own+Learning'),jdecode(''),'/5346/5388.html','true',[],''],
		['PAGE','5409',jdecode('Using+a+Human+Resources+Advisory+Board+as+a+Strategic+Tool'),jdecode(''),'/5346/5409.html','true',[],''],
		['PAGE','5451',jdecode('Build+Your+Personal+Learning+Network'),jdecode(''),'/5346/5451.html','true',[],''],
		['PAGE','5472',jdecode('Correcting+Functional+Myopia'),jdecode(''),'/5346/5472.html','true',[],''],
		['PAGE','5493',jdecode('Capturing+Your+Next+Conference+--+Getting+Maximum+Value+From+Attending+a+Conference'),jdecode(''),'/5346/5493.html','true',[],''],
		['PAGE','15401',jdecode('From+%22Training%22+to+%22Learning+Facilitation'),jdecode(''),'/5346/15401.html','true',[],'']
	],''],
	['PAGE','5514',jdecode('Dan+Tobin%26%23x27%3Bs+Blog'),jdecode(''),'/5514.html','true',[],''],
	['PAGE','5535',jdecode('Contact'),jdecode(''),'/5535.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Basic';
theSitetree.paletteFamily='36566E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10828';
theSitetree.graphicsetId='11283';
theSitetree.contentColor='36566E';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Basic',
				paletteFamily: 	'36566E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10828',
				graphicsetId: 	'11283',
				contentColor: 	'36566E',
				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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20090215-145600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5073',
internalId:  '',
customField: '20090216-092225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20090215-201500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5514',
internalId:  '',
customField: '20090215-193402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5115',
internalId:  '',
customField: '20090216-092447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5136',
internalId:  '',
customField: '20090215-151110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5157',
internalId:  '',
customField: '20090216-092611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5178',
internalId:  '',
customField: '20090215-151021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5199',
internalId:  '',
customField: '20100407-051551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5220',
internalId:  '',
customField: '20100525-014750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20100407-053205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5535',
internalId:  '',
customField: '20090216-093142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5346',
internalId:  '',
customField: '20090215-193854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5367',
internalId:  '',
customField: '20090215-194516'
};
webappMappings['7050']=webappMappings['7050-32']={
webappId:    '7050',
documentId:  '5514',
internalId:  '32',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5409',
internalId:  '',
customField: '20090215-195409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5388',
internalId:  '',
customField: '20090215-194838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5472',
internalId:  '',
customField: '20090215-200702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5493',
internalId:  '',
customField: '20090215-201303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5451',
internalId:  '',
customField: '20090215-130549'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20090227-105852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20100407-052201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20100414-041256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20100525-014550'
};
var canonHostname = 'localhost';
var accountId     = 'ANFI10INXE2F';
var companyName   = 'Dan+Tobin+-+Corporate+Learning+Strategist';
var htmlTitle	  = '';
var metaKeywords  = 'corporate+learning+organizational+learning+employee+learning+training+development+OD+coaching+mentoring+consultingl+eadership+development+talent+development+management+development+learning+strategist+learning+strategies+program+evaluation+evaluation+of+learning+evaluation+of+training+training+ROI+knowledge+management';
var metaContents  = 'Dan+Tobin+is+a+Corporate+Learning+Strategist%2C+consulting+and+coaching+corporate+training+groups+and+leaders+on+how+to+tie+learning+initiatives+to+company+business+goals+and+strategies.++This+site+describes+Dan+background%2C+the+services+he+offers%2C+his+books%2C+and+potential+workshop+and+speaking+topics.++It+also+includes+several+free+articles+Dan+has+written+and+his+blog%3A+The+Corporate+Learning+Strategist.';
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();
};
