// Copyright 2000 Macromedia, Inc. All rights reserved.

var PLATFORM = navigator.platform;
var CTRL_STR = (PLATFORM == "Win32") ? "Ctrl" : "Cmd";
var ICON_URL = (PLATFORM == "Win32") ? "../Shared/MM/Images/infoIconWin.gif" : "dwres:1";
var helpDoc = MM.HELP_mnuLayoutViewIntro;

// Set up platform-specific items in the Layout View intro dialog.
function initialize()
{
    // Set the text to say "Cmd" or "Ctrl" depending on whether we're on Mac or
    // Windows.
    document.span_CmdOrCtrl.innerHTML = CTRL_STR;

    // Use the right icon for the platform.
    document.img_DialogIcon.src = ICON_URL;
}

// Detect if the user checked the "Don't show me again" checkbox
// when the user hits "OK".
function onOK()
{
    if (document.cbForm.check_DontShowAgain.checked)
    {
        MM.LayoutViewIntro_DontShowAgain = true;
    }
    window.close();
}
