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

  1. var  leftNavMenus_SC =
  2. {
  3.     clubs:        [new LeftNavItem("2560", scMsg("SC_CLUBS_1")), new LeftNavItem("2561", scMsg("SC_CLUB_FINDER_1")), new LeftNavItem("2562", scMsg("SC_CREATE_CLUB_1")) ],
  4.     clubsPlus:        [new LeftNavItem("2560", scMsg("SC_CLUBS_1")), new LeftNavItem("2563", scMsg("SC_MY_CLUB_1")),new LeftNavItem("2561", scMsg("SC_CLUB_FINDER_1")), new LeftNavItem("2562", scMsg("SC_CREATE_CLUB_1"))    ],
  5.     userClub:        [new LeftNavItem("2560", scMsg("SC_CLUBS_1"), true),    new LeftNavItem("2563", scMsg("SC_OTHER_CLUB")),new LeftNavItem("2564", scMsg("SC_MEMBERS_1")),new LeftNavItem("2572", scMsg("SC_PAST_TOURNAMENTS_1"))    ],
  6.     myClub:        [new LeftNavItem("2560", scMsg("SC_CLUBS_1"), true),    new LeftNavItem("2563", scMsg("SC_MY_CLUB_1")),new LeftNavItem("2564", scMsg("SC_MEMBERS_1")),new LeftNavItem("2569", scMsg("SC_TOURNAMENTS_1")),new LeftNavItem("2572", scMsg("SC_PAST_TOURNAMENTS_1"))],
  7.     gmClub:        [new LeftNavItem("2560", scMsg("SC_CLUBS_1"), true),    new LeftNavItem("2563", scMsg("SC_MY_CLUB_1")),new LeftNavItem("2564", scMsg("SC_MEMBERS_1")),new LeftNavItem("2569", scMsg("SC_TOURNAMENTS_1")),
  8.                         new LeftNavItem("2572", scMsg("SC_PAST_TOURNAMENTS_1")),
  9.                      [
  10.                          new LeftNavItem("", scMsg("SC_GM_OPTIONS_1"), true),
  11.                          new LeftNavItem("2566", scMsg("SC_SETTINGS_1")),
  12.                          new LeftNavItem("2567", scMsg("SC_MANAGE_MEMBERS_1")),
  13.                          new LeftNavItem("2568",  scMsg("SC_NEWS_1")),
  14.                                new LeftNavItem("2571",  scMsg("SC_CREATE_TOURNAMENT_1"))
  15.                      ]
  16.                 ],
  17.     myProfile:        [new LeftNavItem("2202", scMsg("SC_MY_PROFILE_1")),new LeftNavItem("2201",  scMsg("SC_SETTINGS_1"))],
  18.     elite:            [new LeftNavItem("2650", scMsg("SC_ELITE_ROSTER_1")),new LeftNavItem("2652",     scMsg("SC_CARD_BOOK_1")),
  19.                     new LeftNavItem("2653",     scMsg("SC_CARD_SHOP_1")),
  20.                     [
  21.                         new LeftNavItem("",     nhlMsg('COACH_OPTIONS'), true),
  22.                         new LeftNavItem("2700", nhlMsg('STRATEGY')),
  23.                         new LeftNavItem("2701", nhlMsg('EDITLINES')),
  24.                         new LeftNavItem("2702", nhlMsg('VIEW_ROSTERS'))
  25.                     ]
  26.                 ],
  27.     offlineMain:    [new LeftNavItem("1000", scMsg("SC_QUICK_GAME_1")),new LeftNavItem("1001", scMsg("SC_SEASON_1")),new LeftNavItem("1002", scMsg("SC_PLAYOFFS_1")),new LeftNavItem("1003", scMsg("SC_INTERNATIONAL_1")),new LeftNavItem("2001", scMsg("SC_ONLINE_GAME_1"))    ],
  28.       about:    [new LeftNavItem("2800", scMsg("SC_ABOUT_EASO_1")),new LeftNavItem("2801", scMsg("SC_PRIVACY_POLICY_1")),new LeftNavItem("2803", scMsg("SC_LEGAL_TERMS_1")),new LeftNavItem("2805", scMsg("SC_TOKENS_AND_LEVELS_1")),new LeftNavItem("2806", scMsg("SC_TOKEN_CONTESTS_1")),new LeftNavItem("2808", scMsg("SC_AOL_NAME_REG_AGREEMENT_1"))]
  29. };
  30. var top_menu_arrays                =
  31. {
  32.     menu_1:    [    new TopNavMenuItem("", nhlMsg("CMN_PLAY_NOW", true)),
  33.                 new TopNavMenuItem("", nhlMsg("CMN_SEASON", true)),
  34.                 new TopNavMenuItem("", nhlMsg("CMN_INTERNATIONAL", true)),
  35.                 new TopNavMenuItem("", nhlMsg("CMN_DYNASTY", true)),
  36.                 new TopNavMenuItem("", nhlMsg("CMN_PLAYOFF", true)),
  37.                 new TopNavMenuItem("", nhlMsg("CMN_FRONT_ONLINE", true))],
  38.  
  39.     menu_2:    [    new TopNavMenuItem("", nhlMsg("MY_CUSTOM_TEAMS", true)),
  40.                 new TopNavMenuItem("", nhlMsg("CMN_CREATE_PLAYER", true))],
  41.                 //new TopNavMenuItem("0000", nhlMsg("CMN_GM_HALL_FAME", true)),
  42.                 //new TopNavMenuItem("0000", nhlMsg("CMN_GM_HALL_FAME", true)),
  43.                 //new TopNavMenuItem("112", scMsg("SC_MY_HIGHLIGHTS", true))],
  44.  
  45.     menu_3:    [    //new TopNavMenuItem("1124", nhlMsg("GAMEPLAY", true)),
  46.                 //new TopNavMenuItem("1123", nhlMsg("SOUND", true)),
  47.                 new TopNavMenuItem("1122", nhlMsg("AI", true)),
  48.                 //new TopNavMenuItem("1120", scMsg("RULES", true)),
  49.                 new TopNavMenuItem("1121", nhlMsg("DISPLAY", true)),
  50.                 new TopNavMenuItem("1102", nhlMsg("CMN_CONFIG_CONTROLLER", true))]
  51.                 //new TopNavMenuItem("1125", nhlMsg("LANGUAGE", true))]
  52. };
  53. System.GUI.Screens            = new Array();
  54. System.GUI.Screens["1"]        = new Screen_Hash("1","fe/sc/html/home.html",scMsg("SC_MAIN_MENU",true),"","fe/NHL/images/background/main_menu.jpg",null,false);
  55. System.GUI.Screens["201"]    = new Screen_Hash("201","fe/sc/html/matchup/fe_multiplayer.html",scMsg("SC_MATCHUP",true),"","",    "fe/sc/images/matchup/bg_matchup_detail_view.jpg",true);
  56. System.GUI.Screens["220"]    = new Screen_Hash("220","fe/sc/profile/profile.html",scMsg("SC_PROFILE_DETAIL",true),"leftNavMenus_SC","myProfile","fe/sc/profile/images/bg_profile.jpg",true);
  57. System.GUI.Screens["560"]    = new Screen_Hash("560","fe/sc/clubs/home.html",scMsg("SC_CLUBS",true),"leftNavMenus_SC","clubs","fe/sc/images/clubs/bg_clubs_area.jpg",true);
  58. System.GUI.Screens["563"]    = new Screen_Hash("563","fe/sc/clubs/club_home.html",scMsg("SC_CLUBS",true),"leftNavMenus_SC","myClub","fe/sc/images/clubs/bg_club_home.jpg",true);
  59. System.GUI.Screens["650"]    = new Screen_Hash("650","fe/sc/elite/elite_team.html",scMsg("SC_MANAGE_ELITE_TEAM",true),"leftNavMenus_SC","elite","fe/sc/elite/images/background/bg_elite_team.jpg",true);
  60. System.GUI.Screens["700"]    = new Screen_Hash("700","fe/sc/registration/registration_page1.html",scMsg("SC_REGISTRATION",true),"","","fe/sc/registration/images/bg.jpg",false);
  61. System.GUI.Screens["701"]    = new Screen_Hash("701","fe/sc/registration/registration_page2.html",scMsg("SC_REGISTRATION",true),"","","fe/sc/registration/images/bg.jpg",false);
  62. System.GUI.Screens["702"]    = new Screen_Hash("702","fe/sc/registration/registration_page3.html",scMsg("SC_REGISTRATION",true),"","","fe/sc/registration/images/bg.jpg",false);
  63. System.GUI.Screens["703"]    = new Screen_Hash("703","fe/sc/registration/registration_page4.html",scMsg("SC_REGISTRATION",true),"","","fe/sc/registration/images/bg.jpg",false);
  64. System.GUI.Screens["704"]    = new Screen_Hash("704","fe/sc/registration/registration_success.html",scMsg("SC_REGISTRATION",true),"","","fe/sc/registration/images/bg.jpg",false);
  65. System.GUI.Screens["705"]    = new Screen_Hash("705","fe/sc/registration/forgotPassword.html",scMsg("SC_REGISTRATION",true),"","","fe/sc/registration/images/bg.jpg",    false);
  66. System.GUI.Screens["706"]    = new Screen_Hash("706","fe/sc/registration/forgotScreenName.html",scMsg("SC_REGISTRATION",true),"","","fe/sc/registration/images/bg.jpg",false);
  67. System.GUI.Screens["800"]    = new Screen_Hash("800","fe/sc/html/about/about.html",scMsg("SC_ABOUT_EASO",true),"leftNavMenus_SC","about","fe/sc/images/about/bg_about.jpg",false);
  68. System.GUI.Screens["900"]    = new Screen_Hash("900","fe/sc/community/community.html",scMsg("SC_COMMUNITY",true),"","", "fe/sc/images/community/community_bg.jpg", false);
  69. System.GUI.Screens["2010"]    = new Screen_Hash("2010","fe/sc/html/matchup/fe_multiplayer.html",scMsg("SC_QUICK_MATCHUP",true),"","",null,true);
  70. System.GUI.Screens["2001"]    = new Screen_Hash("2001","fe/sc/html/matchup/fe_multiplayer.html",scMsg("SC_MATCHUP",true),"","","fe/sc/images/matchup/bg_matchup_detail_view.jpg",true);
  71. System.GUI.Screens["2002"]    = new Screen_Hash("2002","",scMsg("SC_MATCHUP",true),"leftNavMenus_SC","scMatchup",    "fe/sc/images/matchup/bg_matchup_create_game.jpg",true);
  72. System.GUI.Screens["2202"]    = new Screen_Hash("2202","fe/sc/profile/profile.html",scMsg("SC_PROFILE_DETAIL",true),"leftNavMenus_SC","myProfile","fe/sc/profile/images/bg_profile.jpg",true);
  73. System.GUI.Screens["2201"]    = new Screen_Hash("2201","fe/sc/profile/edit_profile_card.html",    scMsg("SC_SETTINGS_1",true),"leftNavMenus_SC","myProfile","fe/sc/profile/images/bg_profile_settings.jpg",true);
  74. System.GUI.Screens["2650"]    = new Screen_Hash("2650","fe/sc/elite/elite_team.html",scMsg("SC_MANAGE_ELITE_TEAM",true),"leftNavMenus_SC","elite","fe/sc/elite/images/background/bg_elite_team.jpg",true);
  75. System.GUI.Screens["2651"]    = new Screen_Hash("2651","fe/sc/elite/edit_lines.html",nhlMsg('EDITLINES', true),"leftNavMenus_SC","elite",null,true);
  76. System.GUI.Screens["2652"]    = new Screen_Hash("2652","fe/sc/elite/card_book.html",scMsg("SC_VIEW_MY_CARDS",true),"leftNavMenus_SC","elite","fe/sc/elite/images/background/bg_card_book.jpg",true);
  77. System.GUI.Screens["2653"]    = new Screen_Hash("2653","fe/sc/elite/buy_cards.html",scMsg("SC_BUY_CARDS",true),"leftNavMenus_SC","elite","fe/sc/elite/images/background/bg_buy_cards.jpg",true);
  78. System.GUI.Screens["2666"]    = new Screen_Hash("2666","fe/sc/html/challenge/challenge.html",scMsg("SC_CHALLENGE",true),"","","fe/sc/images/challenge/bg.jpg",true);
  79. System.GUI.Screens["2560"]    = new Screen_Hash("2560","fe/sc/clubs/home.html",scMsg("SC_CLUBS",true),"leftNavMenus_SC","clubs","fe/sc/images/clubs/bg_clubs_area.jpg",true);
  80. System.GUI.Screens["2561"]    = new Screen_Hash("2561","fe/sc/clubs/find_club.html",scMsg("SC_CLUB_FINDER_1",true),"leftNavMenus_SC","clubs","fe/sc/images/clubs/bg_find_club.jpg",true);
  81. System.GUI.Screens["2562"]    = new Screen_Hash("2562","fe/sc/clubs/create_club.html",scMsg("SC_CREATE_CLUB_1",true),"leftNavMenus_SC","clubs","fe/sc/images/clubs/bg_create_club.jpg",true);
  82. System.GUI.Screens["2563"]    = new Screen_Hash("2563","fe/sc/clubs/club_home.html",scMsg("SC_CLUBS",true),"leftNavMenus_SC","myClub","fe/sc/images/clubs/bg_club_home.jpg",true);
  83. System.GUI.Screens["2564"]    = new Screen_Hash("2564","fe/sc/clubs/club_members.html",scMsg("SC_MEMBERS_1",true),"leftNavMenus_SC","myClub","fe/sc/images/clubs/bg_club_members.jpg",true);
  84. System.GUI.Screens["2565"]    = new Screen_Hash("2565","fe/sc/clubs/club_chat.html",scMsg("SC_MESSAGE_BOARD_1",true),"leftNavMenus_SC","myClub","fe/sc/images/clubs/bg_club_chat.jpg",true);
  85. System.GUI.Screens["2566"]    = new Screen_Hash("2566","fe/sc/clubs/club_gm_settings.html",scMsg("SC_SETTINGS_1",true),"leftNavMenus_SC","gmClub","fe/sc/images/clubs/bg_club_gm_settings.jpg",true);
  86. System.GUI.Screens["2567"]    = new Screen_Hash("2567","fe/sc/clubs/club_gm_members.html",scMsg("SC_MANAGE_MEMBERS_1",true),"leftNavMenus_SC","gmClub","fe/sc/images/clubs/bg_gm_menu_members.jpg",true);
  87. System.GUI.Screens["2568"]    = new Screen_Hash("2568","fe/sc/clubs/club_gm_news.html",scMsg("SC_NEWS_1",true),  "leftNavMenus_SC","gmClub","fe/sc/images/clubs/bg_club_gm_news.jpg",true);
  88. System.GUI.Screens["2569"]    = new Screen_Hash("2569","fe/sc/tournaments/tournaments.html",scMsg("SC_TOURNAMENTS",true),"leftNavMenus_SC","myClub","fe/sc/images/tournaments/tour_bg.jpg",true, scMsg("SC_TOURNAMENTS") );
  89. System.GUI.Screens["2570"]    = new Screen_Hash("2570","fe/sc/tournaments/tournaments_manage.html",scMsg("SC_MANAGE_TOURNAMENT",true),"leftNavMenus_SC",    "gmClub","fe/sc/images/tournaments/tour_manage_bg.jpg",true);
  90. System.GUI.Screens["2571"]    = new Screen_Hash("2571","fe/sc/tournaments/tournaments_create.html",scMsg("SC_CREATE_TOURNAMENT_1",true),"leftNavMenus_SC","gmClub","fe/sc/images/tournaments/tour_manage_bg.jpg",true);
  91. System.GUI.Screens["2572"]    = new Screen_Hash("2572","fe/sc/tournaments/tournaments_history.html",scMsg("SC_TOURNAMENTS_HISTORY",true),"leftNavMenus_SC","myClub","fe/sc/images/tournaments/tour_history_bg.jpg",true);
  92. System.GUI.Screens["2700"]    = new Screen_Hash("2700","fe/nhl/html/coaching_strategies.html",nhlMsg('TEAM_STRATEGY'),"leftNavMenus_SC","elite","fe/NHL/images/background/coaching_strategies.jpg",true);
  93. System.GUI.Screens["2701"]    = new Screen_Hash("2701", "fe/nhl/html/edit_lines.html",nhlMsg('EDITLINES'),"leftNavMenus_SC","elite", "fe/NHL/images/background/edit_lines.jpg",true);
  94. System.GUI.Screens["2702"]    = new Screen_Hash("2702","fe/nhl/html/view_rosters.html",nhlMsg('TEAM_ROSTER'),"leftNavMenus_SC","elite", "fe/NHL/images/background/view_rosters.jpg",true);
  95. System.GUI.Screens["2800"]    = new Screen_Hash("2800","fe/sc/html/about/about.html",scMsg("SC_ABOUT_EASO",true),"leftNavMenus_SC","about","fe/sc/images/about/bg_about.jpg", false);
  96. System.GUI.Screens["2801"]    = new Screen_Hash("2801","fe/sc/html/about/privacy.html",scMsg("SC_ABOUT_EASO",true),"leftNavMenus_SC","about","fe/sc/images/about/bg_about.jpg", false);
  97. System.GUI.Screens["2803"]    = new Screen_Hash("2803","fe/sc/html/about/legal_terms.html",scMsg("SC_ABOUT_EASO",true),"leftNavMenus_SC","about","fe/sc/images/about/bg_about.jpg", false);
  98. System.GUI.Screens["2805"]    = new Screen_Hash("2805","fe/sc/html/about/points.html",scMsg("SC_ABOUT_EASO",true),"leftNavMenus_SC","about","fe/sc/images/about/bg_about.jpg", false);
  99. System.GUI.Screens["2806"]    = new Screen_Hash("2806","fe/sc/html/about/weekly_contests.html",scMsg("SC_ABOUT_EASO",true),"leftNavMenus_SC","about","fe/sc/images/about/bg_about.jpg", false);
  100. System.GUI.Screens["2807"]    = new Screen_Hash("2807","fe/sc/html/about/credits.html",scMsg("SC_ABOUT_EASO",true),"leftNavMenus_SC","about","fe/sc/images/about/bg_about.jpg", false);
  101. System.GUI.Screens["2808"]    = new Screen_Hash("2808","fe/sc/html/about/aol.html",scMsg("SC_ABOUT_EASO",true),"leftNavMenus_SC","about",     "fe/sc/images/about/bg_about.jpg", false);
  102. //System.GUI.Screens["2809"]            = new Screen_Hash("2809",        "fe/sc/html/about/legal.html",                                       scMsg("SC_ABOUT_EASO",true),             "leftNavMenus_SC",            "about",     "fe/sc/images/about/bg_about.jpg", false);
  103. System.GUI.Screens["9500"]    = new Screen_Hash("9500","PRIZES","","","","",true);
  104. System.GUI.Screens["9600"]    = new Screen_Hash("9600","HELP","","","","",false);
  105. System.GUI.Screens["9700"]    = new Screen_Hash("9700","SUBSCRIBE","","","","",true);
  106.  
  107. System.GUI.Screens["560"].navigationCallback        = function()
  108. {
  109.     var myProfile    = System.Session.getProfile();
  110.     if (myProfile) {
  111.         if (myProfile.getClubID()) {
  112.             System.Session.setPostGameClubInfo(myProfile.getClubID());
  113.             this.setLeftNavArrayName("clubsPlus");
  114.         } else {
  115.             this.setLeftNavArrayName("clubs");
  116.         };
  117.     } else {
  118.         this.setLeftNavArrayName("clubs");
  119.     };
  120.     return true;
  121. };
  122.  
  123. System.GUI.Screens["563"].navigationCallback        = function(goingToScreenID)
  124. {
  125.     window.external.GameInterface.RestoreGameState();
  126.     System.GUI.nowBtns.hide();
  127.     window.external.PumpMessages();
  128.     var myProfile        = System.Session.getProfile();
  129.     var postGameInf    = System.Session.getPostGameClubInfo();
  130.     var whichClubNav    = "";
  131.  
  132.     if (myProfile) {
  133.         if (postGameInf && parseInt(goingToScreenID) == 2563) {
  134.             if (myProfile.getClubID() == postGameInf.id) {
  135.                 if (myProfile.isClubGM()) {
  136.                     whichClubNav = "gmClub";
  137.                  } else {
  138.                      whichClubNav = "myClub";
  139.                  };
  140.              } else {
  141.                  whichClubNav = "userClub";
  142.             };
  143.         } else {
  144.             if (myProfile.getClubID()) {
  145.                 System.Session.setPostGameClubInfo(myProfile.getClubID());
  146.                 if (myProfile.isClubGM()) {
  147.                     whichClubNav = "gmClub";
  148.                 } else {
  149.                     whichClubNav = "myClub";
  150.                 };
  151.             } else {
  152.                 System.GUI.navigate("560");
  153.                 myProfile = postGameInf = whichClubNav = null;
  154.                 return false;
  155.             };
  156.         };
  157.     } else {
  158.         System.GUI.showMenuDetour(function() { System.GUI.navigate(goingToScreenID); System.GUI.onLoginFromDetour = null; });
  159.         myProfile = postGameInf = whichClubNav = null;
  160.         return false;
  161.     };
  162.     var bShouldDoNav = true;
  163.     if (System.GUI.Screens[goingToScreenID] && System.GUI.currentScreenObj) {
  164.         if (System.GUI.currentScreenObj.getScreenSrc() == System.GUI.Screens[goingToScreenID].getScreenSrc()) {
  165.             if (System.GUI.currentScreenObj.getLeftNavArrayName() == whichClubNav) {
  166.                 bShouldDoNav = false;
  167.             } else {
  168.             };
  169.         } else {
  170.         };
  171.     } else {
  172.         System.GUI.currentScreenObj = System.GUI.Screens["1"];
  173.     };
  174.     if (bShouldDoNav) {
  175.         System.GUI.setLeftNav("leftNavMenus_SC", whichClubNav);
  176.         if (whichClubNav == "gmClub") {
  177.             top.checkTourNavType();
  178.         };
  179.         System.GUI.setLocation( this.getScreenSrc() );
  180.         System.GUI.setTitle( this.getTitle() );
  181.         System.GUI.setBackground( this.getBackgroundSrc() );
  182.         System.GUI.setLeftNavSelection("2563");
  183.         System.GUI.playTransition(true, false);
  184.         System.GUI.currentScreenObj = this;
  185.         System.GUI.currentScreenObj.setLeftNavArrayName(whichClubNav);
  186.     };
  187.     myProfile = postGameInf = whichClubNav = null;
  188.     return false;
  189. };
  190. System.GUI.Screens["650"].navigationCallback        = function()
  191. {
  192.     if (System.Session.getProfile()) {
  193.         if (  window.external.GameInterface.LeagueServerInterface ) {
  194.             window.external.GameInterface.LeagueServerInterface.LoadLeagueInternal(6,"");
  195.         };
  196.     };
  197.     return true;
  198. };
  199. System.GUI.Screens["700"].navigationCallback        = function()
  200. {
  201.     System.GUI.clearLeftNav();
  202.     return true;
  203. };
  204. System.GUI.Screens["800"].navigationCallback     = function()
  205. {
  206.     System.GUI.showMenuDetour();
  207.     /*
  208.     if (navigator.systemLanguage == "en-us" || navigator.systemLanguage == "en-ca") {
  209.           leftNavMenus_SC.about = [new LeftNavItem("2800", scMsg("SC_ABOUT_EASO_1")),new LeftNavItem("2801", scMsg("SC_PRIVACY_POLICY_1")),new LeftNavItem("2803", scMsg("SC_LEGAL_TERMS_1")),new LeftNavItem("2805", scMsg("SC_TOKENS_AND_LEVELS_1")),new LeftNavItem("2806", scMsg("SC_TOKEN_CONTESTS_1")),new LeftNavItem("2808", scMsg("SC_AOL_NAME_REG_AGREEMENT_1")) ] ;
  210.     } else {
  211.         leftNavMenus_SC.about = [new LeftNavItem("2800", scMsg("SC_ABOUT_EASO_1")),new LeftNavItem("2801", scMsg("SC_PRIVACY_POLICY_1")),new LeftNavItem("2803", scMsg("SC_LEGAL_TERMS_1")),new LeftNavItem("2805", scMsg("SC_TOKENS_AND_LEVELS_1")),new LeftNavItem("2808", scMsg("SC_AOL_NAME_REG_AGREEMENT_1")) ] ;
  212.     };
  213.     */
  214.     return false;
  215. };
  216. System.GUI.Screens["900"].navigationCallback    = function()
  217. {
  218.     System.GUI.showMenuDetour();
  219.     //System.GUI.clearLeftNav();
  220.     return false;
  221. };
  222. System.GUI.Screens["2002"].navigationCallback        = function()
  223. {
  224.     System.GUI.setBackground("fe/sc/images/matchup/bg_matchup_create_game.jpg");
  225.     top.document.frames['Editorial_Frame'].setContentDisplay(0);
  226.     return false;
  227. };
  228. System.GUI.Screens["2560"].navigationCallback    = function()
  229. {
  230.     var myProfile    = System.Session.getProfile();
  231.     if (myProfile) {
  232.         if (myProfile.getClubID()) {
  233.             System.Session.setPostGameClubInfo(myProfile.getClubID());
  234.             this.setLeftNavArrayName("clubsPlus");
  235.         } else {
  236.             this.setLeftNavArrayName("clubs");
  237.         };
  238.     } else {
  239.         this.setLeftNavArrayName("clubs");
  240.     };
  241.     return true;
  242. };
  243. System.GUI.Screens["2561"].navigationCallback    = function()
  244. {
  245.     var myProfile    = System.Session.getProfile();
  246.     if (myProfile) {
  247.         if (myProfile.getClubID()) {
  248.             System.Session.setPostGameClubInfo(myProfile.getClubID());
  249.             this.setLeftNavArrayName("clubsPlus");
  250.         } else {
  251.             this.setLeftNavArrayName("clubs");
  252.         };
  253.     } else {
  254.         this.setLeftNavArrayName("clubs");
  255.     };
  256.     return true;
  257. };
  258. System.GUI.Screens["2562"].navigationCallback    = function()
  259. {
  260.     var bReturn    = true;
  261.     var myProfile    = System.Session.getProfile();
  262.  
  263.     if ( myProfile.isClubGM() ) {
  264.            showNoCreateForYouDialog();
  265.          this.setLeftNavArrayName("clubs");
  266.          bReturn = false;
  267.     } else {
  268.         if (myProfile.getClubID()) {
  269.             System.Session.setPostGameClubInfo(myProfile.getClubID());
  270.             this.setLeftNavArrayName("clubsPlus");
  271.         } else {
  272.             this.setLeftNavArrayName("clubs");
  273.         };
  274.         bReturn = true;
  275.     };
  276.     myProfile = null;
  277.     return bReturn;
  278. };
  279. System.GUI.Screens["2563"].navigationCallback = System.GUI.Screens["563"].navigationCallback;
  280. System.GUI.Screens["2564"].navigationCallback = function()
  281. {
  282.     if (System.Session.getProfile().getClubID() == System.Session.getPostGameClubInfo().id )
  283.     {
  284.         if (System.Session.getProfile().isClubGM()) {
  285.             this.setLeftNavArrayName("gmClub");
  286.              top.checkTourNavType();
  287.          } else {
  288.              this.setLeftNavArrayName("myClub");
  289.         };
  290.     } else {
  291.         this.setLeftNavArrayName("userClub");
  292.     };
  293.     return true;
  294. };
  295. System.GUI.Screens["2565"].navigationCallback = function()
  296. {
  297.     if (System.Session.getProfile().getClubID() == System.Session.getPostGameClubInfo().id){
  298.         return true;
  299.     }else{
  300.           showNoAccessDialog();
  301.       };
  302.     return false;
  303. };
  304. System.GUI.Screens["2569"].navigationCallback = function()
  305. {
  306.     if (System.Session.getProfile().getClubID() == System.Session.getPostGameClubInfo().id){
  307.         if (System.Session.getProfile().isClubGM()) {
  308.             this.setLeftNavArrayName("gmClub");
  309.              top.checkTourNavType();
  310.          } else {
  311.              this.setLeftNavArrayName("myClub");
  312.         };
  313.         return true;
  314.     }else{
  315.           showNoAccessDialog();
  316.       };
  317.     return false;
  318. };
  319. System.GUI.Screens["2570"].navigationCallback = function()
  320. {
  321.     if (System.Session.getProfile().isClubGM()) {
  322.         this.setLeftNavArrayName("gmClub");
  323.         top.checkTourNavType();
  324.      } else {
  325.          this.setLeftNavArrayName("myClub");
  326.     };
  327.     return true;
  328. };
  329. System.GUI.Screens["2571"].navigationCallback = function()
  330. {
  331.     if (System.Session.getProfile().isClubGM()) {
  332.         this.setLeftNavArrayName("gmClub");
  333.         top.checkTourNavType();
  334.      } else {
  335.          this.setLeftNavArrayName("myClub");
  336.     };
  337.     return true;
  338. };
  339. System.GUI.Screens["2572"].navigationCallback = function()
  340. {
  341.     if (System.Session.getProfile().getClubID() == System.Session.getPostGameClubInfo().id )
  342.     {
  343.         if (System.Session.getProfile().isClubGM()) {
  344.             this.setLeftNavArrayName("gmClub");
  345.              top.checkTourNavType();
  346.          } else {
  347.              this.setLeftNavArrayName("myClub");
  348.         };
  349.     } else {
  350.         this.setLeftNavArrayName("userClub");
  351.     };
  352.     return true;
  353. };
  354. System.GUI.Screens["2666"].navigationCallback = function()
  355. {
  356.     System.GUI.clearLeftNav();
  357.     return true;
  358. };
  359. System.GUI.Screens["2700"].navigationCallback = function()
  360. {
  361.     if( EliteCache_HasNHLTeam() )
  362.     {
  363.         return true;
  364.     }else{
  365.         showNeedValidTeamDialog();
  366.         return false;
  367.     }
  368.     return false;
  369. }
  370. System.GUI.Screens["2701"].navigationCallback = function()
  371. {
  372.     if( EliteCache_HasNHLTeam() )
  373.     {
  374.         return true;
  375.     }else{
  376.         showNeedValidTeamDialog();
  377.         return false;
  378.     }
  379.     return false;
  380. }
  381. System.GUI.Screens["2702"].navigationCallback = function()
  382. {
  383.     if( EliteCache_HasNHLTeam() )
  384.     {
  385.         return true;
  386.     }else{
  387.         showNeedValidTeamDialog();
  388.         return false;
  389.     }
  390.     return false;
  391. };
  392. System.GUI.Screens["9500"].navigationCallback    = function()
  393. {
  394.     if (System.Session.getProfile()) {
  395.         window.external.SpawnCmd( EASOProps.get("prizes_url") + "lkey=" + System.Session.getUserLKey() + "&");
  396.     } else {
  397.         System.GUI.showMenuDetour(function() { window.external.SpawnCmd( EASOProps.get("prizes_url") + "lkey=" + System.Session.getUserLKey() + "&"); System.GUI.onLoginFromDetour = null; });
  398.     };
  399.     return false;
  400. };
  401. System.GUI.Screens["9600"].navigationCallback    = function()
  402. {
  403.     System.GUI.showMenuDetour();
  404.     //System.GUI.showHelpDialog();
  405.     return false;
  406. };
  407. System.GUI.Screens["9700"].navigationCallback    = function()
  408. {
  409.     System.GUI.showMenuDetour();
  410.     //window.external.SpawnCmd(EASOProps.get("subscribe_url") + "lkey=" + System.Session.getUserLKey() + "&");
  411.     return false;
  412. };
  413. function showNeedValidTeamDialog()
  414. {
  415.     System.GUI.playSFX("alert");
  416.     System.GUI.dialog.innerHTML     = scMsg("SC_NEED_SAVE_VALID_TEAM");
  417.     System.GUI.dialog.setSize(340, 97);
  418.     System.GUI.dialog.addButton("btn1", "OK");
  419.     System.GUI.dialog.show();
  420.     window.external.PumpMessages();
  421. };
  422. function showNoAccessDialog()
  423. {
  424.     System.GUI.playSFX("alert");
  425.     System.GUI.dialog.innerHTML= scMsg("SC_ONLY_CLUB_MEMBERS");
  426.     System.GUI.dialog.setSize(340, 97);
  427.     System.GUI.dialog.addButton("OKButton", scMsg("SC_OK"));
  428.     System.GUI.dialog.show();
  429.     window.external.PumpMessages();
  430. };
  431.  
  432. function showNoCreateForYouDialog()
  433. {
  434.     System.GUI.playSFX("alert");
  435.     System.GUI.dialog.innerHTML = "<p>" + scMsg("SC_ALREADY_GM_NO_CREATE_FOR_YOU") + "</p><p>"+ scMsg("SC_ALREADY_GM_NO_CREATE_DO_THIS") + "</p>";
  436.     System.GUI.dialog.addButton("OKButton", scMsg("SC_OK"), function(){ System.Session.getPostGameClubInfo().id = System.Session.getProfile().getClubID(); System.GUI.navigate(2566);} );
  437.     System.GUI.dialog.addButton("CancelButton", scMsg("SC_CANCEL"));
  438.     System.GUI.dialog.setSize(440, 212);
  439.     System.GUI.dialog.show();
  440.  };