/* [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','1101',jdecode('About+Navigator'),jdecode(''),'/1101.html','true',[],'',''],
	['PAGE','65901',jdecode('Mission+%26+Values'),jdecode(''),'/65901.html','true',[],'',''],
	['PAGE','9801',jdecode('Expertise+%26+Clients'),jdecode(''),'/9801.html','true',[],'',''],
	['PAGE','11101',jdecode('Eight+Weeks+to+Excellence'),jdecode(''),'/11101.html','false',[],'',''],
	['PAGE','1320',jdecode('Events+Calendar'),jdecode(''),'/1320.html','true',[],'',''],
	['PAGE','46101',jdecode('Downloads'),jdecode(''),'/46101.html','true',[],'',''],
	['PAGE','1152',jdecode('Our+START+Methodology'),jdecode(''),'/1152.html','true',[],'',''],
	['PAGE','27101',jdecode('Strategic+Partners'),jdecode(''),'/27101.html','true',[],'',''],
	['PAGE','13901',jdecode('Locations'),jdecode(''),'/13901.html','true',[],'',''],
	['PAGE','1341',jdecode('Contact'),jdecode(''),'/1341/index.html','true',[ 
		['PAGE','8401',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/1341/8401.html','false',[],'','']
	],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='Bombay';
theSitetree.paletteFamily='395987';
theSitetree.keyvisualId='7537';
theSitetree.keyvisualName='kv_7537.jpg';
theSitetree.fontsetId='16582';
theSitetree.graphicsetId='12202';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='C0B89D';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bombay',
				paletteFamily: 	'395987',
				keyvisualId: 	'7537',
				keyvisualName: 	'kv_7537.jpg',
				fontsetId: 		'16582',
				graphicsetId: 	'12202',
				contentColor: 	'000000',
				contentBGColor: 'C0B89D',
				a_color: 		'395987',
				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:  '1101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20090516-072717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1101',
internalId:  '',
customField: '20100210-075525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1341',
internalId:  '',
customField: '20090222-083749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1320',
internalId:  '',
customField: '20100429-085650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20100429-080655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1152',
internalId:  '',
customField: '20090416-051007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20090806-063553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20090806-063346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20080622-140818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20090204-100500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65901',
internalId:  '',
customField: '20100501-102541'
};
webappMappings['7008']=webappMappings['7008-574']={
webappId:    '7008',
documentId:  '1341',
internalId:  '574',
customField: 'language:en;country:US;'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INLIK6';
var companyName   = 'Navigator+Consulting+Services';
var htmlTitle	  = 'Navigator+Consulting+Services';
var metaKeywords  = 'Strategy%2C+Activity+Based+Costing%2C+Balanced+Scorecard%2C+Six+Sigma%2C+Business+Process+Reengineering%2C+Change+Management%2C+Change%2C+START+Methodology%2C+startmethodology%2C+startmethodology.com%2C+George+Henderson%2C+Technology%2C+Transforming+Leadership%2C+Project+Management%2C+Performance+Management%2C+Analytics%2C+Business+Intelligence%2C+SAS%2C+i-nexus%2C+Executive+Coaching%2C+Executive+Mandate%2C+Navigatorteam%2C+Navigator+team%2C+startcrm%2C+Shared+Service%2C+Financial+Services%2C+Insurance%2C+Claims+Administration%2C+Retail%2C+Manufacturing%2C+Ahold%2C+Stop++Shop%2C+Giant%2C+Giant+Carlisle%2C+Giant+Landover%2C+SUSTA%2C+Pan+American+Life%2C+Nincompoop%2C+IT%2C+Self-funding+IT+Initiative%2C+Pain+Point%2C+Profit%2C+Profitability%2C+Profitability+Management%2C+Structure%2C+Execution%2C+Endurance%2C+Navigator%2C+Navigator+Consulting%2C+Navigator+Consulting+Services%2C+Navigator+Group%2C+Navigator+Consulting+Group%2C+Consulting%2C+leadership%2C+navigatorteam%2C+navigatorteam.com';
var metaContents  = 'Navigator+Consulting+Services+helps+companies+resolve+immediate+pain+points+in+a+self-funding+way+while+developing+the+organizational+discipline+for+continuous+improvement.++www.NavigatorTeam.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();
};
