var domainLN = ""
var re=/http:\/\//i
var re1=/^http:/i
var re2=/^mailto:/i
var re3=/^javascript:/i
var re4=/^https:\/\//
var LNdoc = "" + location;
var LNLoc = ""
if(LNLoc==""){
	if(LNdoc.search(re) != -1 | LNdoc.search(re4) != -1){
		LNdoc = LNdoc.replace(re,"")
		LNdoc = LNdoc.replace(re4,"")
		re = /^[^\/]+\//
		LNdoc = "/"+LNdoc.replace(re,"")
	}
	re=/\?OpenDocument.*/i
	if(LNdoc.search(re) != -1) {
		LNdoc = LNdoc.replace(re, "")
	}
	if (LNdoc.indexOf("#") != -1) {
		LNdoc = LNdoc.substring(0,LNdoc.indexOf("#"))
	}
}else{
	LNdoc = LNLoc
}

var LNtexts=['View: winter 09', 'In this issue', 'Departments', 'My view: Beyond the financial crisis', 'Rear view: Are you managing energy risk?', 'View points', 'International assignees cope with the devalued dollar', 'Retiring comfortably—the baby boomers&#39; dilemma', 'Businesses address climate change', 'Magazines go mobile', 'Investing in distressed opportunities', 'Finding no exits', 'Features', 'Fueling future growth', 'Strong medicine required', 'Transformers', 'Getting a handle on political risk', 'Download/order', 'Contact us', 'Previous issue', 'Subscribe to View', 'Express your view']
var LNURLs=['/extweb/home.nsf/docid/91EC3F082E8B3187852575130062DA73', '/extweb/home.nsf/docid/8238BEA05F0247548525751300631821', '/extweb/home.nsf/docid/ECD6DFADA83797258525751300698F36', '/extweb/home.nsf/docid/9B04D03E6FC119CC852575130069EF15', '/extweb/home.nsf/docid/2480895696FCBBA2852575130069F8B5', '/extweb/home.nsf/docid/B9597EABCB639035852575130069FD89', '/extweb/home.nsf/docid/EA35DA842FF1484B85257513006A024B', '/extweb/home.nsf/docid/7FEDC63136BCE91985257513006A0B1C', '/extweb/home.nsf/docid/594BA1DB377B7FD385257513006A0BF6', '/extweb/home.nsf/docid/9D59505E6088D52085257513006A0CC9', '/extweb/home.nsf/docid/854A7BB956DFB64F85257513006A0D9C', '/extweb/home.nsf/docid/4B58D3A22C773AF685257513006A19AC', '/extweb/home.nsf/docid/3283214C8A80114685257513006A1A80', '/extweb/home.nsf/docid/EC716BE3F962005B85257513006A1B53', '/extweb/home.nsf/docid/40ECD2053439DEB085257513006A1C26', '/extweb/home.nsf/docid/66757274C0A1B0CE85257513006A258B', '/extweb/home.nsf/docid/26DE1F43F352C62485257513006A265E', '/extweb/onlineforms.nsf/weblookup/USENGALLSViewDownloadVol.9', '/extweb/onlineforms.nsf/weblookup/USENGALLSview:contactus', '/extweb/pwcpublications.nsf/docid/25B511138D7834C8852570F200168FD1', '/extweb/home.nsf/docid/8490D9B240855ACD8525751500493660', '/extweb/onlineforms.nsf/weblookup/USENGINFSExpressyourview2']
var LNtargets=['_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self', '_self']
var LNlinkLevels=['0', '0', '0', '1', '1', '0', '1', '1', '1', '1', '1', '1', '0', '1', '1', '1', '1', '0', '0', '0', '0', '0']

var LNS1="<IMG SRC='/images/ui/tran.gif' WIDTH='10' HEIGHT='1' BORDER='0' ALT=''>"
var LNS2="<IMG SRC='/images/ui/tran.gif' WIDTH='1' HEIGHT='3' BORDER='0' ALT=''>"
var LNsel=''
var LNsel2=''
var LNwin=''


function buildLHNav(){
	lhnavMenu();
}

function newLevel( LNText, LNURL, LNtarget, LNHighlighted, stepLevel ){
	var LN = "";
	var LNWin = "";
	var listStart = "";
	var endListItem = "";
	var newList = "";
	var endList = "";
	var LNURL_lc = LNURL;
	LNURL_lc = LNURL_lc.toLowerCase()
	if (LNHighlighted == 1){
		listStart="<li class='Selected'><div class='LHNEntry'>";
	} else {
		listStart="<li><div class='LHNEntry'>";
	}
	if (LNtarget != ""){
		LNwin = " target='" + LNtarget + "'";
	} else {
		LNwin = "";
	}

	if (stepLevel == 0) {
		//Same level
		endListItem = "</li>";
		newList = "";
		endList = "";
	} else if (stepLevel == 1) {
		//Down a level
		endListItem = "";
		newList = "<ul>";
		endList = "";
	} else if (stepLevel == -1) {
		//Up a level
		endListItem = "</li>";
		newList = "";
		endList = "</ul></li>";
	} else { // it's -2
		//UP 2 levels
		endListItem = "</li>";
		newList = "";
		endList = "</ul></li></ul></li>";
 	}
	LN += endList + listStart;

	if(LNURL_lc != "-" && LNURL_lc!=""){
		if((LNURL_lc.indexOf(re1) != 0) & !(LNURL_lc.indexOf(re2) != 0) & (LNURL_lc.indexOf(re3) != 0) & (LNURL_lc.indexOf(re4) != 0)) {
			LNURL = domainLN + LNURL;
		}
		LN+="<a href='" + link( LNURL ) + "'" + LNwin + " title='" + LNText + "'>";
	}

	LN += LNText;
	if(LNURL_lc != "-" && LNURL_lc!=""){
		LN+="</a>";
	}

	LN += "</div>" + endListItem + newList;
	
	return (LN);

}

function lhnavMenu(){
	var LNout=''
	var subLevNo
	var subSubNo
	var mainNo= -1
	var LNsuccess=0
	var main=new Array()
	var subLev = new Array()
	var subSub = new Array()
	var p = 0;
	var shns=1
	var lastLevel=1;
	if (LNdoc){
		var LC=LNdoc.toLowerCase()
		for (i=0; i<LNURLs.length; i++){
			if (LNlinkLevels[i]==0){
				mainNo++
				main[mainNo]=i
				var subLev = new Array();
				subLevNo = -1;
				var subSub = new Array();
				subSubNo = -1;
			}else if (LNlinkLevels[i]==1){
				var subSub = new Array();
				subSubNo = -1;
				subLevNo++;
				subLev[subLevNo]=i;
			}else if (LNlinkLevels[i]==2){
				subSubNo++;
				subSub[subSubNo]=i;
			}
			LNtemp = LNURLs[i]
			if (LNtemp.indexOf("#") != -1){
				LNtemp = LNtemp.substring(0,LNtemp.indexOf("#"))
			}
			if(LNtemp.toLowerCase()==LC){
				LNsuccess=1;
				i++;
				//Write all level 0 entries not selected
				for (j=0; j<mainNo; j++){
					p = main[j];
					LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 0, 0)
				}
				//if we're still on level 0, then write a selected level 0 entry
				if (subLevNo == -1) {
					p = main[ mainNo ];
					//We have to know BEFORE we write the current link whether the next link will need a new level, hence the IFs
					if ( i < LNURLs.length ){
						if ( parseInt( LNlinkLevels[ i ] ) > parseInt( LNlinkLevels[ i - 1 ] )){
							LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 1, 1);
						} else {
							LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 1, 0);
						}
					} else {
						LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 1, 0);
					}
				} else {
					p = main[ mainNo ];
					LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 0, 1)
					//this one starts a new level
				}
				for (j=0; j < subLevNo; j++){
					lastLevel = 1;
					p = subLev[ j ];
					LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 0, 0)
				}
				if ( subLevNo > -1 && subSubNo == -1) { // we hightlight this item (& no level 2 items shown)
					lastLevel = 1;
					p = subLev[subLevNo];
					//We have to know BEFORE we write the current link whether the next link will need a new level, hence the IFs
					if ( i < LNURLs.length ){
						if ( parseInt( LNlinkLevels[ i ] ) > parseInt( LNlinkLevels[ i - 1 ] )){
							LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 1, 1)
						} else {
							LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 1, 0)
						} 
					} else {
						LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 1, 0)
					}

				} else if (subLevNo > -1){
					lastLevel = 1;
					p = subLev[subLevNo];
					LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 0, 1)
					//this one starts a new level
				}
				for (j=0; j < subSubNo; j++){
					lastLevel = 2;
					p = subSub[j];
					LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 0, 0)
				}
				if (subSubNo > -1) {
					lastLevel = 2;
					p = subSub[subSubNo];
					LNout += newLevel(LNtexts[ p ], LNURLs[ p ], LNtargets[ p ], 1, 0)
				}
				var foundAt = i;
				while (i < LNURLs.length) { //write the rest
					thisLevel = parseInt( LNlinkLevels[ i ] );
					if (i == foundAt) {
						lastLevel = thisLevel
						if ( ( parseInt( LNlinkLevels[ i-1 ] ) - thisLevel ) > 1){
							LNout += newLevel(LNtexts[ i ], LNURLs[ i ], LNtargets[ i ], 0, -2);
						} else if (thisLevel < parseInt( LNlinkLevels[ i-1 ] )){
							LNout += newLevel(LNtexts[ i ], LNURLs[ i ], LNtargets[ i ], 0, -1);
						}else {
							LNout += newLevel(LNtexts[ i ], LNURLs[ i ], LNtargets[ i ], 0, 0);
						}
					} else {
						if ( (lastLevel - thisLevel) > 1 ) {
							LNout += newLevel(LNtexts[ i ], LNURLs[ i ], LNtargets[ i ], 0, -2);
							lastLevel = thisLevel;
						} else if (thisLevel < lastLevel) {
							LNout += newLevel(LNtexts[ i ], LNURLs[ i ], LNtargets[ i ], 0, -1);
							lastLevel = thisLevel;
						} else if (thisLevel == lastLevel){
							LNout += newLevel(LNtexts[ i ], LNURLs[ i ], LNtargets[ i ], 0, 0);
							lastLevel = thisLevel;
						}
					}
					i++;
				}
		
			}
		}
	}
	if (!LNsuccess){
		for (i=0; i < LNURLs.length; i++){
			if ( LNlinkLevels[ i ]=="0" ){
				LNout += newLevel(LNtexts[ i ], LNURLs[ i ], LNtargets[ i ], 0, 0);
			}
		}
	}
	document.writeln("<div class='LHN'>");
	document.writeln("<ul>");
	document.writeln(LNout);
	document.writeln("</ul>");
	document.writeln("</div>");
	wrs_trackpage("DCSext.WT.si_n=Full PDF Download with Registration","DCSext.WT.si_x=1");
}

