<?xml version="1.0" encoding="UTF-8"?>
<cup>
  <name>Scottish FA Cup</name>
  <short_name>FA Cup</short_name>
  <symbol>flag_scot_facup.png</symbol>
  <sid>scotland_fa</sid>
  <last_week>48</last_week>
  <week_gap>4</week_gap>
  <property>national</property>

  <cup_rounds>
    <cup_round>
        <round_name>Preliminary Round 1</round_name>
        <home_away>0</home_away>
        <replay>1</replay>
        <byes>1</byes>
        <delay>-1</delay>
        <choose_teams>
            <choose_team>
                <choose_team_sid>scotland7</choose_team_sid>
                <number_of_teams>2</number_of_teams>
                <start_idx>1</start_idx>
                <end_idx>32</end_idx>
                <randomly>1</randomly>
            </choose_team>
            <choose_team>
                <choose_team_sid>scotland6</choose_team_sid>
            </choose_team>
        </choose_teams>
    </cup_round>
      
    <cup_round>
        <round_name>Preliminary Round 2</round_name>
        <home_away>0</home_away>
        <replay>1</replay>
        <byes>0</byes>
        <delay>-1</delay>
    </cup_round>
      
    <cup_round>
        <round_name>1st Round</round_name>
        <home_away>0</home_away>
        <replay>1</replay>
        <byes>0</byes>
        <delay>-1</delay>
        <choose_teams>
            <choose_team>
                <choose_team_sid>scotland5a</choose_team_sid>
                <number_of_teams>13</number_of_teams>
                <start_idx>4</start_idx>
                <end_idx>16</end_idx>
            </choose_team>
            <choose_team>
                <choose_team_sid>scotland5b</choose_team_sid>
                <number_of_teams>16</number_of_teams>>
                <start_idx>2</start_idx>
                <end_idx>17</end_idx>
            </choose_team>
        </choose_teams>
    </cup_round>

    <cup_round>
        <round_name>2nd Round</round_name>
        <home_away>0</home_away>
        <replay>1</replay>
        <byes>0</byes>
        <choose_teams>
            <choose_team>
                <choose_team_sid>scotland4</choose_team_sid>>
            </choose_team>
            <choose_team>
                <choose_team_sid>scotland5a</choose_team_sid>
                <number_of_teams>3</number_of_teams>
                <start_idx>1</start_idx>
                <end_idx>3</end_idx>
            </choose_team>
            <choose_team>
                <choose_team_sid>scotland5b</choose_team_sid>
                <number_of_teams>1</number_of_teams>>
                <start_idx>1</start_idx>
                <end_idx>1</end_idx>
            </choose_team>
        </choose_teams>
    </cup_round>

    <cup_round>
        <round_name>3rd Round</round_name>
        <home_away>0</home_away>
        <replay>1</replay>
        <byes>0</byes>
        <delay>-1</delay>
        <choose_teams>
            <choose_team>
                <choose_team_sid>scotland2</choose_team_sid>>
                <number_of_teams>6</number_of_teams>
                <start_idx>5</start_idx>
                <end_idx>10</end_idx>
            </choose_team>
            <choose_team>
                <choose_team_sid>scotland3</choose_team_sid>
            </choose_team>
        </choose_teams>
    </cup_round>

    <cup_round>
        <round_name>4th Round</round_name>
        <home_away>0</home_away>
        <replay>1</replay>
        <byes>0</byes>
        <delay>-3</delay>
        <choose_teams>
            <choose_team>
                <choose_team_sid>scotland1</choose_team_sid>>
            </choose_team>
            <choose_team>
                <choose_team_sid>scotland2</choose_team_sid>
                <number_of_teams>4</number_of_teams>
                <start_idx>1</start_idx>
                <end_idx>4</end_idx>
            </choose_team>
        </choose_teams>
    </cup_round>

    <cup_round>
		<round_name>5th Round</round_name>
		<home_away>0</home_away>
		<replay>1</replay>
		<delay>-2</delay>
    </cup_round>

    <cup_round>
        <round_name>Quarter Final</round_name>
        <home_away>0</home_away>
        <replay>1</replay>
        <delay>-2</delay>
    </cup_round>

    <cup_round>
        <round_name>Semi Final</round_name>
        <home_away>0</home_away>
        <neutral>1</neutral>
        <delay>-3</delay>
    </cup_round>

    <cup_round>
        <round_name>Final</round_name>
        <home_away>0</home_away>
        <neutral>1</neutral>
        <delay>1</delay>
    </cup_round>
    
  </cup_rounds>
  
</cup>
