<?xml version="1.0" encoding="UTF-8"?>
<cup>
  <name>Copa del Rey</name>
  <short_name>Copa del Rey</short_name>
  <symbol>flag_spain.png</symbol>
  <sid>spain_cdr</sid>
  <last_week>45</last_week>
  <week_gap>2</week_gap>
  <property>national</property>

  <cup_rounds>
    <cup_round>
      <home_away>0</home_away>

      <choose_teams>
        <choose_team>
          <choose_team_sid>spain3a</choose_team_sid>
          <number_of_teams>10</number_of_teams>
          <start_idx>1</start_idx>
          <end_idx>20</end_idx>
	  <randomly>1</randomly>
        </choose_team>

        <choose_team>
          <choose_team_sid>spain3b</choose_team_sid>
          <number_of_teams>10</number_of_teams>
          <start_idx>1</start_idx>
          <end_idx>20</end_idx>
	  <randomly>1</randomly>
        </choose_team>

        <choose_team>
          <choose_team_sid>spain3c</choose_team_sid>
          <number_of_teams>10</number_of_teams>
          <start_idx>1</start_idx>
          <end_idx>20</end_idx>
	  <randomly>1</randomly>
        </choose_team>

        <choose_team>
          <choose_team_sid>spain3d</choose_team_sid>
          <number_of_teams>10</number_of_teams>
          <start_idx>1</start_idx>
          <end_idx>20</end_idx>
	  <randomly>1</randomly>
        </choose_team>
      </choose_teams>
      <byes>4</byes>
    <delay>-14</delay>
    </cup_round>

    <cup_round>
      <home_away>0</home_away>

      <choose_teams>
        <choose_team>
          <choose_team_sid>spain2</choose_team_sid>
          <number_of_teams>21</number_of_teams>
          <start_idx>1</start_idx>
          <end_idx>22</end_idx>
	  <randomly>1</randomly>
        </choose_team>
      </choose_teams>
      <byes>3</byes>
    <delay>-14</delay>
    </cup_round>

    <cup_round>
      <home_away>0</home_away>
      <byes>1</byes>
    <delay>-12</delay>
    </cup_round>

    <cup_round>
      <choose_teams>
        <choose_team>
          <choose_team_sid>spain1</choose_team_sid>
        </choose_team>
      </choose_teams>
    <delay>-11</delay>
    </cup_round>

    <cup_round>
    <delay>-6</delay>
    </cup_round>

    <cup_round>
    <delay>-7</delay>
    </cup_round>

    <cup_round>
    <delay>-7</delay>
    </cup_round>

    <cup_round>
      <home_away>0</home_away>
      <neutral>1</neutral>
    </cup_round>
  </cup_rounds>
</cup>