/* [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 theSitetree=[ 
	['PAGE','601',jdecode('Home'),jdecode(''),'/601.html','true',[],''],
	['PAGE','736',jdecode('About+The+Author'),jdecode(''),'/736.html','true',[],''],
	['PAGE','652',jdecode('Table+Of+Contents'),jdecode(''),'/652.html','true',[],''],
	['PAGE','47630',jdecode('Book+Excerpts'),jdecode(''),'/47630.html','true',[],''],
	['PAGE','48779',jdecode('What+Readers+Are+Saying'),jdecode(''),'/48779.html','true',[],''],
	['PAGE','9843',jdecode('Request+%22Free%22+Templates'),jdecode(''),'/9843.html','true',[],''],
	['PAGE','18201',jdecode('Download+%22Free%22+Cases'),jdecode(''),'/18201/index.html','true',[ 
		['PAGE','18222',jdecode('An+Extreme+Counter-Offer'),jdecode(''),'/18201/18222.html','true',[],'']
	],''],
	['PAGE','24701',jdecode('Rob%26%23x27%3Bs+Blog'),jdecode(''),'/24701.html','false',[],''],
	['PAGE','12701',jdecode('Volare+Case+Study'),jdecode(''),'/12701/index.html','false',[ 
		['PAGE','5401',jdecode('Download+Rob%26%23x27%3Bs'),jdecode(''),'/12701/5401.html','true',[],''],
		['PAGE','10701',jdecode('Post+Your+Thoughts'),jdecode(''),'/12701/10701.html','true',[],'']
	],''],
	['PAGE','9864',jdecode('Feedback+%26+Inquiries'),jdecode(''),'/9864/index.html','true',[ 
		['PAGE','11501',jdecode('Your+Feedback+%28follow+up+page%29'),jdecode(''),'/9864/11501.html','false',[],'']
	],''],
	['PAGE','48478',jdecode('Media+Room'),jdecode(''),'/48478.html','true',[],''],
	['PAGE','40701',jdecode('Speaking+Requests'),jdecode(''),'/40701.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='943434';
theSitetree.keyvisualId='7245';
theSitetree.keyvisualName='kv_7245.jpg';
theSitetree.fontsetId='16410';
theSitetree.graphicsetId='12137';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Capri',
				paletteFamily: 	'943434',
				keyvisualId: 	'7245',
				keyvisualName: 	'kv_7245.jpg',
				fontsetId: 		'16410',
				graphicsetId: 	'12137',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1001']=webappMappings['1001-ahw050inx3x07d34f6d1640308a0']={
webappId:    '1001',
documentId:  '9864',
internalId:  'ahw050inx3x07d34f6d1640308a0',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inx3x07d34f6d1640308a0']={
webappId:    '1001',
documentId:  '11501',
internalId:  'ahw050inx3x07d34f6d1640308a0',
customField: 'followUp'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090122-101452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24701',
internalId:  '',
customField: '20080227-194732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20080705-122633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20080705-122354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47630',
internalId:  '',
customField: '20080717-091957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9843',
internalId:  '',
customField: '20080714-160744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20080203-212512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18222',
internalId:  '',
customField: '20080204-170736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20080120-011950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20080119-232359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20080120-012012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9864',
internalId:  '',
customField: '20080705-123500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20080120-002315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40701',
internalId:  '',
customField: '20081206-124408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48478',
internalId:  '',
customField: '20090122-101345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48779',
internalId:  '',
customField: '20081206-130855'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INX3X0';
var companyName   = 'Street+Smarts+For+Global+Business';
var htmlTitle	  = 'Street+Smarts+For+Global+Business';
var metaKeywords  = 'global+business%2C+international+business%2C+business+templates%2C+templates+for+business%2C+negotiations%2C++business+etiquette%2C+global+communications%2C+global+marketing%2C+Street+Smarts';
var metaContents  = 'Street+Smarts+for+Global+Business%3A+A+Practical+Guidebook+for+Global+Business+Executives+provides+a+unique+perspective+into+global+business+through+a+seasoned+executive%E2%80%99s+vast+experience+and+wisdom+in+winning+global+business+transactions.+Executives+and+students+are+enriched+with+authentic+behind-the-scenes+business+situations%2C+case+studies%2C+and+practical+templates+for+education%2C+strategic+planning%2C+and+implementation.';
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();
};
