
// 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 CodeUnix ( foldersTree, nestdir, folderdir )
{
var folderdir_f = folderdir	|| "CodeUnix/";
var path_f = nestdir || "";

var unix=insFld(foldersTree,gFld("Unix Articles"),"");					   
insDoc(unix,gLnk(0,"Process Control",                    path_f + folderdir_f + "ProcessControl.htm"				));
insDoc(unix,gLnk(0,"IPC Sockets",                        path_f + folderdir_f + "IPCSockets.htm"					));
insDoc(unix,gLnk(0,"IPC Shared Memory",                  path_f + folderdir_f + "IPCSharedMemory.htm"				));
insDoc(unix,gLnk(0,"IPC Semaphores",                     path_f + folderdir_f + "IPCSemaphores.htm"				));
insDoc(unix,gLnk(0,"IPC Message Queue",                  path_f + folderdir_f + "IPCMessageQueue.htm"				));
insDoc(unix,gLnk(0,"Threads Basic Theory And Libraries", path_f + folderdir_f + "ThreadsBasicTheoryLibraries.htm"	));
insDoc(unix,gLnk(0,"Thread Attributes (POSIX)",          path_f + folderdir_f + "ThreadAttributes.htm"			));
insDoc(unix,gLnk(0,"Thread Synchronization",             path_f + folderdir_f + "ThreadSynchronization.htm"		));
insDoc(unix,gLnk(0,"Thread Examples",                    path_f + folderdir_f + "ThreadExamples.htm"				));
return foldersTree;
}

