context:     initSaveItems : function () {        // Save page is always OK, unless in directory listing.        this.showItem( "context-savepage", !this.inDirList );            // Save frame as depends on whether we're in a frame.        this.showItem( "context-saveframe", this.inFrame );            // Save link depends on whether we're in a link.        this.showItem( "context-savelink", this.onSaveableLink );            // Save background image depends on whether there is one.        this.showItem( "context-savebgimage", this.hasBGImage );            // Save image depends on whether there is one.        this.showItem( "context-saveimage", this.onImage );        if (this.onImage){ //if onImage, let's get the imagename into the context menu                  var saveImageMenuItem = document.getElementById( 'context-saveimage' );           var imageName = extractFileNameFromUrl(this.imageURL);           var bundle = srGetStrBundle("chrome://communicator/locale/contentAreaCommands.properties");           var caption = bundle.formatStringFromName("saveImageAs",[imageName],1);           saveImageMenuItem.setAttribute( "value", caption );        }        // Remove separator if none of these were shown.        var showSep = !this.inDirList || this.inFrame || this.onSaveableLink || this.hasBGImage || this.onImage;        this.showItem( "context-sep-save", showSep );    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/43eaf099ffdfa8503857679c15440570e4ec1f83/nsContextMenu.js/buggy/suite/common/nsContextMenu.js