rem: || (!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_download) 
add: || (!file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_download) 
context: function Filemenu(){	this.items=new Array();	// Width of longest line with no dynamic variables	var width=0;	var scantime=system.datestr(bbs.new_file_time);	// Expand for scan time line.	if(width < 27+scantime.length)		width=27+scantime.length;	if(width < 11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length)		width=11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length;	this.xpos=1;	this.ypos=2;	this.lpadding="\xb3";	this.rpadding="\xb3";	this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');	this.add(top_bar(width),undefined,undefined,"","");	this.add(		 format_opt("|Change Directory",width,false)		,"C",width	);	this.add(		 format_opt("|List Dir ("+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name+")",width,false)		,"L",width	);	this.add(		 format_opt("Scan for |New Files since "+scantime,width,true)		,"N",width	);	this.add(		 format_opt("Search for |Filenames",width,true)		,"F",width	);	this.add(		 format_opt("Search for |Text in Descriptions",width,true)		,"T",width	);	this.add(		 format_opt("|Download file(s)",width,true)		,"D",width,undefined,undefined		,user.compare_ars("REST D")			|| (!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_download)	);	this.add(		 format_opt("|Upload file(s)",width,true)		,"U",width,undefined,undefined		,user.compare_ars("REST U")			|| ((!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_upload)			&& file_area.upload_dir==undefined)	);	this.add(		 format_opt("|Remove/Edit Files",width,false)		,"R",width	);	this.add(		 format_opt("View/Edit |Batch Queue",width,false)		,"B",width,undefined,undefined		// Disabled if you can't upload or download.		// Disabled if no upload dir and no batch queue		,(user.compare_ars("REST U AND REST D"))			|| (bbs.batch_upload_total <= 0  				&& bbs.batch_dnload_total <= 0 				&& file_area.upload_dir==undefined			)	);	this.add(		 format_opt("|View",width,true)		,"V",width	);	this.add(		 format_opt("|Settings",width,true)		,"S",width	);	this.add(bottom_bar(width),undefined,undefined,"","");	this.timeout=100;	this.callback=message_callback;}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/c58fa2e76bb82c62d635b0126798ae29a8542ce4/lbshell.js/buggy/lbshell.js