function setMenuItems(language, pictureInfo)
{
    menuItems =
        [
            [optionsItem, null, null,
                ['<input type=\"checkbox\" name=\"fullscreen\" id=\"fullscreen\" ' +
                 'onclick=\"javascript:toggleFullscreen(true);\" checked>' +
                 enableFullScreen, 'javascript:toggleFullscreen(false);',
                 {'sb' : enableFullScreenSb} ],
                [jumpToPicture, 'javascript:closeWindow();', {'sb' : jumpToPictureSb} ],
                [viewPhotoInfo, null, null,
                    [ pictureInfo, null, {'sb' : pictureInfoSb} ]
                ],
                [slideShow, null, null,
                    ['<input type=\"checkbox\" name=\"slideShow\" id=\"slideShow\" ' +
                     'onclick=\"javascript:toggleSlideShow(true);\">' +
                      changeImagesEvery +
                     ' <input type=\"text\" name=\"delay\" value=\"10\" size=3 disabled=true> '
                     + sec,
                     'javascript:toggleSlideShow(false);'],
                    [increaseDelay, 'javascript:changeDelay(1);', {'sb' : increaseDelaySb}],
                    [decreaseDelay, 'javascript:changeDelay(-1);', {'sb' : decreaseDelaySb}]
                ],
                [captionText, null, null,
                    ['<input type=\"checkbox\" name=\"captionEnable\" ' +
                     'id=\"captionEnable\" onclick=\"javascript:toggleCaption(true);\" ' +
                     'checked>' + showText +
                     '<input type=\"text\" name=\"captionSize\" value=28 size=3 ' +
                     'disabled=true>' + ptCaptions, 'javascript:toggleCaption(false);'],
                    [increaseFontSize, 'javascript:changeCaptionSize(2);'],
                    [decreaseFontSize, 'javascript:changeCaptionSize(-2);']
                ],
                LANGUAGE_MENU_ITEM
            ]
        ];
        
    // Add in high/low/auto resolution choice if this album was
    // generated with hi/low resolution images
    if (isResolution)
        menuItems[0].push(IMAGE_CHOICE);

    return(menuItems);
}

var IMAGE_CHOICE =
    [imageResolution, null,
        { 'sb' : imageResolutionSb },
        ['<input type=\"radio\" name=\"resolution\" ' +
         'onclick=\"javascript:setResolution(0);\" checked>' +
         autoSelect, 'javascript:setResolution(0);',
         { 'sb' : autoSelectSb } ],
        ['<input type=\"radio\" name=\"resolution\" ' +
         'onclick=\"javascript:setResolution(1);\">' +
         highestQuality, 'javascript:setResolution(1);\"',
         { 'sb' : highestQualitySb } ],
        ['<input type=\"radio\" name=\"resolution\" ' +
         'onclick=\"javascript:setResolution(2);\">' +
         smallestSize, 'javascript:setResolution(2);',
         { 'sb' : smallestSizeSb } ]
    ];

