/* [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','1401',jdecode('Home'),jdecode(''),'/1401.html','true',[],'',''],
	['PAGE','1473',jdecode('Seminars'),jdecode(''),'/1473.html','true',[],'',''],
	['PAGE','1452',jdecode('Contact'),jdecode(''),'/1452/index.html','true',[ 
		['PAGE','9501',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/1452/9501.html','false',[],'','']
	],'','']];
var siteelementCount=4;
theSitetree.topTemplateName='View';
theSitetree.paletteFamily='FF6000';
theSitetree.keyvisualId='11130';
theSitetree.keyvisualName='kv_11130.jpg';
theSitetree.fontsetId='32028';
theSitetree.graphicsetId='13855';
theSitetree.contentColor='2F2F2F';
theSitetree.contentBGColor='FF6000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'View',
				paletteFamily: 	'FF6000',
				keyvisualId: 	'11130',
				keyvisualName: 	'kv_11130.jpg',
				fontsetId: 		'32028',
				graphicsetId: 	'13855',
				contentColor: 	'2F2F2F',
				contentBGColor: 'FF6000',
				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:  '1473',
internalId:  '',
customField: '20100102-103218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20100102-104623'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-2368']={
webappId:    '7008',
documentId:  '1452',
internalId:  '2368',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1452',
internalId:  '',
customField: '20100102-103311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20060130-180539'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN020IN26YV';
var companyName   = 'DC+CyberCom%3A+Tech+Startup+Counsel';
var htmlTitle	  = 'DC+CyberCom%3A+Management+Consultants+to+High+Tech+Startups';
var metaKeywords  = 'hdd%2C+ssd%2C+disk+drive%2C+data+storage%2C+saas%2C+paas%2C+Marketing%2C+Strategic%2C+Business%2C+Strategy%2C+Software%2C+Consultants%2C+high+tech%2C+technology%2C+Management%2C+traction%2C+Channel%2C+Business+Development%2C+Sales%2C+MA%2C+Acquisitions%2C+market%2C+pricing%2C+promotion%2C+distribution%2C+product+Technology+Start-Up+Ventures%2C+education%2C+hi+tech+startup+course%2C+management+consulting+firm+advising+leading+companies+on+issues+of+strategy%2C+organization%2C+technology%2C+and+operations+the+next+google+microsoft++++McKinsey++Company+Bain+Boston+Consulting+hi+tech+turnarounds+experience%2Cindustry%2C+management%2Cstrategy%2Cexpertise%2C+capability%2C+services%2Cpractice+areas%2Cbusiness+models%2C+tools%2C+expertise%2C+services%2C+knowledge%2C+viewpoints%2C+perspectives%2C+insights++';
var metaContents  = 'consultants+offer+strategic+consulting+focusing+on+PL+improvements+via+Marketing+Strategy%2C+Corporate++Business+Development+for+Software%2C+Internet+and+High+Tech+companies++Change+Management++++Corporate+Strategy++++++++Mission++vision++++++++Portfolio+strategy++++++++Role+of+the+center++++++++Shareholder+value++++++++Strategic+planning++++++++++Cost++Supply+Chain+++++Management++++++++Capital+management++++++++Manufacturing++++++++Purchasing++++++++Service+operations++++++++SGA+management++++++++Supply+chain+management++++++++++Growth+Strategy++++++++Core+growth++++++++Growth+through+adjacencies++++++++Turnaround+strategy+++++IT++++++++IT+full+potential++++++++Business+alignment++++++++Complexity+management++++++++Outsourcing++offshoring++++++++Value+delivery++++++++++Mergers++Acquisitions++++++++Acquisition+screening++++++++Divestitures++++++++JVs+and+alliances++++++++MA+strategy++++++++Merger+integration++++++++Strategic+due+diligence++++++++++++++++Organization++++++++Decision+making++++++++Front+line++++++++High+performance+culture++++++++Leadership++++++++People++++++++++Performance+Improvement++++++++Business+process+redesign++++++++Capability+sourcing++++++++Complexity+reduction++++++++Profit+hunt++++++++++Private+Equity++++++++Due+Diligence++++++++IPO+Preparation++++++++Portfolio+Profit...++++++++++Revenue+Enhancement++++++++Customer+management++++++++Marketing++++++++Pricing++++++++Product+management++++++++Sales%2Fchannel+management+++++++++++++++++++++Corporate+strategy+++Marketing+strategy+++Corporate+development+++Organizational+effectiveness+++';
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();
};
