home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2003 November / CD1_JOY_153.iso / demos / NHL2004Demo.exe / fe / nhl / js / NHLNavigation.js < prev    next >
Text File  |  2003-08-20  |  46KB  |  884 lines

  1. //Copyright (c) 2002 Electronic Arts Inc. All rights reserved.
  2.  
  3. var oGameFace = window.external.GameInterface;
  4. // var oComm = oGameFace.CommInterface;
  5. var oLeagueServer = oGameFace.LeagueServerInterface;
  6. var oExecutorServer = oGameFace.ExecutorServerInterface;
  7. var oAudioInterface = oGameFace.AudioInterface;
  8.  
  9.  
  10. // the "BACK" screen is a special screen and the screen ID really doesn't matter
  11. // we should be doing this another away like screen id "0"
  12.  
  13. var  nhlNavArray =
  14. {
  15.     Standard:
  16.         [
  17.             new LeftNavItem("1", nhlMsg('MAIN_MENU'), true)
  18.         ],
  19.  
  20.     Online:
  21.         [
  22.             new LeftNavItem("1004", nhlMsg('CMN_FRONT_ONLINE'), true)
  23.         ],
  24.  
  25.     Backout:
  26.         [
  27.             new LeftNavItem("1", 'BACK', true)
  28.         ],
  29.  
  30.     // This variation of GameSetup is used in Exhibition.
  31.     GameSetupExhibition:
  32.         [        
  33.             new LeftNavItem("1000", nhlMsg('CMN_GAME_SETUP')),
  34.             /*
  35.             new LeftNavItem("1120", nhlMsg('RULES')),
  36.             [
  37.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  38.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  39.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  40.                 new LeftNavItem("1114", nhlMsg('CMN_MANAGE_ROSTERS')),
  41.                 new LeftNavItem("1112", nhlMsg('CMN_TRADE'))
  42.             ],
  43.             new LeftNavItem("1101", nhlMsg('CMN_STARTING_LINEUP')),
  44.             new LeftNavItem("1102", nhlMsg('CMN_CONTROLLER_CONFIG')),
  45.             [
  46.                 new LeftNavItem("", nhlMsg('CMN_STATSCENTRAL'), true),
  47.                 new LeftNavItem("1140", nhlMsg('CMN_PLAYER_STATS')),
  48.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS'))
  49.             ]
  50.             */
  51.         ],
  52.  
  53.     // This variation of GameSetup is used in schedule leagues -- Franchise, Playoff, and
  54.     // International and lacks the CreatePlayer submenu and the Coach Options Trade item.
  55.     GameSetupSchedule:
  56.         [
  57.             new LeftNavItem("1", 'BACK', true),
  58.             new LeftNavItem("1100", nhlMsg('CMN_GAME_SETUP')),
  59.             new LeftNavItem("1120", nhlMsg('RULES')),
  60.             [
  61.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  62.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  63.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  64.             ],
  65.             new LeftNavItem("1101", nhlMsg('CMN_STARTING_LINEUP')),
  66.             new LeftNavItem("1102", nhlMsg('CMN_CONTROLLER_CONFIG'))
  67.         ],
  68.  
  69.     // This variation of GameSetup is used in online situations (direct, league and matchup)
  70.     // International and lacks the CreatePlayer submenu and the Coach Options Trade item.
  71.     GameSetupOnline:
  72.         [
  73.             new LeftNavItem("1850", nhlMsg('CMN_GAME_SETUP')),
  74.             new LeftNavItem("1120", nhlMsg('RULES')),
  75.             [
  76.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  77.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  78.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  79.             ],
  80.             new LeftNavItem("1101", nhlMsg('CMN_STARTING_LINEUP')),
  81.             new LeftNavItem("1102", nhlMsg('CMN_CONTROLLER_CONFIG'))
  82.         ],
  83.  
  84.     // This variation of GameSetup is used in online situations (direct, league and matchup)
  85.     // International and lacks the CreatePlayer submenu and the Coach Options Trade item.
  86.     GameSetupMatchup:
  87.         [
  88.             new LeftNavItem("1897", nhlMsg("EASO_MATCHUP_LOBBY")),
  89.             new LeftNavItem("1849", nhlMsg('CMN_GAME_SETUP')),
  90.             new LeftNavItem("1120", nhlMsg('RULES')),
  91.             [
  92.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  93.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  94.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  95.             ],
  96.             new LeftNavItem("1101", nhlMsg('CMN_STARTING_LINEUP')),
  97.             new LeftNavItem("1102", nhlMsg('CMN_CONTROLLER_CONFIG'))
  98.         ],
  99.  
  100.     FranchiseCentral:
  101.         [
  102.             new LeftNavItem("1200", nhlMsg('CMN_SEASON_CENTRAL'), true),
  103.             /*
  104.             [
  105.                 new LeftNavItem("", nhlMsg('CMN_GM_OFFICE'), true),
  106.                 //new LeftNavItem("1212", nhlMsg('CMN_LEAGUE_NEWS')),
  107.                 new LeftNavItem("1905", nhlMsg('CMN_TRADE_PLAYERS')),
  108.                 //new LeftNavItem("1906", nhlMsg('CMN_FREEAGENTS'))
  109.             ],
  110.             */
  111.             [
  112.                 new LeftNavItem("", nhlMsg('CMN_COMMISH_OFFICE'), true),
  113.                 new LeftNavItem("1222", nhlMsg('CMN_USER_CONTROL')),
  114.                 new LeftNavItem("1221", nhlMsg('CMN_SIM_TO_DATE')),
  115.                 new LeftNavItem("1120", nhlMsg('RULES'))
  116.             ],
  117.             [
  118.                 new LeftNavItem("", nhlMsg('CMN_COACHS_RM'), true),
  119.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  120.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  121.                 new LeftNavItem("1905", nhlMsg('CMN_TRADE_PLAYERS')),
  122.                 new LeftNavItem("1114", nhlMsg('CMN_MANAGE_ROSTERS')),                
  123.                 //new LeftNavItem("1904", nhlMsg('CMN_PROG_REPORTS')),
  124.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR'))
  125.             ],
  126.             [
  127.                 new LeftNavItem("", nhlMsg('CMN_STATSCENTRAL'), true),
  128.                 new LeftNavItem("1211", nhlMsg('CMN_STANDINGS')),
  129.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS')),
  130.                 new LeftNavItem("1140", nhlMsg('CMN_AB_PLAYER_STATS')),
  131.                 //new LeftNavItem("1909", nhlMsg('CMN_BOX_SCORES')),
  132.                 new LeftNavItem("1214", nhlMsg('CMN_PLAYOFF_TREE')),
  133.                 new LeftNavItem("1215", nhlMsg('CMN_AWARDS'))
  134.             ]//,
  135.             //new LeftNavItem("8886", nhlMsg('CMN_CREATE_PLAYER'))
  136.         ],
  137.  
  138.     DynastyCentral:
  139.         [
  140.             new LeftNavItem("1867", nhlMsg('CMN_DYN_CENTRAL'), true),
  141.             [
  142.                 new LeftNavItem("", nhlMsg('CMN_COMMISH_OFFICE'), true),
  143.                 new LeftNavItem("1120", nhlMsg('RULES')),
  144.                 //new LeftNavItem("1212", nhlMsg('CMN_LEAGUE_NEWS')),
  145.                 new LeftNavItem("8893", nhlMsg('CMN_DRAFT_ORDER')),
  146.                 //new LeftNavItem("1880", nhlMsg('TEMP_DRAFT_DAY'))
  147.             ],
  148.             [
  149.                 new LeftNavItem("", nhlMsg('CMN_YOUR_OFFICE'), true),
  150.                 new LeftNavItem("1900", nhlMsg('CMN_GM_OFFICE')),
  151.                 new LeftNavItem("1901", nhlMsg('CMN_GM_RANKING')),
  152.                 new LeftNavItem("1902", nhlMsg('CMN_SKILLS_UPGRADES')),                
  153.                 new LeftNavItem("1903", nhlMsg('CMN_FINANCES')),
  154.                 new LeftNavItem("1905", nhlMsg('CMN_TRADE_PLAYERS')),
  155.                 new LeftNavItem("1907", nhlMsg('CMN_CONTRACTS')),
  156.                 new LeftNavItem("1906", nhlMsg('CMN_FREEAGENTS')),
  157.                 //new LeftNavItem("1910", nhlMsg('CMN_TROPHY_RM')),
  158.             ],
  159.             [
  160.                 new LeftNavItem("", nhlMsg('CMN_COACHS_RM'), true),
  161.                 //new LeftNavItem("1120", nhlMsg('RULES')),
  162.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  163.                 new LeftNavItem("1114", nhlMsg('CMN_MANAGE_ROSTERS')),
  164.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGIES')),
  165.                 new LeftNavItem("1890", nhlMsg('CMN_TEAM_UPGRADES')),
  166.                 new LeftNavItem("1908", nhlMsg('CMN_TEAM_REP')),
  167.                 new LeftNavItem("8892", nhlMsg('CMN_SCOUTING_REPORTS')),
  168.                 new LeftNavItem("1113", nhlMsg('CMN_PROG_REPORTS')),
  169.             ],
  170.             [
  171.                 new LeftNavItem("", nhlMsg('CMN_STATSCENTRAL'), true),
  172.                 new LeftNavItem("1211", nhlMsg('CMN_STANDINGS')),
  173.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS')),
  174.                 new LeftNavItem("1140", nhlMsg('CMN_AB_PLAYER_STATS')),
  175.                 //new LeftNavItem("1909", nhlMsg('CMN_BOX_SCORES')),
  176.                 new LeftNavItem("1214", nhlMsg('CMN_PLAYOFF_TREE')),
  177.                 new LeftNavItem("1215", nhlMsg('CMN_AWARDS')),
  178.             ]//,
  179.             //new LeftNavItem("8886", nhlMsg('CMN_CREATE_PLAYER')),
  180.         ],
  181.  
  182.     SlaveFranchiseCentral:
  183.         [
  184.             new LeftNavItem("1291", nhlMsg('CMN_FRANCHISE_CENTRAL'), true),
  185.             [
  186.                 //new LeftNavItem("", nhlMsg('CMN_LEAGUE_NEWS'), true),
  187.                 new LeftNavItem("1212", nhlMsg('CMN_STREAKS')),
  188.                 new LeftNavItem("1211", nhlMsg('CMN_STANDINGS')),
  189.                 new LeftNavItem("1905", nhlMsg('CMN_TRADE_PLAYERS')),
  190.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR')),
  191.                 new LeftNavItem("1214", nhlMsg('CMN_PLAYOFF_TREE')),
  192.                 new LeftNavItem("1215", nhlMsg('CMN_AWARDS'))
  193.             ],
  194.             [
  195.                 new LeftNavItem("", nhlMsg('CMN_COMMISSIONERMODE'), true),
  196.                 new LeftNavItem("1225", nhlMsg('CMN_UPDATE'))
  197.             ],
  198.             [
  199.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  200.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  201.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  202.                 new LeftNavItem("1113", nhlMsg('CMN_VIEW_ROSTERS'))
  203.             ],
  204.             [
  205.                 new LeftNavItem("", nhlMsg('CMN_OPTIONS'), true),
  206.                 new LeftNavItem("1120", nhlMsg('RULES')),
  207.                 new LeftNavItem("1121", nhlMsg('CMN_DISPLAY_OPTIONS')),
  208.                 new LeftNavItem("1122", nhlMsg('CMN_AI_OPTIONS')),
  209.                 new LeftNavItem("1123", nhlMsg('CMN_SOUND_OPTIONS')),
  210.                 new LeftNavItem("1124", nhlMsg('CMN_GAME_OPTIONS'))                
  211.             ],
  212.             [
  213.                 new LeftNavItem("", nhlMsg('CMN_STATS'), true),
  214.                 new LeftNavItem("1140", nhlMsg('CMN_PLAYER_STATS')),
  215.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS'))
  216.             ]
  217.         ],
  218.  
  219.     InternationalCentral:
  220.         [
  221.             new LeftNavItem("1300", nhlMsg('AB_INTERNATIONAL_CENTRAL'), true),
  222.             /*
  223.             [
  224.                 new LeftNavItem("", nhlMsg('CMN_GM_OFFICE'), true),
  225.                 //new LeftNavItem("1212", nhlMsg('CMN_LEAGUE_NEWS')),
  226.                 new LeftNavItem("1905", nhlMsg('CMN_TRADE_PLAYERS')),
  227.                 //new LeftNavItem("1906", nhlMsg('CMN_FREEAGENTS'))
  228.             ],
  229.             */
  230.             [
  231.                 new LeftNavItem("", nhlMsg('CMN_COMMISH_OFFICE'), true),
  232.                 new LeftNavItem("1222", nhlMsg('CMN_USER_CONTROL')),
  233.                 new LeftNavItem("1221", nhlMsg('CMN_SIM_TO_DATE')),
  234.                 new LeftNavItem("1120", nhlMsg('RULES')),
  235.             ],
  236.             [
  237.                 new LeftNavItem("", nhlMsg('CMN_COACHS_RM'), true),
  238.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  239.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  240.                 //new LeftNavItem("1905", nhlMsg('CMN_TRADE_PLAYERS')),
  241.                 new LeftNavItem("1114", nhlMsg('CMN_MANAGE_ROSTERS')),                
  242.                 //new LeftNavItem("1904", nhlMsg('CMN_PROG_REPORTS')),
  243.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR'))
  244.             ],
  245.             [
  246.                 new LeftNavItem("", nhlMsg('CMN_STATSCENTRAL'), true),
  247.                 //new LeftNavItem("1211", nhlMsg('CMN_STANDINGS')),
  248.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS')),
  249.                 new LeftNavItem("1140", nhlMsg('CMN_AB_PLAYER_STATS')),
  250.                 //new LeftNavItem("1909", nhlMsg('CMN_BOX_SCORES')),
  251.                 new LeftNavItem("1216", nhlMsg('TOURNAMENT_TREE')),
  252.             ]//,
  253.             //new LeftNavItem("8886", nhlMsg('CMN_CREATE_PLAYER'))
  254.         ],
  255.  
  256.     EliteCentral:
  257.         [
  258.             new LeftNavItem("1", 'BACK', true),
  259.             /*
  260.             [
  261.                 new LeftNavItem("", nhlMsg('CMN_GM_OFFICE'), true),
  262.                 //new LeftNavItem("1212", nhlMsg('CMN_LEAGUE_NEWS')),
  263.                 new LeftNavItem("1905", nhlMsg('CMN_TRADE_PLAYERS')),
  264.                 //new LeftNavItem("1906", nhlMsg('CMN_FREEAGENTS'))
  265.             ],
  266.             */
  267.             [
  268.                 new LeftNavItem("", nhlMsg('CMN_COMMISH_OFFICE'), true),
  269.                 new LeftNavItem("1222", nhlMsg('CMN_USER_CONTROL')),
  270.                 new LeftNavItem("1221", nhlMsg('CMN_SIM_TO_DATE')),
  271.                 new LeftNavItem("1120", nhlMsg('RULES')),
  272.             ],
  273.             [
  274.                 new LeftNavItem("", nhlMsg('CMN_COACHS_RM'), true),
  275.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  276.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  277.                 new LeftNavItem("1905", nhlMsg('CMN_TRADE_PLAYERS')),
  278.                 new LeftNavItem("1114", nhlMsg('CMN_MANAGE_ROSTERS')),                
  279.                 //new LeftNavItem("1904", nhlMsg('CMN_PROG_REPORTS')),
  280.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR'))
  281.             ],
  282.             [
  283.                 new LeftNavItem("", nhlMsg('CMN_STATSCENTRAL'), true),
  284.                 new LeftNavItem("1211", nhlMsg('CMN_STANDINGS')),
  285.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS')),
  286.                 new LeftNavItem("1140", nhlMsg('CMN_AB_PLAYER_STATS')),
  287.                 //new LeftNavItem("1909", nhlMsg('CMN_BOX_SCORES')),
  288.                 new LeftNavItem("1217", nhlMsg('CMN_PLAYOFF_TREE')),
  289.             ]//,
  290.             //new LeftNavItem("8886", nhlMsg('CMN_CREATE_PLAYER'))
  291.         ],
  292.  
  293.     CommishIntlCentral:
  294.         [
  295.             new LeftNavItem("1390", nhlMsg('AB_INTERNATIONAL_CENTRAL'), true),
  296.             [
  297.                 //new LeftNavItem("", nhlMsg('CMN_LEAGUE_NEWS'), true),
  298.                 new LeftNavItem("1212", nhlMsg('CMN_STREAKS')),
  299.                 new LeftNavItem("1211", nhlMsg('CMN_STANDINGS')),
  300.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR')),
  301.                 new LeftNavItem("1216", nhlMsg('CMN_TOURNAMENT_TREE'))
  302.             ],
  303.             [
  304.                 new LeftNavItem("", nhlMsg('CMN_COMMISSIONERMODE'), true),
  305.                 new LeftNavItem("1220", nhlMsg('CMN_LEAGUE_SETUP')),
  306.                 new LeftNavItem("1222", nhlMsg('CMN_USER_CONTROL')),
  307.                 new LeftNavItem("1224", nhlMsg('CMN_WAIT_CONNECT'))
  308.             ],
  309.             [
  310.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  311.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  312.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  313.                 new LeftNavItem("1113", nhlMsg('CMN_VIEW_ROSTERS'))
  314.             ],
  315.             [
  316.                 new LeftNavItem("", nhlMsg('CMN_OPTIONS'), true),
  317.                 new LeftNavItem("1120", nhlMsg('RULES')),
  318.                 new LeftNavItem("1121", nhlMsg('CMN_DISPLAY_OPTIONS')),
  319.                 new LeftNavItem("1122", nhlMsg('CMN_AI_OPTIONS')),
  320.                 new LeftNavItem("1123", nhlMsg('CMN_SOUND_OPTIONS')),
  321.                 new LeftNavItem("1124", nhlMsg('CMN_GAME_OPTIONS')),                
  322.             ],
  323.             [
  324.                 new LeftNavItem("", nhlMsg('CMN_STATS'), true),
  325.                 new LeftNavItem("1140", nhlMsg('CMN_PLAYER_STATS')),
  326.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS'))
  327.             ],
  328.             [
  329.                 new LeftNavItem("", nhlMsg('CMN_CREATEPLAYER'), true),
  330.                 new LeftNavItem("8886", nhlMsg('CMN_CREATE')),
  331.                 new LeftNavItem("8889", nhlMsg('CMN_MANAGE')),
  332.                 new LeftNavItem("8888", nhlMsg('CMN_IMPORT'))
  333.             ]
  334.         ],
  335.  
  336.     SlaveIntlCentral:
  337.         [
  338.             new LeftNavItem("1391", nhlMsg('AB_INTERNATIONAL_CENTRAL'), true),
  339.             [
  340.                 //new LeftNavItem("", nhlMsg('CMN_LEAGUE_NEWS'), true),
  341.                 new LeftNavItem("1212", nhlMsg('CMN_STREAKS')),
  342.                 new LeftNavItem("1211", nhlMsg('CMN_STANDINGS')),
  343.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR')),
  344.                 new LeftNavItem("1216", nhlMsg('CMN_TOURNAMENT_TREE'))
  345.             ],
  346.             [
  347.                 new LeftNavItem("", nhlMsg('CMN_COMMISSIONERMODE'), true),
  348.                 new LeftNavItem("1225", nhlMsg('CMN_UPDATE'))
  349.             ],
  350.             [
  351.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  352.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  353.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  354.                 new LeftNavItem("1113", nhlMsg('CMN_VIEW_ROSTERS'))
  355.             ],
  356.             [
  357.                 new LeftNavItem("", nhlMsg('CMN_OPTIONS'), true),
  358.                 new LeftNavItem("1120", nhlMsg('RULES')),
  359.                 new LeftNavItem("1121", nhlMsg('CMN_DISPLAY_OPTIONS')),
  360.                 new LeftNavItem("1122", nhlMsg('CMN_AI_OPTIONS')),
  361.                 new LeftNavItem("1123", nhlMsg('CMN_SOUND_OPTIONS')),
  362.                 new LeftNavItem("1124", nhlMsg('CMN_GAME_OPTIONS'))                
  363.             ],
  364.             [
  365.                 new LeftNavItem("", nhlMsg('CMN_STATS'), true),
  366.                 new LeftNavItem("1140", nhlMsg('CMN_PLAYER_STATS')),
  367.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS'))
  368.             ]
  369.         ],
  370.  
  371.     PlayoffCentral:
  372.         [
  373.             new LeftNavItem("1400", nhlMsg('CMN_PLAYOFF_CENTRAL'), true),
  374.             [
  375.                 new LeftNavItem("", nhlMsg('CMN_COMMISH_OFFICE'), true),
  376.                 new LeftNavItem("1222", nhlMsg('CMN_USER_CONTROL')),
  377.                 new LeftNavItem("1221", nhlMsg('CMN_SIM_TO_DATE')),
  378.                 new LeftNavItem("1120", nhlMsg('RULES')),
  379.             ],
  380.             [
  381.                 new LeftNavItem("", nhlMsg('CMN_COACHS_RM'), true),
  382.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  383.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  384.                 new LeftNavItem("1114", nhlMsg('CMN_MANAGE_ROSTERS')),                
  385.                 //new LeftNavItem("1904", nhlMsg('CMN_PROG_REPORTS')),
  386.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR'))
  387.             ],
  388.             [
  389.                 new LeftNavItem("", nhlMsg('CMN_STATSCENTRAL'), true),
  390.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS')),
  391.                 new LeftNavItem("1140", nhlMsg('CMN_AB_PLAYER_STATS')),
  392.                 //new LeftNavItem("1909", nhlMsg('CMN_BOX_SCORES')),
  393.                 new LeftNavItem("1214", nhlMsg('CMN_PLAYOFF_TREE')),
  394.                 //new LeftNavItem("1215", nhlMsg('CMN_AWARDS'))
  395.             ]//,
  396.             //new LeftNavItem("8886", nhlMsg('CMN_CREATE_PLAYER'))
  397.         ],
  398.  
  399.     CommishPlayoffCentral:
  400.         [
  401.             new LeftNavItem("1490", nhlMsg('CMN_PLAYOFF_CENTRAL'), true),
  402.             [
  403.                 //new LeftNavItem("", nhlMsg('CMN_LEAGUE_NEWS'), true),
  404.                 new LeftNavItem("1212", nhlMsg('CMN_STREAKS')),
  405.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR')),
  406.                 new LeftNavItem("1214", nhlMsg('CMN_PLAYOFF_TREE')),
  407.                 new LeftNavItem("1215", nhlMsg('CMN_AWARDS'))
  408.             ],
  409.             [
  410.                 new LeftNavItem("", nhlMsg('CMN_COMMISSIONERMODE'), true),
  411.                 new LeftNavItem("1220", nhlMsg('CMN_LEAGUE_SETUP')),
  412.                 new LeftNavItem("1222", nhlMsg('CMN_USER_CONTROL')),
  413.                 new LeftNavItem("1224", nhlMsg('CMN_WAIT_CONNECT'))
  414.             ],
  415.             [
  416.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  417.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  418.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  419.                 new LeftNavItem("1113", nhlMsg('CMN_VIEW_ROSTERS'))
  420.             ],
  421.             [
  422.                 new LeftNavItem("", nhlMsg('CMN_OPTIONS'), true),
  423.                 new LeftNavItem("1120", nhlMsg('RULES')),
  424.                 new LeftNavItem("1121", nhlMsg('CMN_DISPLAY_OPTIONS')),
  425.                 new LeftNavItem("1122", nhlMsg('CMN_AI_OPTIONS')),
  426.                 new LeftNavItem("1123", nhlMsg('CMN_SOUND_OPTIONS')),
  427.                 new LeftNavItem("1124", nhlMsg('CMN_GAME_OPTIONS'))                
  428.             ],
  429.             [
  430.                 new LeftNavItem("", nhlMsg('CMN_STATS'), true),
  431.                 new LeftNavItem("1140", nhlMsg('CMN_PLAYER_STATS')),
  432.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS'))
  433.             ],
  434.             [
  435.                 new LeftNavItem("", nhlMsg('CMN_CREATEPLAYER'), true),
  436.                 new LeftNavItem("8886", nhlMsg('CMN_CREATE')),
  437.                 new LeftNavItem("8889", nhlMsg('CMN_MANAGE')),
  438.                 new LeftNavItem("8888", nhlMsg('CMN_IMPORT'))
  439.             ]
  440.         ],
  441.  
  442.     SlavePlayoffCentral:
  443.         [
  444.             new LeftNavItem("1491", nhlMsg('CMN_PLAYOFF_CENTRAL'), true),
  445.             [
  446.                 //new LeftNavItem("", nhlMsg('CMN_LEAGUE_NEWS'), true),
  447.                 new LeftNavItem("1212", nhlMsg('CMN_STREAKS')),
  448.                 //new LeftNavItem("1213", nhlMsg('CMN_CALENDAR')),
  449.                 new LeftNavItem("1214", nhlMsg('CMN_PLAYOFF_TREE')),
  450.                 new LeftNavItem("1215", nhlMsg('CMN_AWARDS'))
  451.             ],
  452.             [
  453.                 new LeftNavItem("", nhlMsg('CMN_COMMISSIONERMODE'), true),
  454.                 new LeftNavItem("1225", nhlMsg('CMN_UPDATE'))
  455.             ],
  456.             [
  457.                 new LeftNavItem("", nhlMsg('CMN_COACH_OPTION'), true),
  458.                 new LeftNavItem("1110", nhlMsg('CMN_STRATEGY')),
  459.                 new LeftNavItem("1111", nhlMsg('CMN_EDITLINES')),
  460.                 new LeftNavItem("1113", nhlMsg('CMN_VIEW_ROSTERS'))
  461.             ],
  462.             [
  463.                 new LeftNavItem("", nhlMsg('CMN_OPTIONS'), true),
  464.                 new LeftNavItem("1120", nhlMsg('RULES')),
  465.                 new LeftNavItem("1121", nhlMsg('CMN_DISPLAY_OPTIONS')),
  466.                 new LeftNavItem("1122", nhlMsg('CMN_AI_OPTIONS')),
  467.                 new LeftNavItem("1123", nhlMsg('CMN_SOUND_OPTIONS')),
  468.                 new LeftNavItem("1124", nhlMsg('CMN_GAME_OPTIONS'))                
  469.             ],
  470.             [
  471.                 new LeftNavItem("", nhlMsg('CMN_STATS'), true),
  472.                 new LeftNavItem("1140", nhlMsg('CMN_PLAYER_STATS')),
  473.                 new LeftNavItem("1141", nhlMsg('CMN_TEAMSTATS'))
  474.             ]
  475.         ],
  476.  
  477.  
  478.     JoinCreate:
  479.         [
  480.             new LeftNavItem("1", 'BACK', true) ,
  481.         ],
  482.  
  483.     JoinOnline:
  484.         [
  485.             new LeftNavItem("1", 'BACK', true) ,
  486.             new LeftNavItem("1153", nhlMsg('CMN_CREATE_GAME')),
  487.             new LeftNavItem("1154", nhlMsg('CMN_JOIN_GAME'))
  488.         ],
  489.  
  490.     JoinCommish:
  491.         [
  492.             new LeftNavItem("1", 'BACK', true) ,
  493.             new LeftNavItem("1152", nhlMsg('CMN_JOIN_LEAGUE'))
  494.         ]
  495.  
  496. }
  497.  
  498. /*NHL Screens*/
  499.  
  500. System.GUI.Screens["1"]        = new Screen_Hash("1",     "fe/nhl/html/game_setup.html",     "Game_Setup.swf",         "nhlNavArray",    "GameSetupExhibition", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  501. System.GUI.Screens["1"].navigationCallback = gameSetupNavCallback;
  502.  
  503. //mprjk: i know these callbacks are the same for now, but they could differ later...
  504. function gameSetupNavCallback()
  505. {
  506.     oGameFace.LeagueServerInterface.LoadLeagueInternal(0,"");
  507.     System.Session.setPostGameLeague( "", 0 );
  508.     System.Session.setPostGameNavigation( "1", nhlMsg("MAIN_MENU") );
  509.     return true;
  510. }
  511.  
  512. function leagueSelectNavCallback()
  513. {
  514.     oGameFace.LeagueServerInterface.LoadLeagueInternal(0,"");
  515.     System.Session.setPostGameLeague( "", 0 );
  516.     System.Session.setPostGameNavigation( "1", nhlMsg("MAIN_MENU") );
  517.     return true;
  518. }
  519.  
  520. System.GUI.Screens["100"]        = new Screen_Hash("100",     "fe/nhl/html/game_setup.html",     "Game_Setup.swf",        "nhlNavArray",    "GameSetupExhibition", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  521. System.GUI.Screens["100"].navigationCallback = gameSetupNavCallback;
  522. System.GUI.Screens["1000"]        = new Screen_Hash("1000",     "fe/nhl/html/game_setup.html",     "Game_Setup.swf",         "nhlNavArray",    "GameSetupExhibition", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  523. System.GUI.Screens["1000"].navigationCallback = gameSetupNavCallback;
  524.  
  525. System.GUI.Screens["101"]        = new Screen_Hash("101",     "fe/nhl/html/franchise_select.html",     "Season_Games.swf",        "nhlNavArray",    "", "fe/NHL/images/background/load_games.jpg",                        false);
  526. System.GUI.Screens["101"].navigationCallback = leagueSelectNavCallback;
  527. System.GUI.Screens["1001"]        = new Screen_Hash("1001",     "fe/nhl/html/franchise_select.html",     "Season_Games.swf",        "nhlNavArray",    "", "fe/NHL/images/background/load_games.jpg",                        false);
  528.  
  529. System.GUI.Screens["102"]        = new Screen_Hash("102",     "fe/nhl/html/playoff_select.html",     "Playoff_Games.swf",        "nhlNavArray",    "", "fe/NHL/images/background/load_games.jpg",                        false);
  530. System.GUI.Screens["102"].navigationCallback = leagueSelectNavCallback;
  531. System.GUI.Screens["1002"]        = new Screen_Hash("102",     "fe/nhl/html/playoff_select.html",     "Playoff_Games.swf",        "nhlNavArray",    "", "fe/NHL/images/background/load_games.jpg",                        false);
  532.  
  533. System.GUI.Screens["103"]        = new Screen_Hash("103",     "fe/nhl/html/intl_select.html",     "International_TournamentGames.swf",        "nhlNavArray",    "", "fe/NHL/images/background/load_games.jpg",                        false);
  534. System.GUI.Screens["103"].navigationCallback = leagueSelectNavCallback;
  535. System.GUI.Screens["1003"]        = new Screen_Hash("1003",     "fe/nhl/html/intl_select.html",     "none",        "nhlNavArray",    "", "fe/NHL/images/background/load_games.jpg",                        false);
  536.  
  537. System.GUI.Screens["1005"]        = new Screen_Hash("1005",     "fe/nhl/html/del_select.html",             "International_TournamentGames.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  538. System.GUI.Screens["1009"]        = new Screen_Hash("1009",     "fe/nhl/html/elitserien_select.html",     "International_TournamentGames.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  539. System.GUI.Screens["1010"]        = new Screen_Hash("1010",     "fe/nhl/html/smliiga_select.html",         "International_TournamentGames.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  540.  
  541.  
  542.  
  543. System.GUI.Screens["108"]        = new Screen_Hash("108",     "fe/nhl/html/dynasty.html",     "Dynasty_Games.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  544. System.GUI.Screens["108"].navigationCallback = leagueSelectNavCallback;
  545. System.GUI.Screens["1008"]        = new Screen_Hash("1008",     "fe/nhl/html/dynasty.html",     "Dynasty_Games.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  546.  
  547. //mprjk: FIX - would like to hide this function somehow..
  548. function connectionSetupNavCallback()
  549. {
  550.     if (oComm.IsCommAvailable())
  551.     {
  552.         oGameFace.LeagueServerInterface.LoadLeagueInternal(1,"");
  553.         System.Session.setPostGameLeague( "", 0 );
  554.  
  555.         System.Session.setPostGameNavigation( "1", nhlMsg("MAIN_MENU") );
  556.  
  557.         System.ScratchPad.nhlOnlineConnectionType = "game";
  558.  
  559.         return true;
  560.     }
  561.      else
  562.     {
  563.         return false;
  564.     }
  565. }
  566.  
  567. System.GUI.Screens["104"]        = new Screen_Hash("104",     "fe/nhl/html/online_connection.html",     "none",        "nhlNavArray",    "", "fe/NHL/images/background/connection_setup.jpg"/*bkg*/,                        false);
  568. System.GUI.Screens["104"].navigationCallback = connectionSetupNavCallback;
  569.  
  570. System.GUI.Screens["1004"]        = new Screen_Hash("1004",     "fe/nhl/html/online_connection.html",     "none",        "nhlNavArray",    "", "fe/NHL/images/background/connection_setup.jpg"/*bkg*/,                        false);
  571. System.GUI.Screens["1004"].navigationCallback = connectionSetupNavCallback;
  572.  
  573.  
  574. //mprjk: leaving this dead nav in, just in case we want to put something similar in at the last minute..
  575. System.GUI.Screens["1006"]        = new Screen_Hash("1006",     "fe/nhl/html/xsell.html",     "none",        "nhlNavArray",    "", "fe/NHL/images/background/franchise_preview.jpg",                        false);
  576.  
  577. System.GUI.Screens["1007"]        = new Screen_Hash("1007",     "fe/nhl/html/credits.html",     "Credits.swf",        "nhlNavArray",    "", "",                        false);
  578.  
  579. System.GUI.Screens["111"]        = new Screen_Hash("111",     "fe/nhl/html/custom_team_select.html",     "Manage_CustomTeams.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  580. System.GUI.Screens["111"].navigationCallback = function()
  581. {
  582.     oGameFace.LeagueServerInterface.LoadLeagueInternal(0,"");
  583.     System.Session.setPostGameLeague( "", 0 );
  584.     System.Session.setPostGameNavigation( "1", nhlMsg("MAIN_MENU") );
  585.     return true;
  586. }
  587. System.GUI.Screens["113"]        = new Screen_Hash("113",     "fe/nhl/html/custom_teams.html",     "Team_Information.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  588.  
  589. System.GUI.Screens["112"]        = new Screen_Hash("112",     "fe/nhl/html/view_highlights.html",     "none",        "nhlNavArray",    "", "fe/NHL/images/background/view_highlights.jpg",                        false);
  590. System.GUI.Screens["112"].navigationCallback = function()
  591. {
  592.     oGameFace.LeagueServerInterface.LoadLeagueInternal(0,"");
  593.     System.Session.setPostGameLeague( "", 0 );
  594.     System.Session.setPostGameNavigation( "1", nhlMsg("MAIN_MENU") );
  595.     return true;
  596. }
  597.  
  598.  
  599. // 1100 - 1149 Game Setup Menus
  600.  
  601. System.GUI.Screens["1100"]        = new Screen_Hash("1100",     "fe/nhl/html/game_setup.html",     "Game_Setup.swf",        "nhlNavArray",    "GameSetupSchedule", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  602. System.GUI.Screens["1101"]        = new Screen_Hash("1101",     "fe/nhl/html/team_options.html",     "Starting_Lineup.swf",        "",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  603. System.GUI.Screens["1102"]        = new Screen_Hash("1102",     "fe/nhl/html/controller_config.html",     "Controller_Config.swf",        "",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  604.  
  605. // 111x: CoachOptions sub-items..
  606.  
  607. function allCheckedOutNavCallback()
  608. {
  609.     if( !oLeagueServer.LeagueDispatch.ProviderInterface.IsInSetup()
  610.             && oLeagueServer.LeagueDispatch.ManagerInterface.IsOnline()
  611.             && oLeagueServer.LeagueDispatch.ManagerInterface.CurrentTeam == -1 )
  612.     {
  613.         //then we're in an online league and all the teams are checked out..
  614.         oAudioInterface.PlayWarningSFX();
  615.         System.GUI.dialog.innerHTML = nhlMsg("ALL_CHECKED_OUT");
  616.         System.GUI.dialog.setSize( 400 , 120 );
  617.         System.GUI.dialog.align = "center";
  618.         System.GUI.dialog.addButton( "okay_button" , nhlMsg("OKAY", true) );
  619.         System.GUI.dialog.show( true );
  620.  
  621.         return false;
  622.     }
  623.     else
  624.     {
  625.         return true;
  626.     }
  627. }
  628.  
  629. System.GUI.Screens["1110"]        = new Screen_Hash("1110",     "fe/nhl/html/coaching_strategies.html",     "Strategies.swf",        "",    "", "fe/NHL/images/background/coaching_strategies.jpg",                        false);
  630. System.GUI.Screens["1110"].navigationCallback = allCheckedOutNavCallback;
  631.  
  632. System.GUI.Screens["1111"]        = new Screen_Hash("1111",     "fe/nhl/html/edit_lines.html",     "Edit_Lines.swf",        "",    "", "fe/NHL/images/background/edit_lines.jpg",                        false);
  633. System.GUI.Screens["1111"].navigationCallback = allCheckedOutNavCallback;
  634. System.GUI.Screens["1112"]        = new Screen_Hash("1112",     "fe/nhl/html/trade_create.html",     "Trade_Players.swf",        "",    "", "fe/NHL/images/background/trade.jpg",                        false);
  635.  
  636.  
  637. System.GUI.Screens["1113"]        = new Screen_Hash("1113",     "fe/nhl/html/view_rosters.html",     "Progress_Reports.swf",        "",    "", "fe/NHL/images/background/view_rosters.jpg",                        false);
  638. System.GUI.Screens["1114"]        = new Screen_Hash("1114",     "fe/nhl/html/manage_rosters.html",     "Manage_Rosters.swf",        "",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  639. System.GUI.Screens["1115"]        = new Screen_Hash("1115",     "fe/nhl/html/trade_create.html",     "Trade_Players.swf",        "",    "", "fe/NHL/images/background/trade.jpg",                        false);
  640.  
  641. // 112x: Options sub-items..
  642.  
  643. //System.GUI.Screens["1120"]        = new Screen_Hash("1120",     "fe/nhl/html/game_rules.html",     nhlMsg('CMN_GAME_RULES', true),        "",    "", "fe/NHL/images/background/options.jpg",                        false);
  644. System.GUI.Screens["1120"]        = new Screen_Hash("1120",     "fe/nhl/html/game_rules.html",     "Rules.swf",        "",    "",     "fe/NHL/images2/backgrounds/background_right.jpg",                            false);
  645. System.GUI.Screens["1121"]        = new Screen_Hash("1121",     "fe/nhl/html/display_options.html",     "Display_Options.swf",        "",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  646. System.GUI.Screens["1122"]        = new Screen_Hash("1122",     "fe/nhl/html/ai_options.html",     "AI_Options.swf",        "",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  647. System.GUI.Screens["1123"]        = new Screen_Hash("1123",     "fe/nhl/html/sound_options.html",     "Sound_Options.swf",        "",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  648. System.GUI.Screens["1124"]        = new Screen_Hash("1124",     "fe/nhl/html/game_options.html",     "Game_Options.swf",        "",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  649.  
  650. // 114x: Stats sub-items..
  651.  
  652. System.GUI.Screens["1140"]        = new Screen_Hash("1140",     "fe/nhl/html/player_stats.html",     "Player_Stats.swf",        "",    "", "fe/NHL/images/background/player_stats.jpg",                        false);
  653. System.GUI.Screens["1141"]        = new Screen_Hash("1141",     "fe/nhl/html/team_stats.html",     "Team_Stats.swf",        "",    "", "fe/NHL/images/background/player_stats.jpg",                        false);
  654.  
  655.  
  656. // 1200 - 1249 League Central Menus
  657. System.GUI.Screens["1200"]        = new Screen_Hash("1200",     "fe/nhl/html/franchise_central.html",     "Season_Central.swf",        "nhlNavArray",    "FranchiseCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  658.  
  659. // 121x: LeagueNews sub-items..
  660.  
  661. System.GUI.Screens["1210"]        = new Screen_Hash("1210",     "fe/nhl/html/team_streaks.html",     "none",        "",    "", "fe/NHL/images/background/streaks.jpg",                        false);
  662. System.GUI.Screens["1211"]        = new Screen_Hash("1211",     "fe/nhl/html/team_standings.html",     "League_Standings.swf",        "",    "", "" ,                        false);
  663. System.GUI.Screens["1212"]        = new Screen_Hash("1212",     "fe/nhl/html/team_trades.html",     "none",        "",    "", "fe/NHL/images/background/trade_history.jpg",                        false);
  664. System.GUI.Screens["1213"]        = new Screen_Hash("1213",     "fe/nhl/html/league_calendar.html",     "none",        "",    "", "fe/NHL/images/background/calendar.jpg",                        false);
  665. System.GUI.Screens["1214"]        = new Screen_Hash("1214",     "fe/nhl/html/playoff_tree.html",     "Playoff_Tree.swf",        "",    "", "fe/NHL/images/background/playoff_tree.jpg",                        false);
  666. System.GUI.Screens["1215"]        = new Screen_Hash("1215",     "fe/nhl/html/awards.html",     "Awards.swf",        "",    "", "fe/NHL/images/background/awards.jpg",                        false);
  667. System.GUI.Screens["1216"]        = new Screen_Hash("1216",     "fe/nhl/html/intl_tree.html",     "International_TournamentTree.swf",        "",    "", "fe/NHL/images/background/intl_tree.jpg",                        false);
  668. System.GUI.Screens["1217"]        = new Screen_Hash("1217",     "fe/nhl/html/elite_tree.html",     "Playoff_Tree.swf",        "",    "", "fe/NHL/images/background/intl_tree.jpg",                        false);
  669.  
  670.  
  671. // 122x: Commissioner sub-items..
  672.  
  673. System.GUI.Screens["1220"]        = new Screen_Hash("1220",     "fe/nhl/html/franchise_league_setup.html",     "none",    "",    "", "fe/NHL/images/background/franchise_setup.jpg",                        false);
  674. System.GUI.Screens["1221"]        = new Screen_Hash("1221",     "fe/nhl/html/sim_date.html",     "Simulate_ToDate.swf",        "",    "", "fe/NHL/images/background/sim_to_date.jpg",                        false);
  675. System.GUI.Screens["1222"]        = new Screen_Hash("1222",     "fe/nhl/html/user_control.html",     "User_Control.swf",        "",    "", "fe/NHL/images/background/trade_history.jpg",                        false);
  676.  
  677. System.GUI.Screens["1224"]        = new Screen_Hash("1224",     "fe/nhl/html/online_connection.html",     "Online_DirectConnectSetup.swf",        "nhlNavArray",    "JoinCreate", "fe/NHL/images/background/connection_setup.jpg"/*bkg*/,                        false);
  678. System.GUI.Screens["1224"].navigationCallback = function()
  679. {
  680.     if (oComm.IsCommAvailable())
  681.     {
  682.         // wait for a connection (commish)
  683.         // we need to go to a connection selection and commish create screen
  684.         if (oLeagueServer.LeagueDispatch.ManagerInterface.IsInCentral())
  685.         {
  686.             oLeagueServer.LeagueDispatch.ManagerInterface.ExitCentral();
  687.         }
  688.  
  689.         System.ScratchPad.nhlOnlineConnectionType = "commishLaunch";
  690.  
  691.         return true;
  692.     }
  693.  
  694.     return false;
  695. }
  696.  
  697.  
  698. System.GUI.Screens["1225"]        = new Screen_Hash("1225",     "fe/nhl/html/online_connection.html",     "none",        "nhlNavArray",    "JoinCreate", "fe/NHL/images/background/connection_setup.jpg"/*bkg*/,                        false);
  699. System.GUI.Screens["1225"].navigationCallback = function()
  700. {
  701.     if (oComm.IsCommAvailable())
  702.     {
  703.         // update the league (slave)
  704.         // we need to go to a connection selection and commish join screen
  705.         if (oLeagueServer.LeagueDispatch.ManagerInterface.IsInCentral())
  706.         {
  707.             oLeagueServer.LeagueDispatch.ManagerInterface.ExitCentral();
  708.         }
  709.  
  710.  
  711.         System.ScratchPad.nhlOnlineConnectionType = "slaveJoin";
  712.         System.ScratchPad.nhlJoinType = 2;    //CHT_UPDATE
  713.  
  714.         return true;
  715.     }
  716.  
  717.     return false;
  718. }
  719.  
  720. System.GUI.Screens["1290"]        = new Screen_Hash("1290",     "fe/nhl/html/franchise_central.html",     "Season_Central.swf",        "nhlNavArray",    "CommishFranchiseCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  721. System.GUI.Screens["1291"]        = new Screen_Hash("1291",     "fe/nhl/html/franchise_central.html",     "Season_Central.swf",        "nhlNavArray",    "SlaveFranchiseCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  722.  
  723. // 13xx: International sub-items..
  724.  
  725. System.GUI.Screens["1300"]        = new Screen_Hash("1300",     "fe/nhl/html/franchise_central.html",     "International_Central.swf",        "nhlNavArray",    "InternationalCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  726. System.GUI.Screens["1301"]        = new Screen_Hash("1301",     "fe/nhl/html/franchise_central.html",     "International_Central.swf",        "nhlNavArray",    "EliteCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  727. System.GUI.Screens["1320"]        = new Screen_Hash("1320",     "fe/nhl/html/intl_league_setup.html",     "none",        "",    "", "fe/NHL/images/background/franchise_setup.jpg",                        false);
  728.  
  729. System.GUI.Screens["1390"]        = new Screen_Hash("1390",     "fe/nhl/html/franchise_central.html",     "none",        "nhlNavArray",    "CommishIntlCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  730. System.GUI.Screens["1391"]        = new Screen_Hash("1391",     "fe/nhl/html/franchise_central.html",     "none",        "nhlNavArray",    "SlaveIntlCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  731.  
  732. // 14xx: playoff sub-items..
  733. System.GUI.Screens["1400"]        = new Screen_Hash("1400",     "fe/nhl/html/franchise_central.html",     "Playoff_Central.swf",        "nhlNavArray",    "PlayoffCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  734.  
  735. System.GUI.Screens["1490"]        = new Screen_Hash("1490",     "fe/nhl/html/franchise_central.html",     "Playoff_Central.swf",        "nhlNavArray",    "CommishPlayoffCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  736. System.GUI.Screens["1491"]        = new Screen_Hash("1491",     "fe/nhl/html/franchise_central.html",     "Playoff_Central.swf",        "nhlNavArray",    "SlavePlayoffCentral", "fe/NHL/images/background/franchise_central.jpg",                        false);
  737.  
  738. //////////////////////////////////////////////////////////////////
  739.  
  740. //mprjk: FIX - these Screens should be group more logically (ie: numerically) with those above..
  741. //mprjk: direct calls range is 1850-1899:
  742.  
  743. //GameSetupMatchup
  744. System.GUI.Screens["1849"]        = new Screen_Hash("1849",     "fe/nhl/html/game_setup.html",     "Online_GameSetup.swf",    "nhlNavArray",    "GameSetupMatchup", "",    false);
  745.  
  746. System.GUI.Screens["1850"]        = new Screen_Hash("1850",     "fe/nhl/html/game_setup.html",     "Online_GameSetup.swf",        "nhlNavArray",    "GameSetupOnline", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  747. System.GUI.Screens["1851"]        = new Screen_Hash("1851",     "fe/nhl/html/franchise_team_setup.html",     "Season_SelectTeams.swf",        "nhlNavArray",    "", "fe/NHL/images/background/franchise_team_select.jpg",                        false);
  748. System.GUI.Screens["1852"]        = new Screen_Hash("1852",     "fe/nhl/html/intl_team_setup.html",     "none",        "nhlNavArray",    "", "fe/NHL/images/background/franchise_team_select.jpg",                        false);
  749. System.GUI.Screens["1853"]        = new Screen_Hash("1853",     "fe/nhl/html/commissioner.html",     "none",        "nhlNavArray",    "", "fe/NHL/images/background/commissioner_server_status.jpg",                        false);
  750. System.GUI.Screens["1854"]        = new Screen_Hash("1854",     "fe/nhl/html/slave.html",     "none",        "nhlNavArray",    "", "fe/NHL/images/background/commissioner_team_checkout.jpg",                        false);
  751. System.GUI.Screens["1855"]        = new Screen_Hash("1855",     "fe/nhl/html/playoff_team_setup.html",     "Playoff_SelectTeams.swf",        "nhlNavArray",    "", "fe/NHL/images/background/playoff_team_select.jpg",                        false);
  752. System.GUI.Screens["1859"]        = new Screen_Hash("1859",     "fe/nhl/html/free_agents.html",     "Free_Agents.swf",        "nhlNavArray",    "", "fe/NHL/images/background/free_agent.jpg"/*bkg*/,                        false);
  753. System.GUI.Screens["1860"]        = new Screen_Hash("1860",     "fe/nhl/html/draft_round.html",     "Draft_Order.swf",        "nhlNavArray",    "", "fe/NHL/images/background/fantasy_draft.jpg"/*bkg*/,                        false);
  754.  
  755. System.GUI.Screens["1861"]        = new Screen_Hash("1861",     "fe/nhl/html/franchise_rule_setup.html",     "Season_RulesSetup.swf",        "nhlNavArray",    "", "fe/NHL/images/background/franchise_setup.jpg",                        false);
  756. System.GUI.Screens["1862"]        = new Screen_Hash("1862",     "fe/nhl/html/playoff_rule_setup.html",         "Playoff_RulesSetup.swf",        "nhlNavArray",    "", "fe/NHL/images/background/franchise_setup.jpg",                        false);
  757. System.GUI.Screens["1863"]        = new Screen_Hash("1863",     "fe/nhl/html/intl_rule_setup.html",         "none",                                "nhlNavArray",    "", "fe/NHL/images/background/franchise_setup.jpg",                        false);
  758. System.GUI.Screens["1864"]        = new Screen_Hash("1864",     "fe/nhl/html/dynasty_rule_setup.html",         "Dynasty_RulesSetup.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  759. System.GUI.Screens["1865"]        = new Screen_Hash("1865",     "fe/nhl/html/dynasty_gm_select.html",         "Select_GM.swf",                "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  760. System.GUI.Screens["1866"]        = new Screen_Hash("1866",     "fe/nhl/html/dynasty_team_select.html",     "Dynasty_SelectTeam.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  761. System.GUI.Screens["1867"]        = new Screen_Hash("1867",     "fe/nhl/html/dynasty_central.html",         "Dynasty_Central.swf",            "nhlNavArray",    "DynastyCentral", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  762. System.GUI.Screens["1890"]        = new Screen_Hash("1890",     "fe/nhl/html/dynasty_team_select2.html",     "Upgrades.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",                        false);
  763.  
  764.  
  765. System.GUI.Screens["1900"]        = new Screen_Hash("1900",     "fe/nhl/html/gm_office.html",             "GM_Office.swf",            "nhlNavArray",    "DynastyCentral", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  766. System.GUI.Screens["1901"]        = new Screen_Hash("1901",     "fe/nhl/html/gm_rankings.html",         "GM_Rankings.swf",        "nhlNavArray",    "DynastyCentral", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  767. System.GUI.Screens["1902"]        = new Screen_Hash("1902",     "fe/nhl/html/gm_upgrades.html",         "Upgrades.swf",        "nhlNavArray",    "DynastyCentral", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  768. System.GUI.Screens["1903"]        = new Screen_Hash("1903",     "fe/nhl/html/gm_finances.html",         "Finances.swf",        "nhlNavArray",    "DynastyCentral", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  769. System.GUI.Screens["1904"]        = new Screen_Hash("1904",     "fe/nhl/html/gm_player_progress.html",     "Progress_Reports.swf",    "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  770. System.GUI.Screens["1905"]        = new Screen_Hash("1905",     "fe/nhl/html/trade_create.html",     "Trade_Players.swf",    "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  771. System.GUI.Screens["1906"]        = new Screen_Hash("1906",     "fe/nhl/html/gm_free_agents.html",         "Free_Agents.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  772. System.GUI.Screens["1907"]        = new Screen_Hash("1907",     "fe/nhl/html/gm_contracts.html",         "Contracts.swf",        "nhlNavArray",    "DynastyCentral", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  773. System.GUI.Screens["1908"]        = new Screen_Hash("1908",     "fe/nhl/html/team_reports.html",         "Team_Reports.swf",        "nhlNavArray",    "DynastyCentral", "",    false);
  774. System.GUI.Screens["1909"]        = new Screen_Hash("1909",     "fe/nhl/html/box_scores.html",         "Box_Scores.swf",        "nhlNavArray",    "", "fe/NHL/images2/backgrounds/background_right.jpg",    false);
  775. System.GUI.Screens["1910"]        = new Screen_Hash("1910",     "fe/nhl/html/trophy_room.html",         "Trophy_Room.swf",        "nhlNavArray",    "", "",    false);
  776.  
  777. System.GUI.Screens["1868"]        = new Screen_Hash("1868",     "fe/nhl/html/online_connection.html",     "none",        "nhlNavArray",    "JoinCreate", "fe/NHL/images/background/connection_setup.jpg"/*bkg*/,                        false);
  778. System.GUI.Screens["1868"].navigationCallback = function()
  779. {
  780.     if (oComm.IsCommAvailable())
  781.     {
  782.         System.ScratchPad.nhlOnlineConnectionType = "slaveJoin";
  783.         System.ScratchPad.nhlJoinType = 1;    //CHT_JOIN
  784.  
  785.         return true;
  786.     }
  787.      else
  788.     {
  789.         return false;
  790.     }
  791. }
  792.  
  793. System.GUI.Screens["1869"]        = new Screen_Hash("1869",    "fe/nhl/html/online_connection.html",     "none",        "nhlNavArray",    "JoinCreate", "fe/NHL/images/background/connection_setup.jpg"/*bkg*/,                        false);
  794. System.GUI.Screens["1869"].navigationCallback = function()
  795. {
  796.     if (oComm.IsCommAvailable())
  797.     {
  798.         System.ScratchPad.nhlOnlineConnectionType = "leagueGame";
  799.  
  800.         return true;
  801.     }
  802.      else
  803.     {
  804.         return false;
  805.     }
  806. }
  807.  
  808. System.GUI.Screens["1870"]        = new Screen_Hash("1870",     "fe/nhl/html/fantasy_draft_team_setup.html",     "Draft_Order.swf",        "nhlNavArray",    "", "fe/NHL/images/background/fantasy_draft_position.jpg",                        false);
  809. System.GUI.Screens["1871"]        = new Screen_Hash("1871",     "fe/nhl/html/fantasy_draft_round.html",     "Fantasy_Draft.swf",        "nhlNavArray",    "", "fe/NHL/images/background/fantasy_draft.jpg",                        false);
  810.  
  811. System.GUI.Screens["1880"]        = new Screen_Hash("1880", "fe/nhl/html/rookie_draft.html", "Draft_Day.swf", "", "", "fe/NHL/images/background/rookie_draft_position.jpg", false);
  812.  
  813.  
  814. System.GUI.Screens["886"]        = new Screen_Hash("886",     "fe/nhl/html/create_player_select.html",     "Manage_Players.swf",        "",    "", "",                        false);
  815. System.GUI.Screens["886"].navigationCallback = function()
  816. {    
  817.     oGameFace.LeagueServerInterface.LoadLeagueInternal(0,"");
  818.     System.Session.setPostGameLeague( "", 0 );
  819.     System.Session.setPostGameNavigation( "1", nhlMsg("MAIN_MENU") );
  820.  
  821.     return true;
  822. }
  823.  
  824. System.GUI.Screens["8887"]        = new Screen_Hash("8887",     "fe/nhl/html/create_player.html",     "Add_Players.swf",        "",    "", "",                        false);
  825. System.GUI.Screens["8888"]        = new Screen_Hash("8888", "fe/nhl/html/import_created_players.html", "none", "", "", "fe/NHL/images/background/create_player_manage.jpg", false);
  826. System.GUI.Screens["8889"]        = new Screen_Hash("8889", "fe/nhl/html/manage_created_players.html", "none", "", "", "fe/NHL/images/background/create_player_manage.jpg", false);
  827. System.GUI.Screens["8890"]        = new Screen_Hash("8890",     "fe/nhl/html/create_player.html",     "none",        "",    "", "",                        false);
  828.  
  829. System.GUI.Screens["891"]        = new Screen_Hash("891",     "fe/nhl/html/international_menu.html",     "International_MainMenu.swf",        "",    "", "fe/NHL/images2/backgrounds/" + System.GUI.getTeamSkin() + "/main_menu_background_right.jpg",                        false);
  830. System.GUI.Screens["891"].navigationCallback = function()
  831. {
  832.     //leagueSelectNavCallback;
  833.     //top.document.frames["Editorial_Frame"].location.href = System.getInstallFolder() + "fe/nhl/html/international_menu.html";
  834.     return true;
  835. }
  836.  
  837. System.GUI.Screens["8892"]        = new Screen_Hash("8892",     "fe/nhl/html/scouting_reports.html",     "Scouting_Reports.swf",        "",    "", "",                        false);
  838. System.GUI.Screens["8893"]        = new Screen_Hash("8893",     "fe/nhl/html/draft_order.html",         "Draft_Order.swf",        "",    "", "",                        false);
  839.  
  840.  
  841. System.GUI.Screens["1892"]        = new Screen_Hash("1892",     "fe/nhl/html/matchup_create.html",         "none",    "",    "", "",    false);
  842. System.GUI.Screens["1893"]        = new Screen_Hash("1893",     "fe/nhl/html/matchup_join.html",         "none",    "",    "", "",    false);
  843. //mprjk: this has to be < 1000 in order to trigger a call to RestoreGameState!
  844. System.GUI.Screens["894"]        = new Screen_Hash("894",     "fe/nhl/html/return_easo.html",         "none",    "",    "", "",    false);
  845. System.GUI.Screens["1896"]        = new Screen_Hash("1896",     "fe/nhl/html/return_easo.html",         "none",    "",    "", "",    false);
  846. System.GUI.Screens["1896"].navigationCallback = function()
  847. {
  848.     oGameFace.CommInterface.ReportNoStart();
  849.     oGameFace.CommInterface.PurgeGameReporter();    
  850.        setTimeout(function() { System.GUI.navigate("894"); }, 110);
  851. }
  852. System.GUI.Screens["1897"]        = new Screen_Hash("1897",     "fe/nhl/html/return_easo.html",         "none",    "",    "", "",    false);
  853. System.GUI.Screens["1897"].navigationCallback = function()
  854. {
  855.     function exitConfirmed()
  856.     {
  857.         oGameFace.CommInterface.ReportNoStart();
  858.         oGameFace.CommInterface.PurgeGameReporter();    
  859.            setTimeout(function() { System.GUI.navigate("894"); }, 110);
  860.            //setTimeout(function() { System.GUI.navigate("1898"); }, 110);
  861.        }
  862.  
  863.     oAudioInterface.PlayWarningSFX();
  864.     System.GUI.dialog.innerHTML = nhlMsg("EASO_EXIT_CONFIRMATION");
  865.     System.GUI.dialog.setSize( 500, 200 );
  866.     System.GUI.dialog.align = "center";
  867.     System.GUI.dialog.addButton( "okay_button" , nhlMsg("OKAY", true), function(){ exitConfirmed(); } );
  868.     System.GUI.dialog.addButton( "cancel_button" , nhlMsg("CANCEL", true), function(){  System.GUI.nowBtns.showPlay(); return false; } );
  869.     System.GUI.dialog.show( true );
  870.  
  871. }
  872.  
  873. System.GUI.Screens["1898"]        = new Screen_Hash("1898",     "fe/nhl/html/return_easo.html",         "none",    "",    "", "",    false);
  874.  
  875. System.GUI.Screens["1899"]        = new Screen_Hash("1899",     "fe/nhl/html/return_easo.html",         "none",    "",    "", "",    false);
  876. System.GUI.Screens["1899"].navigationCallback = function()
  877. {
  878.     setTimeout(function() { System.GUI.navigate("894"); }, 110);
  879. }
  880.  
  881. System.GUI.Screens["1895"]        = new Screen_Hash("1895",     "fe/nhl/html/email_system.html",         "none",    "",    "", "",    false);
  882. System.GUI.Screens["9999"]        = new Screen_Hash("9999",     "fe/nhl/html/under_construction.html",     "none",    "",    "", "",    false);
  883.  
  884.