/* [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','9701',jdecode('Home'),jdecode(''),'/9701.html','true',[],'',''],
	['PAGE','18501',jdecode('About+us'),jdecode(''),'/18501/index.html','true',[ 
		['PAGE','18522',jdecode('About+Bob+Stahl'),jdecode(''),'/18501/18522.html','true',[],'',''],
		['PAGE','18543',jdecode('About+Tom+Wallace'),jdecode(''),'/18501/18543.html','true',[],'','']
	],'',''],
	['PAGE','10101',jdecode('S%26OP+101'),jdecode(''),'/10101.html','true',[],'',''],
	['PAGE','46937',jdecode('Implementation+%26+Support'),jdecode(''),'/46937/index.html','true',[ 
		['PAGE','46958',jdecode('Implementation+Process'),jdecode(''),'/46937/46958.html','true',[],'',''],
		['PAGE','46979',jdecode('What+is+an+S%26OP+Expert%3F'),jdecode(''),'/46937/46979.html','true',[],'',''],
		['PAGE','47000',jdecode('How+to+Get+Started'),jdecode(''),'/46937/47000.html','true',[],'',''],
		['PAGE','47021',jdecode('Ongoing+Support'),jdecode(''),'/46937/47021.html','true',[],'','']
	],'',''],
	['PAGE','75648',jdecode('FAQ'),jdecode(''),'/75648.html','true',[],'',''],
	['PAGE','16001',jdecode('Free+Wisdom'),jdecode(''),'/16001/index.html','true',[ 
		['PAGE','16022',jdecode('Bullets+from+Bob'),jdecode(''),'/16001/16022.html','true',[],'',''],
		['PAGE','83548',jdecode('Sharper+Stick+Syndrome'),jdecode(''),'/16001/83548.html','false',[],'',''],
		['PAGE','80748',jdecode('Demand+Planning%3A+A+Three-Legged+Stool'),jdecode(''),'/16001/80748.html','false',[],'',''],
		['PAGE','79448',jdecode('Comparing+Market+%26+Customer+Views'),jdecode(''),'/16001/79448.html','false',[],'',''],
		['PAGE','77148',jdecode('Fixing+Imbalances'),jdecode(''),'/16001/77148.html','false',[],'',''],
		['PAGE','68048',jdecode('Executive+S%26OP%E2%80%99s+Soft+Benefits+enable+the+Hard+Benefits'),jdecode(''),'/16001/68048.html','false',[],'',''],
		['PAGE','54237',jdecode('Getting+Sales+%26+Marketing+on+Board+'),jdecode(''),'/16001/54237.html','false',[],'',''],
		['PAGE','54837',jdecode('With+a+Little+Bit+of+Help+.+.+.Surviving+a+Recession'),jdecode(''),'/16001/54837.html','false',[],'',''],
		['PAGE','55537',jdecode('Using+Executive+S%26OP+to+Manage'),jdecode(''),'/16001/55537.html','false',[],'',''],
		['PAGE','55837',jdecode('S%26OP%E2%80%99s+Role+in+Strategic+Planning'),jdecode(''),'/16001/55837.html','false',[],'',''],
		['PAGE','56237',jdecode('Overcoming+the+Perception+of+Precision+-+Parts+1+%26+2'),jdecode(''),'/16001/56237.html','false',[],'',''],
		['PAGE','56537',jdecode('Parallel+Paths%3A+Beware+of+a+Too+Full+Plate'),jdecode(''),'/16001/56537.html','false',[],'',''],
		['PAGE','56837',jdecode('Fingerprints+-+A+Key+to+Success'),jdecode(''),'/16001/56837.html','false',[],'',''],
		['PAGE','57137',jdecode('Your+Customers+%E2%80%93+Your+Biggest+Ally'),jdecode(''),'/16001/57137.html','false',[],'',''],
		['PAGE','57537',jdecode('Executive+S%26OP+%E2%80%93+Getting+Started+Right'),jdecode(''),'/16001/57537.html','false',[],'',''],
		['PAGE','57837',jdecode('When+Is+Learning+Not+Learning%3F'),jdecode(''),'/16001/57837.html','false',[],'',''],
		['PAGE','58137',jdecode('Making+Change+is+more+than+New+Tools'),jdecode(''),'/16001/58137.html','false',[],'',''],
		['PAGE','58437',jdecode('Simpler+%26+Better+%E2%80%93+A+Powerful+Combination'),jdecode(''),'/16001/58437.html','false',[],'',''],
		['PAGE','58737',jdecode('Mitigating+Risk+%26+Uncertainty'),jdecode(''),'/16001/58737.html','false',[],'',''],
		['PAGE','59137',jdecode('With+Change+comes+Discomfort+%26+Risk'),jdecode(''),'/16001/59137.html','false',[],'',''],
		['PAGE','59437',jdecode('Muting+Trade-Offs+with+Executive+S%26OP'),jdecode(''),'/16001/59437.html','false',[],'',''],
		['PAGE','59837',jdecode('Becoming+Demand+Driven'),jdecode(''),'/16001/59837.html','false',[],'',''],
		['PAGE','60137',jdecode('Lean+%26+Executive+S%26OP'),jdecode(''),'/16001/60137.html','false',[],'',''],
		['PAGE','61037',jdecode('Replacing+the+Unknown+with+the+Known'),jdecode(''),'/16001/61037.html','false',[],'',''],
		['PAGE','61337',jdecode('Improving+Forecasts+with+Lean+Initiatives'),jdecode(''),'/16001/61337.html','false',[],'',''],
		['PAGE','16043',jdecode('Other+Free+Downloads'),jdecode(''),'/16001/16043.html','true',[],'','']
	],'',''],
	['PAGE','10122',jdecode('Books+to+Order'),jdecode(''),'/10122/index.html','true',[ 
		['PAGE','43737',jdecode('How-To+Previews'),jdecode(''),'/10122/43737.html','false',[],'',''],
		['PAGE','44337',jdecode('Self-Audit+Handbook+Previews'),jdecode(''),'/10122/44337.html','false',[],'',''],
		['PAGE','44937',jdecode('Sales+Forecasting+Previews'),jdecode(''),'/10122/44937.html','false',[],'',''],
		['PAGE','45737',jdecode('Master+Scheduling+Previews'),jdecode(''),'/10122/45737.html','false',[],'',''],
		['PAGE','46237',jdecode('Customer+Demand+Previews'),jdecode(''),'/10122/46237.html','false',[],'','']
	],'',''],
	['PAGE','9822',jdecode('Contact'),jdecode(''),'/9822.html','true',[],'',''],
	['PAGE','81648',jdecode('Counter+Page'),jdecode(''),'/81648.html','false',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				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:  '9701',
internalId:  '',
customField: '20091114-164906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20091029-115016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20090930-202955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9822',
internalId:  '',
customField: '20091031-195155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20100101-190745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10122',
internalId:  '',
customField: '20091115-151727'
};
webappMappings['7008']=webappMappings['7008-19486']={
webappId:    '7008',
documentId:  '9822',
internalId:  '19486',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16022',
internalId:  '',
customField: '20100701-192948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16043',
internalId:  '',
customField: '20100701-192713'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18522',
internalId:  '',
customField: '20100101-190518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18543',
internalId:  '',
customField: '20100118-183009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81648',
internalId:  '',
customField: '20100515-201519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54237',
internalId:  '',
customField: '20091029-115711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75648',
internalId:  '',
customField: '20100306-182258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77148',
internalId:  '',
customField: '20100118-184908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79448',
internalId:  '',
customField: '20100306-232642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43737',
internalId:  '',
customField: '20090920-190316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44337',
internalId:  '',
customField: '20090920-190412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44937',
internalId:  '',
customField: '20090920-190447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80748',
internalId:  '',
customField: '20100515-195039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45737',
internalId:  '',
customField: '20090920-190749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46237',
internalId:  '',
customField: '20090920-190828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46937',
internalId:  '',
customField: '20091031-194149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46958',
internalId:  '',
customField: '20100811-122954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46979',
internalId:  '',
customField: '20091012-165924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47000',
internalId:  '',
customField: '20100218-105013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47021',
internalId:  '',
customField: '20090930-204051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68048',
internalId:  '',
customField: '20091101-173018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54837',
internalId:  '',
customField: '20091031-194353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55537',
internalId:  '',
customField: '20091031-194432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55837',
internalId:  '',
customField: '20091101-172630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56237',
internalId:  '',
customField: '20091029-122051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56537',
internalId:  '',
customField: '20091029-173403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56837',
internalId:  '',
customField: '20091029-174208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57137',
internalId:  '',
customField: '20091031-194549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57537',
internalId:  '',
customField: '20091031-192651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57837',
internalId:  '',
customField: '20091012-183657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58137',
internalId:  '',
customField: '20091030-141254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58437',
internalId:  '',
customField: '20091012-184203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58737',
internalId:  '',
customField: '20091030-141556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59137',
internalId:  '',
customField: '20091031-194812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59437',
internalId:  '',
customField: '20091012-185222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59837',
internalId:  '',
customField: '20091031-194833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60137',
internalId:  '',
customField: '20091031-193514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61037',
internalId:  '',
customField: '20091012-193255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61337',
internalId:  '',
customField: '20091031-193514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83548',
internalId:  '',
customField: '20100701-193233'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN3P0M';
var companyName   = 'R.A.+Stahl+Company';
var htmlTitle	  = '';
var metaKeywords  = 'R.A.+Stahl%3B+Bob+Stahl%3B+Robert+Stahl%3B+Robert+A.+Stahl%3B+Stahl%3B+R.A.+Stahl+Company%3B+RA+Stahl+Company%3B+Executive+SOP%3B+Sales++Operations+Planning%3B+Executive+Sales+Operations+Planning%3B+Sales+and+Operations+Planning%3B+Executive+Sales+and+Operations+Planning%3B+Supply+Chain+Management%3B+Supply+Chain+Partnerships%3B+Balancing+demand+and+supply%3B+SOP+Consulting%3B+SOP+Expert%3B+Sales++Operations+Planning+Consulting%3B+Sales++Operations+Planning+Expert%3B+Sales+and+Operations+Planning+Consulting%3B+Sales+and+Operations+Planning+Expert%3B+Volume+planning';
var metaContents  = 'R.A.+Stahl+Company%3B+Bob+Stahl+of+the+R.A.+Stahl+Company+serves+industry+with+the+implementation+of+Executive+SOP+through+teaching%2C+coaching%2C+and+guidance%2C+both+on+site+and+virtually.+Through+his+six+books+written+with+Tom+Wallace%2C+he+is+known+as+the+thought+leader+in+this+implementation+methodology+of+low+cost%2C+low+risk%2C+high+impact%2C+and+quick+results.';
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();
};
