
// assumes that c:\inetpub\wwwroot\montego\jscript\leftmenu.js has been included

function my_trim( key1 )
{
	var key = key1;
	while ( key.length && key.charAt( key.length - 1 ) == " "  ) key = key.slice(0, -1);
	while ( key.length && key.charAt( 0 ) == " " ) key = key.substring( 1 ) ;		
	
	return key;
}

function BusinessArticles ( foldersTree, nestdir, folderdir )
{
var path_f      = nestdir   || "";
var folderdir_f = folderdir	|| "Educate/";
var aux1;

path_f      = my_trim( path_f );
folderdir_f = my_trim( folderdir_f );

aux1=insFld(foldersTree,gFld("Business Articles"),"");
insDoc(aux1,gLnk(0,"Credit Derivatives",				path_f + folderdir_f + "Derivatives.htm"));
insDoc(aux1,gLnk(0,"Glossary",							path_f + folderdir_f + "Glossary.htm"));
insDoc(aux1,gLnk(0,"Option Terms",						path_f + folderdir_f + "OptionTerms.htm"));
insDoc(aux1,gLnk(0,"CS Complex Swaps",                  path_f + folderdir_f + "ComplexSwaps0.htm"));
insDoc(aux1,gLnk(0,"CS Compound Options",               path_f + folderdir_f + "ComplexSwaps1.htm"));
insDoc(aux1,gLnk(0,"CS Contingent Premium Options",     path_f + folderdir_f + "ComplexSwaps2.htm"));
insDoc(aux1,gLnk(0,"CS Credit Derivatives",             path_f + folderdir_f + "ComplexSwaps3.htm"));
insDoc(aux1,gLnk(0,"CS Derivative-linked securities",   path_f + folderdir_f + "ComplexSwaps4.htm"));
insDoc(aux1,gLnk(0,"CS Digital options",                path_f + folderdir_f + "ComplexSwaps5.htm"));
insDoc(aux1,gLnk(0,"CS Forwards",                       path_f + folderdir_f + "ComplexSwaps6.htm"));
insDoc(aux1,gLnk(0,"CS Multi-factor options",           path_f + folderdir_f + "ComplexSwaps7.htm"));
insDoc(aux1,gLnk(0,"CS Vanilla Options",                path_f + folderdir_f + "ComplexSwaps8.htm"));
insDoc(aux1,gLnk(0,"CS Vanilla swaps",                  path_f + folderdir_f + "ComplexSwaps9.htm"));
insDoc(aux1,gLnk(0,"FX Forwards",						path_f + folderdir_f + "fxforward.htm"));
insDoc(aux1,gLnk(0,"Quick Java",						path_f + folderdir_f + "javabluff.htm"));
insDoc(aux1,gLnk(0,"EJB Tutor",							path_f + folderdir_f + "ejb_tutor.htm"));
}