<?php

$url = $_SERVER['REQUEST_URI'];

function submenuURL($URL)
{
  global $isMobile;
  if($isMobile)
    print '#';
  else
    print "'" . $URL . "'";
}
?>

<div class ="MenuBar">
      <a href="index.php" title="Home">
        <img src="images/WGLogo.png" class="LogoButton" 
             onmouseover="this.src='images/WGLogoHighlight.png'" 
             onmouseout="this.src='images/WGLogo.png'" />
      </a>
      <div style="left: 163px; top: 48px; position: absolute;">
        <nav>
          <ul style="width: 600px;">
            <li style="margin-right: 0px;">
              <a href=<?php submenuURL("football.php"); ?>>
<?php if(!stripos($url, 'football')) { ?>
                <img src="images/Football.png" 
                     onmouseover="this.src='images/FootballHighlight.png'" 
                     onmouseleave="this.src='images/Football.png'"></img>
<?php } else { ?>
                <img src="images/FootballHighlight.png"></img>
<?php } ?>
              </a>
              <ul>
                <li>
                  <a href=<?php submenuURL("football.php?Team=All"); ?>>Teams</a>
                  <ul class="ulLL">
                    <li>
                      <a href=<?php submenuURL("football.php?Team=AFC"); ?>>AFC</a>
                      <ul class="ulLL">
                        <li>
                          <a href=<?php submenuURL("football.php?Team=AFCEast"); ?>>East</a>
                          <ul class="ulLL">
                            <li>
                              <a href="football.php?Team=BUF">BUF</a>
                            </li>
                            <li>
                              <a href="football.php?Team=MIA">MIA</a>
                            </li>
                            <li>
                              <a href="football.php?Team=NE">NE</a>
                            </li>
                            <li>
                              <a href="football.php?Team=NYJ">NYJ</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("football.php?Team=AFCNorth"); ?>>North</a>
                          <ul class="ulLL">
                            <li>
                              <a href="football.php?Team=BAL">BAL</a>
                            </li>
                            <li>
                              <a href="football.php?Team=CIN">CIN</a>
                            </li>
                            <li>
                              <a href="football.php?Team=CLE">CLE</a>
                            </li>
                            <li>
                              <a href="football.php?Team=PIT">PIT</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("football.php?Team=AFCSouth"); ?>>South</a>
                          <ul class="ulLL">
                            <li>
                              <a href="football.php?Team=HOU">HOU</a>
                            </li>
                            <li>
                              <a href="football.php?Team=IND">IND</a>
                            </li>
                            <li>
                              <a href="football.php?Team=JAC">JAC</a>
                            </li>
                            <li>
                              <a href="football.php?Team=TEN">TEN</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("football.php?Team=AFCWest"); ?>>West</a>
                          <ul class="ulLL">
                            <li>
                              <a href="football.php?Team=DEN">DEN</a>
                            </li>
                            <li>
                              <a href="football.php?Team=KC">KC</a>
                            </li>
                            <li>
                              <a href="football.php?Team=OAK">OAK</a>
                            </li>
                            <li>
                              <a href="football.php?Team=SD">SD</a>
                            </li>
                          </ul>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a href=<?php submenuURL("football.php?Team=NFC"); ?>>NFC</a>
                      <ul class="ulLL">
                        <li>
                          <a href=<?php submenuURL("football.php?Team=NFCEast"); ?>>East</a>
                          <ul class="ulLL">
                            <li>
                              <a href="football.php?Team=DAL">DAL</a>
                            </li>
                            <li>
                              <a href="football.php?Team=NYG">NYG</a>
                            </li>
                            <li>
                              <a href="football.php?Team=PHI">PHI</a>
                            </li>
                            <li>
                              <a href="football.php?Team=WAS">WAS</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("football.php?Team=NFCNorth"); ?>>North</a>
                          <ul class="ulLL">
                            <li>
                              <a href="football.php?Team=CHI">CHI</a>
                            </li>
                            <li>
                              <a href="football.php?Team=DET">DET</a>
                            </li>
                            <li>
                              <a href="football.php?Team=GB">GB</a>
                            </li>
                            <li>
                              <a href="football.php?Team=MIN">MIN</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("football.php?Team=NFCSouth"); ?>>South</a>
                          <ul class="ulLL">
                            <li>
                              <a href="football.php?Team=ATL">ATL</a>
                            </li>
                            <li>
                              <a href="football.php?Team=CAR">CAR</a>
                            </li>
                            <li>
                              <a href="football.php?Team=NO">NO</a>
                            </li>
                            <li>
                              <a href="football.php?Team=TB">TB</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("football.php?Team=NFCWest"); ?>>West</a>
                          <ul class="ulLL">
                            <li>
                              <a href="football.php?Team=ARI">ARI</a>
                            </li>
                            <li>
                              <a href="football.php?Team=LA">LA</a>
                            </li>
                            <li>
                              <a href="football.php?Team=SEA">SEA</a>
                            </li>
                            <li>
                              <a href="football.php?Team=SF">SF</a>
                            </li>
                          </ul>
                        </li>
                      </ul>
                    </li>
                  </ul>
                </li>
                <li>
                  <a href="football.php?Sort=Recent">Recent</a>
                </li>
                <li>
                  <a href="football.php?Sort=TopRated&Season=2016">Top Rated</a>
                </li>
              </ul>
            </li>

            <li style="margin-right: 0px;">
              <a href=<?php submenuURL("baseball.php"); ?>>
<?php if(!stripos($url, 'baseball')) { ?>
                <img src="images/Baseball.png" 
                     onmouseover="this.src='images/BaseballHighlight.png'" 
                     onmouseleave="this.src='images/Baseball.png'"></img>
<?php } else { ?>
                <img src="images/BaseballHighlight.png"></img>
<?php } ?>
              </a>
              <ul>
                <li>
                  <a href=<?php submenuURL("baseball.php?Team=All"); ?>>Teams</a>
                  <ul class="ulLL">
                    <li>
                      <a href=<?php submenuURL("baseball.php?Team=AL"); ?>>AL</a>
                      <ul class="ulLL">
                        <li>
                          <a href=<?php submenuURL("baseball.php?Team=ALEast"); ?>>East</a>
                          <ul class="ulLL">
                            <li>
                              <a href="baseball.php?Team=BAL">BAL</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=BOS">BOS</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=NYY">NYY</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=TB">TB</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=TOR">TOR</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("baseball.php?Team=ALCentral"); ?>>Central</a>
                          <ul class="ulLL">
                            <li>
                              <a href="baseball.php?Team=CLE">CLE</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=CWS">CWS</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=DET">DET</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=KC">KC</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=MIN">MIN</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("baseball.php?Team=ALWest"); ?>>West</a>
                          <ul class="ulLL">
                            <li>
                              <a href="baseball.php?Team=HOU">HOU</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=LAA">LAA</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=OAK">OAK</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=SEA">SEA</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=TEX">TEX</a>
                            </li>
                          </ul>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a href=<?php submenuURL("baseball.php?Team=NL"); ?>>NL</a>
                      <ul class="ulLL">
                        <li>
                          <a href=<?php submenuURL("baseball.php?Team=NLEast"); ?>>East</a>
                          <ul class="ulLL">
                            <li>
                              <a href="baseball.php?Team=ATL">ATL</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=MIA">MIA</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=NYM">NYM</a>
                            </li>
                            <li>
                              <a href="PHI">PHI</a>
                            </li>
                            <li>
                              <a href="WSH">WSH</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("baseball.php?Team=NLCentral"); ?>>Central</a>
                          <ul class="ulLL">
                            <li>
                              <a href="baseball.php?Team=CHC">CHC</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=CIN">CIN</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=MIL">MIL</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=PIT">PIT</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=STL">STL</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("baseball.php?Team=NLWest"); ?>>West</a>
                          <ul class="ulLL">
                            <li>
                              <a href="baseball.php?Team=ARI">ARI</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=COL">COL</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=LAD">LAD</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=SD">SD</a>
                            </li>
                            <li>
                              <a href="baseball.php?Team=SF">SF</a>
                            </li>
                          </ul>
                        </li>
                      </ul>
                    </li>
                  </ul>
                </li>
                <li>
                  <a href="baseball.php?Sort=Recent">Recent</a>
                </li>
                <li>
                  <a href="baseball.php?Sort=TopRated&Season=2017">Top Rated</a>
                </li>
              </ul>
            </li>

            <li style="margin-right: 0px;">
              <a href=<?php submenuURL("basketball.php"); ?>>
<?php if(!stripos($url, 'basketball')) { ?>
                <img src="images/Basketball.png" 
                     onmouseover="this.src='images/BasketballHighlight.png'" 
                     onmouseleave="this.src='images/Basketball.png'"></img>
<?php } else { ?>
                <img src="images/BasketballHighlight.png"></img>
<?php } ?>
              </a>
              <ul>
                <li>
                  <a href=<?php submenuURL("basketball.php?Team=All"); ?>>Teams</a>
                  <ul class="ulLL">
                    <li>
                      <a href=<?php submenuURL("basketball.php?Team=Eastern"); ?>>Eastern</a>
                      <ul class="ulLR">
                        <li>
                          <a href=<?php submenuURL("basketball.php?Team=Atlantic"); ?>>Atlantic</a>
                          <ul class="ulLL">
                            <li>
                              <a href="basketball.php?Team=BOS">BOS</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=BKN">BKN</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=NYK">NYK</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=PHI">PHI</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=TOR">TOR</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("basketball.php?Team=Central"); ?>>Central</a>
                          <ul class="ulLL">
                            <li>
                              <a href="basketball.php?Team=CHI">CHI</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=CLE">CLE</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=DET">DET</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=IND">IND</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=MIL">MIL</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("basketball.php?Team=Southeast"); ?>>Southeast</a>
                          <ul class="ulLL">
                            <li>
                              <a href="basketball.php?Team=ATL">ATL</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=CHA">CHA</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=MIA">MIA</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=ORL">ORL</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=WAS">WAS</a>
                            </li>
                          </ul>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a href=<?php submenuURL("basketball.php?Team=Western"); ?>>Western</a>
                      <ul class="ulLR">
                        <li>
                          <a href=<?php submenuURL("basketball.php?Team=Northwest"); ?>>Northwest</a>
                          <ul class="ulLL">
                            <li>
                              <a href="basketball.php?Team=DEN">DEN</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=MIN">MIN</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=OKC">OKC</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=POR">POR</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=UTA">UTA</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("basketball.php?Team=Pacific"); ?>>Pacific</a>
                          <ul class="ulLL">
                            <li>
                              <a href="basketball.php?Team=GSW">GSW</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=LAC">LAC</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=LAL">LAL</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=PHX">PHX</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=SAC">SAC</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("basketball.php?Team=Southwest"); ?>>Southwest</a>
                          <ul class="ulLL">
                            <li>
                              <a href="basketball.php?Team=DAL">DAL</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=HOU">HOU</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=MEM">MEM</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=NOP">NOP</a>
                            </li>
                            <li>
                              <a href="basketball.php?Team=SAS">SAS</a>
                            </li>
                          </ul>
                        </li>
                      </ul>
                    </li>
                  </ul>
                </li>
                <li>
                  <a href="basketball.php?Sort=Recent">Recent</a>
                </li>
                <li>
                  <a href="basketball.php?Sort=TopRated&Season=2015">Top Rated</a>
                </li>
              </ul>
            </li>
            
            <li style="margin-right: 0px;">
              <a href=<?php submenuURL("hockey.php"); ?>>
<?php if(!stripos($url, 'hockey')) { ?>
                <img src="images/Hockey.png" 
                     onmouseover="this.src='images/HockeyHighlight.png'" 
                     onmouseleave="this.src='images/Hockey.png'"></img>
<?php } else { ?>
                <img src="images/HockeyHighlight.png"></img>
<?php } ?>
              </a>
              <ul>
                <li>
                  <a href=<?php submenuURL("hockey.php?Team=All"); ?>>Teams</a>
                  <ul class="ulLR">
                    <li>
                      <a href=<?php submenuURL("hockey.php?Team=Eastern"); ?>>Eastern</a>
                      <ul class="ulLL">
                        <li>
                          <a href=<?php submenuURL("hockey.php?Team=Atlantic"); ?>>Atlantic</a>
                          <ul class="ulRR">
                            <li>
                              <a href="hockey.php?Team=BOS">BOS</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=BUF">BUF</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=DET">DET</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=FLA">FLA</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=MTL">MTL</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=OTT">OTT</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=TBL">TBL</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=TOR">TOR</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("hockey.php?Team=Metropolitan"); ?>>Metropolitan</a>
                          <ul class="ulRR">
                            <li>
                              <a href="hockey.php?Team=CAR">CAR</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=CBJ">CBJ</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=NJD">NJD</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=NYI">NYI</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=NYR">NYR</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=PHI">PHI</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=PIT">PIT</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=WSH">WSH</a>
                            </li>
                          </ul>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a href=<?php submenuURL("hockey.php?Team=Western"); ?>>Western</a>
                      <ul class="ulLL">
                        <li>
                          <a href=<?php submenuURL("hockey.php?Team=Central"); ?>>Central</a>
                          <ul class="ulRR">
                            <li>
                              <a href="hockey.php?Team=CHI">CHI</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=COL">COL</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=DAL">DAL</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=MIN">MIN</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=NSH">NSH</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=STL">STL</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=WPG">WPG</a>
                            </li>
                          </ul>
                        </li>
                        <li>
                          <a href=<?php submenuURL("hockey.php?Team=Pacific"); ?>>Pacific</a>
                          <ul class="ulRR">
                            <li>
                              <a href="hockey.php?Team=ANA">ANA</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=ARI">ARI</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=CGY">CGY</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=EDM">EDM</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=LAK">LAK</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=SJS">SJS</a>
                            </li>
                            <li>
                              <a href="hockey.php?Team=VAN">VAN</a>
                            </li>
                          </ul>
                        </li>
                      </ul>
                    </li>
                  </ul>
                </li>
                <li>
                  <a href="hockey.php?Sort=Recent">Recent</a>
                </li>
                <li>
                  <a href="hockey.php?Sort=TopRated&Season=2015">Top Rated</a>
                </li>
              </ul>
            </li>
          </ul>
        </nav>
      </div>
    </div>