/////////////////////////////////////////////////////////////////////////////
// Standard IDs
var ID_FILE_NEW                     = 0xE100;
var ID_FILE_OPEN                    = 0xE101;
var ID_FILE_CLOSE                   = 0xE102;
var ID_FILE_SAVE                    = 0xE103;
var ID_FILE_SAVE_AS                 = 0xE104;
var ID_FILE_PAGE_SETUP              = 0xE105;
var ID_FILE_PRINT_SETUP             = 0xE106;
var ID_FILE_PRINT                   = 0xE107;
var ID_FILE_PRINT_DIRECT            = 0xE108;
var ID_FILE_PRINT_PREVIEW           = 0xE109;
var ID_FILE_UPDATE                  = 0xE10A;
var ID_FILE_SAVE_COPY_AS            = 0xE10B;
var ID_FILE_SEND_MAIL               = 0xE10C;

var ID_FILE_MRU_FIRST               = 0xE110;
var ID_FILE_MRU_FILE1               = 0xE110;
var ID_FILE_MRU_FILE2               = 0xE111;
var ID_FILE_MRU_FILE3               = 0xE112;
var ID_FILE_MRU_FILE4               = 0xE113;
var ID_FILE_MRU_FILE5               = 0xE114;
var ID_FILE_MRU_FILE6               = 0xE115;
var ID_FILE_MRU_FILE7               = 0xE116;
var ID_FILE_MRU_FILE8               = 0xE117;
var ID_FILE_MRU_FILE9               = 0xE118;
var ID_FILE_MRU_FILE10              = 0xE119;
var ID_FILE_MRU_FILE11              = 0xE11A;
var ID_FILE_MRU_FILE12              = 0xE11B;
var ID_FILE_MRU_FILE13              = 0xE11C;
var ID_FILE_MRU_FILE14              = 0xE11D;
var ID_FILE_MRU_FILE15              = 0xE11E;
var ID_FILE_MRU_FILE16              = 0xE11F;
var ID_FILE_MRU_LAST                = 0xE11F;

var ID_EDIT_CLEAR                   = 0xE120;
var ID_EDIT_CLEAR_ALL               = 0xE121;
var ID_EDIT_COPY                    = 0xE122;
var ID_EDIT_CUT                     = 0xE123;
var ID_EDIT_FIND                    = 0xE124;
var ID_EDIT_PASTE                   = 0xE125;
var ID_EDIT_PASTE_LINK              = 0xE126;
var ID_EDIT_PASTE_SPECIAL           = 0xE127;
var ID_EDIT_REPEAT                  = 0xE128;
var ID_EDIT_REPLACE                 = 0xE129;
var ID_EDIT_SELECT_ALL              = 0xE12A;
var ID_EDIT_UNDO                    = 0xE12B;
var ID_EDIT_REDO                    = 0xE12C;

var ID_WINDOW_NEW                   = 0xE130;
var ID_WINDOW_ARRANGE               = 0xE131;
var ID_WINDOW_CASCADE               = 0xE132;
var ID_WINDOW_TILE_HORZ             = 0xE133;
var ID_WINDOW_TILE_VERT             = 0xE134;
var ID_WINDOW_SPLIT                 = 0xE135;

var AFX_IDM_WINDOW_FIRST            = 0xE130;
var AFX_IDM_WINDOW_LAST             = 0xE13F;
var AFX_IDM_FIRST_MDICHILD          = 0xFF00;

var ID_APP_ABOUT                    = 0xE140;
var ID_APP_EXIT                     = 0xE141;
var ID_HELP_INDEX                   = 0xE142;
var ID_HELP_FINDER                  = 0xE143;
var ID_HELP_USING                   = 0xE144;
var ID_CONTEXT_HELP                 = 0xE145;
var ID_HELP                         = 0xE146;
var ID_DEFAULT_HELP                 = 0xE147;

var ID_NEXT_PANE                    = 0xE150;
var ID_PREV_PANE                    = 0xE151;

/////////////////////////////////////////////////////////////////////////////
// Extract resource.h from ArtCAM, translate it into a valid Javascript
// expression and evaluate the result.
eval(artcam.GetResourceIds().replace(/^(.+)$/gim, "//$1")
     .replace(/^\/\/\s*#define\s+(\S+)\s+(\S+)\s*$/gim, "var $1 = $2;"));
