
// 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 Leading ( foldersTree, nestdir, folderdir )
{
var path_f      = nestdir   || "";	  
var folderdir_f = folderdir	|| "Leading/";
var aux1;

path_f      = my_trim( path_f );
folderdir_f = my_trim( folderdir_f );

aux1=insFld(foldersTree,gFld("Product Leading Resources"),"");
insDoc(aux1,gLnk(0,"Project Management",    			   path_f + folderdir_f + "waterfall.htm"      ));
insDoc(aux1,gLnk(0,"Project Logs",    					   path_f + folderdir_f + "project.htm"        ));
insDoc(aux1,gLnk(0,"Project Leader Job Title",             path_f + folderdir_f + "jobtitle.htm"       ));
insDoc(aux1,gLnk(0,"Organisational Faults",			       path_f + folderdir_f + "faults.htm"         ));
insDoc(aux1,gLnk(0,"Designing The Organisation Structure", path_f + folderdir_f + "reorganisation.htm" ));
insDoc(aux1,gLnk(0,"How To Plan, Organise and Control",	   path_f + folderdir_f + "planning.htm"       ));
insDoc(aux1,gLnk(0,"The Mechanics of Motivation",		   path_f + folderdir_f + "motivation.htm"     ));
insDoc(aux1,gLnk(0,"Management Techniques",				   path_f + folderdir_f + "management.htm"     ));
insDoc(aux1,gLnk(0,"Leadership Skills",					   path_f + folderdir_f + "leaderskills.htm"   ));
insDoc(aux1,gLnk(0,"Leading A Group",					   path_f + folderdir_f + "groupleading.htm"   ));
insDoc(aux1,gLnk(0,"Planning And Forecasting",			   path_f + folderdir_f + "forecast.htm"       ));
}