/* [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(''),'/501.html','true',[],'',''],
	['PAGE','552',jdecode('About'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','45501',jdecode('Experience'),jdecode(''),'/45501/index.html','true',[ 
		['PAGE','45522',jdecode('Drug'),jdecode(''),'/45501/45522.html','false',[],'',''],
		['PAGE','45543',jdecode('Food'),jdecode(''),'/45501/45543.html','false',[],'',''],
		['PAGE','45564',jdecode('Chemicals'),jdecode(''),'/45501/45564.html','false',[],'','']
	],'',''],
	['PAGE','573',jdecode('FAQ'),jdecode(''),'/573.html','true',[],'',''],
	['PAGE','44301',jdecode('Ideal+Client'),jdecode(''),'/44301.html','true',[],'',''],
	['PAGE','594',jdecode('Offerings'),jdecode(''),'/594/index.html','true',[ 
		['PAGE','636',jdecode('Immediate+Impact+Workshops'),jdecode(''),'/594/636.html','true',[],'',''],
		['PAGE','657',jdecode('Strategy+Practice'),jdecode(''),'/594/657.html','true',[],'',''],
		['PAGE','678',jdecode('409A+Valuation+Practice'),jdecode(''),'/594/678.html','true',[],'',''],
		['PAGE','26601',jdecode('Corporate+Development'),jdecode(''),'/594/26601.html','true',[],'','']
	],'',''],
	['PAGE','26622',jdecode('Business+Simulations'),jdecode(''),'/26622.html','true',[],'',''],
	['PAGE','699',jdecode('Contact'),jdecode(''),'/699.html','true',[],'',''],
	['PAGE','38101',jdecode('Ask+Hal'),jdecode(''),'/38101/index.html','true',[ 
		['PAGE','38701',jdecode('Q1'),jdecode(''),'/38101/38701.html','false',[],'',''],
		['PAGE','39301',jdecode('Q2'),jdecode(''),'/38101/39301.html','false',[],'',''],
		['PAGE','39322',jdecode('Q3'),jdecode(''),'/38101/39322.html','false',[],'',''],
		['PAGE','39343',jdecode('Q4'),jdecode(''),'/38101/39343.html','false',[],'',''],
		['PAGE','39364',jdecode('Q5'),jdecode(''),'/38101/39364.html','false',[],'',''],
		['PAGE','39385',jdecode('Q6'),jdecode(''),'/38101/39385.html','false',[],'',''],
		['PAGE','50001',jdecode('Q7'),jdecode(''),'/38101/50001.html','false',[],'',''],
		['PAGE','50022',jdecode('Q8'),jdecode(''),'/38101/50022.html','false',[],'',''],
		['PAGE','54901',jdecode('Q9'),jdecode(''),'/38101/54901.html','false',[],'',''],
		['PAGE','58901',jdecode('Q10'),jdecode(''),'/38101/58901.html','false',[],'',''],
		['PAGE','58922',jdecode('Q11'),jdecode(''),'/38101/58922.html','false',[],'','']
	],'',''],
	['PAGE','720',jdecode('Downloads'),jdecode(''),'/720.html','true',[],'',''],
	['PAGE','26643',jdecode('News+%26+Events'),jdecode(''),'/26643.html','true',[],'',''],
	['PAGE','63301',jdecode('Newsletter+Archive'),jdecode(''),'/63301.html','true',[],'',''],
	['PAGE','741',jdecode('Site+Terms+%26+Conditions'),jdecode(''),'/741.html','true',[],'','']];
var siteelementCount=31;
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 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: '20100111-161202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20100111-161250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26643',
internalId:  '',
customField: '20100623-165022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090708-135801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090905-105036'
};
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: '20090915-130540'
};
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: '20091104-141431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45501',
internalId:  '',
customField: '20090311-083846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45522',
internalId:  '',
customField: '20090311-083820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45543',
internalId:  '',
customField: '20090224-122943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45564',
internalId:  '',
customField: '20091104-141835'
};
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: '20091104-150056'
};
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%2C+Scenario+Planning%2C+Corporate+Development%2C+409A';
var metaKeywords  = 'scenario+planning+strategy+valuation+consultant+consulting+simulation+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.++Our+experience+includes+defining+business%2C+marketing%2C+and+market+entry+strategies%3B+scenario+planning%3B+business+and+manufacturing+turnarounds%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();
};
