// JavaScript Document

pgStr = ["","ML X-ACT","Portfolio Trading","Transitions Management  ","Global Equity Analytics","Soft Dollars and Directed Activity","Finance and Principal Investments","Weather Derivatives","Senior Professionals", "Wave Securities","Merrill Lynch Petrie Divestiture Advisors","US FICC eSales", "FICC", "Portfolio &amp; Algorithmic Trading", ""];
pgUrl = ["","ml_xact","portfolio_trade","transition_ser","global_ea","soft_dollar","finance","weather_derivatives","senior_professionals_ny","","index","index", "ficc","pat", ""]; 


if(sectionName == "decal"){
strGmiHome = '<a href="../../index.asp" class="bcrumb">GMI Home</a>';
}else{
strGmiHome = '<a href="../index.asp" class="bcrumb">GMI Home</a>';
}

if(mainPg > 0){
	if (sectionName=="Global Markets"){
		section = '<a href="index.asp" class="bcrumb">'+sectionName+'</a>';
	} 
	else if(pageName == ""){
		section = '<a href="../globalmarkets/index.asp" class="bcrumb">Global Markets</a> > <span class="pgnm">' + sectionName + '</span>';
	} 
	
	if(sectionName == "Investment Banking"){
		section = '<a href="../../invest_bank/index.asp" class="bcrumb">'+sectionName+'</a> > <a href="'+pgUrl[mainPg]+'.asp" class="bcrumb">' + pgStr[mainPg] + '</a>';//give the path for Investment Banking Section Here
	}
	else {
		section = '<a href="../globalmarkets/index.asp" class="bcrumb">Global Markets</a> > <a href="index.asp" class="bcrumb">'+sectionName+'</a> > <a href="'+pgUrl[mainPg]+'.asp" class="bcrumb">' + pgStr[mainPg] + '</a>';
	}
} 





else {
	if(sectionName == "Investment Banking" && pageName == ""){
		//section = '<a href="../invest_bank/index.asp" class="bcrumb">'+sectionName+'</a>'; //give the path for Investment Banking Section Here
		section = '<span class="pgnm">' + sectionName + '</span>'; //give the path for Investment Banking Section Here
	} 
	else if ((sectionName=="Global Markets" || sectionName == "Private Equity" || sectionName == "Investment Banking" || sectionName == "Factor Model") && pageName != ""){
		section = '<a href="index.asp" class="bcrumb">'+sectionName+'</a>';
	} 
	else if((sectionName=="Global Markets" || sectionName == "Private Equity" || sectionName == "Disclaimer" || sectionName == "Investment Banking" || sectionName == "Factor Model") && pageName == ""){
		section = sectionName;
	}  
	else if((sectionName=="FICC") && pageName == "US FICC eSales"){
		section = '<a href="../globalmarkets/index.asp" class="bcrumb">Global Markets</a> > <a href="../globalmarkets/ficc.asp" class="bcrumb">FICC</a>  ';
	}
	else if(sectionName=="decal"){
		section = '<a href="../../globalmarkets/index.asp" class="bcrumb">Global Markets</a> > <a href="../index.asp" class="bcrumb">Commercial Real Estate</a> > <a href="index.asp" class="bcrumb">Defeasance</a>  ';
	}
	else if(sectionName=="Merrill Open Minds" && pageName == ""){
		section = '<span class="pgnm">' + sectionName + '</span>';
	}
	else if(sectionName=="Merrill Open Minds" && pageName != ""){
		section = '<a href="index.asp" class="bcrumb">Merrill Open Minds</a>';
	}
	else if((sectionName=="US FICC eSales") && pageName != ""){
	section = '<a href="../globalmarkets/index.asp" class="bcrumb">Global Markets</a> > <a href="../globalmarkets/ficc.asp" class="bcrumb">FICC</a> > <a href="index.asp" class="bcrumb">US FICC eSales</a> ';
	}	
	
	
	else if(pageName == ""){
		section = '<a href="../globalmarkets/index.asp" class="bcrumb">Global Markets</a> > <span class="pgnm">' + sectionName + '</span>';
	} 
	else {
		section = '<a href="../globalmarkets/index.asp" class="bcrumb">Global Markets</a> > <a href="index.asp" class="bcrumb">'+sectionName+'</a>';
	}
}



if(pageName == "")
	pgName = pageName;
else
	pgName = ' > ' + pageName;

	
strbcrumb = strGmiHome + ' > <span class="pgnm">' + section +'</span><span class="pgnm">' + pgName + '</span>';
document.write(strbcrumb);
