/* [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','501',jdecode('Home'),jdecode(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','552',jdecode('About'),jdecode(''), jdecode('%2F552.html'), 'true',[],'',''],
	['PAGE','45501',jdecode('Experience'),jdecode(''), jdecode('%2F45501%2Findex.html'), 'true',[ 
		['PAGE','45522',jdecode('Drug'),jdecode(''), jdecode('%2F45501%2F45522.html'), 'false',[],'',''],
		['PAGE','45543',jdecode('Food'),jdecode(''), jdecode('%2F45501%2F45543.html'), 'false',[],'',''],
		['PAGE','45564',jdecode('Chemicals'),jdecode(''), jdecode('%2F45501%2F45564.html'), 'false',[],'','']
	],'',''],
	['PAGE','573',jdecode('FAQ'),jdecode(''), jdecode('%2F573.html'), 'true',[],'',''],
	['PAGE','44301',jdecode('Ideal+Client'),jdecode(''), jdecode('%2F44301.html'), 'true',[],'',''],
	['PAGE','594',jdecode('Offerings'),jdecode(''), jdecode('%2F594%2Findex.html'), 'true',[ 
		['PAGE','636',jdecode('Immediate+Impact+Workshops'),jdecode(''), jdecode('%2F594%2F636.html'), 'true',[],'',''],
		['PAGE','657',jdecode('Strategy+Practice'),jdecode(''), jdecode('%2F594%2F657.html'), 'true',[],'',''],
		['PAGE','678',jdecode('409A+Valuation+Practice'),jdecode(''), jdecode('%2F594%2F678.html'), 'true',[],'',''],
		['PAGE','26601',jdecode('Corporate+Development'),jdecode(''), jdecode('%2F594%2F26601.html'), 'true',[],'','']
	],'',''],
	['PAGE','74334',jdecode('Life+Science+Supply+Chain'),jdecode(''), jdecode('%2F74334.html'), 'true',[],'',''],
	['PAGE','26622',jdecode('Business+Simulations'),jdecode(''), jdecode('%2F26622.html'), 'true',[],'',''],
	['PAGE','699',jdecode('Contact'),jdecode(''), jdecode('%2F699.html'), 'true',[],'',''],
	['PAGE','38101',jdecode('Ask+Hal'),jdecode(''), jdecode('%2F38101%2Findex.html'), 'true',[ 
		['PAGE','38701',jdecode('Q1'),jdecode(''), jdecode('%2F38101%2F38701.html'), 'false',[],'',''],
		['PAGE','39301',jdecode('Q2'),jdecode(''), jdecode('%2F38101%2F39301.html'), 'false',[],'',''],
		['PAGE','39322',jdecode('Q3'),jdecode(''), jdecode('%2F38101%2F39322.html'), 'false',[],'',''],
		['PAGE','39343',jdecode('Q4'),jdecode(''), jdecode('%2F38101%2F39343.html'), 'false',[],'',''],
		['PAGE','39364',jdecode('Q5'),jdecode(''), jdecode('%2F38101%2F39364.html'), 'false',[],'',''],
		['PAGE','39385',jdecode('Q6'),jdecode(''), jdecode('%2F38101%2F39385.html'), 'false',[],'',''],
		['PAGE','50001',jdecode('Q7'),jdecode(''), jdecode('%2F38101%2F50001.html'), 'false',[],'',''],
		['PAGE','50022',jdecode('Q8'),jdecode(''), jdecode('%2F38101%2F50022.html'), 'false',[],'',''],
		['PAGE','54901',jdecode('Q9'),jdecode(''), jdecode('%2F38101%2F54901.html'), 'false',[],'',''],
		['PAGE','58901',jdecode('Q10'),jdecode(''), jdecode('%2F38101%2F58901.html'), 'false',[],'',''],
		['PAGE','58922',jdecode('Q11'),jdecode(''), jdecode('%2F38101%2F58922.html'), 'false',[],'','']
	],'',''],
	['PAGE','720',jdecode('Downloads'),jdecode(''), jdecode('%2F720.html'), 'true',[],'',''],
	['PAGE','26643',jdecode('News+%26+Events'),jdecode(''), jdecode('%2F26643.html'), 'true',[],'',''],
	['PAGE','63301',jdecode('Newsletter+Archive'),jdecode(''), jdecode('%2F63301.html'), 'true',[],'',''],
	['PAGE','741',jdecode('Site+Terms+%26+Conditions'),jdecode(''), jdecode('%2F741.html'), 'true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Layers';
theSitetree.paletteFamily='82B3CD';
theSitetree.keyvisualId='648';
theSitetree.keyvisualName='beratung.jpg';
theSitetree.fontsetId='130';
theSitetree.graphicsetId='148';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E6EAEF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp19-dulles',
  product: 'WSCSYSSSSLYTCPI5'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Layers',
				paletteFamily: 	'82B3CD',
				keyvisualId: 	'648',
				keyvisualName: 	'beratung.jpg',
				fontsetId: 		'130',
				graphicsetId: 	'148',
				contentColor: 	'000000',
				contentBGColor: 'E6EAEF',
				a_color: 		'006699',
				b_color: 		'CCCCCC',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20111021-090430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20120206-103737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26643',
internalId:  '',
customField: '20120206-105730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090708-135801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20100819-104014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20080910-091652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090708-104224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20090708-104553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20090225-124513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20090304-133958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26622',
internalId:  '',
customField: '20090326-101846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20080421-114709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20110831-134621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38101',
internalId:  '',
customField: '20090710-151529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38701',
internalId:  '',
customField: '20090213-113651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39343',
internalId:  '',
customField: '20090213-113518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39385',
internalId:  '',
customField: '20090311-084134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39364',
internalId:  '',
customField: '20090304-134444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39301',
internalId:  '',
customField: '20090225-121918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39322',
internalId:  '',
customField: '20090218-094645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44301',
internalId:  '',
customField: '20100819-124703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45501',
internalId:  '',
customField: '20090311-083846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45522',
internalId:  '',
customField: '20100819-124425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45543',
internalId:  '',
customField: '20100819-124525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45564',
internalId:  '',
customField: '20101116-100417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50001',
internalId:  '',
customField: '20090522-115953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50022',
internalId:  '',
customField: '20090226-114518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20090713-112904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58901',
internalId:  '',
customField: '20090710-142111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58922',
internalId:  '',
customField: '20090713-114624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63301',
internalId:  '',
customField: '20111003-115024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74334',
internalId:  '',
customField: '20110622-140845'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INZNAJ';
var companyName   = 'Trout+Creek+Consulting%2C+LLC';
var htmlTitle	  = 'Trout+Creek+Consulting%3A++Actionable+Strategy%2C+Valuation+%26+Corporate+Development%2C+Life+Science+Supply+Chain%2C+Scenario+Planning';
var metaKeywords  = 'scenario+planning+strategy+valuation+consultant+consulting+simulation+supply+chain+capital+structure+finance+marketing+market+entry+segment+segmentation+portfolio+pipeline+management+strategic+planning+profit+improvement+turnaround+biomaterial+biopharmaceutical+cosmetic+cosmeceutical+energy+fuel+renewable+biofuel+excipient+fine+chemical+food+ingredient+medical+device+nutraceutical+toothpaste+petrochemical+pharmaceutical+specialty+diligence+biosimilar+drug+follow+india+generic+biologic+biotechnology+industrial+hydrocolloid+satiety+nutrition+enzyme+culture+biotic+research+pectin+xanthan+flavor+satiety+nutrition';
var metaContents  = 'Trout+Creek+Consulting+combines+real+world+experience%2C+judgment%2C+and+industry+knowledge+with+sophisticated+strategy+and+valuation+tools+to+help+clients+create+value+through+improved+decision+making+and+effective+execution.++Our+experience+includes+defining+business%2C+marketing%2C+and+market+entry+strategies%3B+scenario+planning%3B+business+and+manufacturing+turnarounds%3B+creating+and+improving+supply+chains%3B+development+portfolio+optimization%3B+due+diligence+with+acquisition+or+joint+venture+valuation%3B+simulating+and+forecasting+markets%2C+products%2C+businesses%2C+and+complex+venture+structures+under+different+scenarios%3B+and+opportunity+identification+and+assessment.++Our+industry+knowledge+includes+the+biomaterial%2C+biopharmaceutical%2C+cosmetic%2Fcosmeceutical%2C+energy+%28traditional%2C+synthetic%2C+renewable%29%2C+fine+chemical%2C+food+ingredient%2C+medical+device%2C+nutraceutical%2C+oral+care%2C+petrochemical%2C+pharmaceutical%2C+and+specialty+chemical+industries.++';
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();
};

