<?php
	$round_names = array('1'  => 'Round 1',
						 '2'  => 'Round 2',
						 'QF' => 'Quarterfinals',
						 'SF' => 'Semifinals',
						 'F'  => 'Final',
						 'S'  => '3rd/5th Place',
						 'SC' => 'Consolation',
						 'C' => '4th/6th Place');

?>


<!-- Sub Title -->
<div style="text-align: center; color: #990000; font-size: 13pt; line-height: 2em; font-weight: bold;">
	<?php
		if (is_null($information['bracket']->location))
		{
			$sub_title = date('F j', strtotime($information['bracket']->event->start_at)) . '-' . date('j', strtotime($information['bracket']->event->end_at));
		}	
		else
		{
			$sub_title = date('F j', strtotime($information['bracket']->event->start_at)) . '-' . date('j', strtotime($information['bracket']->event->end_at)) . ', ' . $information['bracket']->location->name;
		}
	?>

	<?php echo $sub_title; ?>

</div>

<div style="width: 150px; height: 50px; position: absolute; top: 550px; left: 50px; background-image: url(<?php echo asset('images/logos/brackets/OSAACentennial_89x50px.png'); ?>); background-repeat: no-repeat; background-position-x: center;"></div>

<div style="width: 150px; height: 50px; position: absolute; top: 550px; right: 50px; background-image: url(<?php echo asset('images/logos/brackets/OnPoint_111x50px.png'); ?>); background-repeat: no-repeat; background-position-x: center;">
</div>

<div style="width: 250px; height: 130px; position: absolute; top:600px; left: 390px; background-image: url(<?php echo asset('images/logos/brackets/OSAAStateChampionship_2018_250x130px.png'); ?>); background-repeat: no-repeat; background-position-x: center;">
</div>



<!-- Top Half -->
<div style="height: 500px;">

	<!-- Round 7, C -->
	<div class="round left" style="height: 500px; padding: 0 8px; margin-left: 20px;">
		
		<!-- Round Info -->
		<div class="info" style="margin-top: 16px;" data-round="<?php echo $information['bracket']->rounds[7]->round->id; ?>">
			<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>
				<div class="reports">
					<img src="<?php echo asset('/images/icons/control-down-icon_32px.png'); ?>" alt="" title="" />
					<ul>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[7]->round->id . '/contests'); ?>">Round Contests</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[7]->round->id . '/media-rosters'); ?>">Media Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[7]->round->id . '/program-rosters'); ?>">Program Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[7]->round->id . '/statcrew-rosters'); ?>">StatCrew Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[7]->round->id . '/packets'); ?>">Packets Listing</a></li>
					</ul>
				</div>
			<?php endif; ?>

			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[7]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[7]->event->start_at)); ?>
			</div>
		</div>

		<div class="spacer" style="height: 150px;"></div>

		<div class="connector right bottom" style="margin-top: 41px;"></div>			

		<!-- Matchups -->
		<?php for ($i = 34; $i < 35; $i++): ?>

			<?php echo BracketsController::getMatchup('left', $information['bracket']->matchups[$i]); ?>			

		<?php endfor; ?>
		

	</div>
	
	<!-- Round 6, SC -->
	<div class="round left" style="height: 500px; padding: 0 8px;">
		
		<!-- Round Info -->
		<div class="info" style="margin-top: 16px;" data-round="<?php echo $information['bracket']->rounds[6]->round->id; ?>">
			<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>
				<div class="reports">
					<img src="<?php echo asset('/images/icons/control-down-icon_32px.png'); ?>" alt="" title="" />
					<ul>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[6]->round->id . '/contests'); ?>">Round Contests</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[6]->round->id . '/media-rosters'); ?>">Media Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[6]->round->id . '/program-rosters'); ?>">Program Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[6]->round->id . '/statcrew-rosters'); ?>">StatCrew Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[6]->round->id . '/packets'); ?>">Packets Listing</a></li>
					</ul>
				</div>
			<?php endif; ?>

			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[6]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[6]->event->start_at)); ?>
			</div>
		</div>

		<div class="spacer" style="height: 48px;"></div>			


		<div class="connector left top" style="height: 101px; margin-top: 41px;"></div>			
		<div class="connector left bottom" style="height: 108px; margin-top: 144px;"></div>


		<!-- Matchups -->
		<?php for ($i = 32; $i < 34; $i++): ?>

			<div class="connector right bottom" style="margin-top: 41px;"></div>
			
			<?php echo BracketsController::getMatchup('left', $information['bracket']->matchups[$i]); ?>		
			
			<div class="spacer" style="height: 127px;"></div>						

		<?php endfor; ?>

	</div>

	<!-- Round 2, QF -->
	<div class="round left" style="height: 500px; padding: 0 8px;">

		<!-- Round Info -->
		<div class="info" style="margin-top: 16px;" data-round="<?php echo $information['bracket']->rounds[2]->round->id; ?>">
			<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>
				<div class="reports">
					<img src="<?php echo asset('/images/icons/control-down-icon_32px.png'); ?>" alt="" title="" />
					<ul>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[2]->round->id . '/contests'); ?>">Round Contests</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[2]->round->id . '/media-rosters'); ?>">Media Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[2]->round->id . '/program-rosters'); ?>">Program Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[2]->round->id . '/statcrew-rosters'); ?>">StatCrew Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[2]->round->id . '/packets'); ?>">Packets Listing</a></li>
					</ul>
				</div>
			<?php endif; ?>

			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[2]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[2]->event->start_at)); ?>
			</div>
		</div>

		<!-- Matchups -->
		<?php for ($i = 24; $i < 28; $i++): ?>
			
			<?php if ($i == 24 or $i == 26): ?>
				<div class="connector right top" style="height: 47px; margin-top: 41px;"></div>			
				<div class="connector right bottom" style="height: 47px; margin-top: 90px;"></div>		

				<div class="connector left top" style="height: 47px; margin-top: 41px;"></div>			
				<div class="connector left bottom" style="height: 47px; margin-top: 90px;"></div>		
			<?php endif; ?>

			<?php echo BracketsController::getMatchup('right', $information['bracket']->matchups[$i]); ?>
			
			<?php if ($i == 25): ?>
				<div class="spacer" style="height: 32px;"></div>
			<?php else: ?>
				<div class="spacer" style="height: 12px;"></div>
			<?php endif; ?>

		<?php endfor; ?>

	</div>

	<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[24]->matchup->id) or
	     !BracketsController::matchupHasTeams($information['bracket']->matchups[25]->matchup->id) or
	     !BracketsController::matchupHasTeams($information['bracket']->matchups[26]->matchup->id) or
	     !BracketsController::matchupHasTeams($information['bracket']->matchups[27]->matchup->id)): ?>		


		<!-- Group Letters -->
		<div style="position: absolute; height: 500px; left: 504px; width: 24px; text-align: center;">

			<div class="group_letter" style="margin-top: 85px;">
				<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[24]->matchup->id)): ?>
	    			A
	    		<?php else: ?>
	    			&nbsp;
	    		<?php endif; ?>
			</div>
			<div class="group_letter" style="margin-top: 78px;">
				<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[25]->matchup->id)): ?>
	    			B
	    		<?php else: ?>
	    			&nbsp;
	    		<?php endif; ?>
			</div>
			<div class="group_letter" style="margin-top: 98px;">
				<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[26]->matchup->id)): ?>
	    			C
	    		<?php else: ?>
	    			&nbsp;
	    		<?php endif; ?>
			</div>
			<div class="group_letter" style="margin-top: 78px;">
				<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[27]->matchup->id)): ?>
	    			D
	    		<?php else: ?>
	    			&nbsp;
	    		<?php endif; ?>
			</div>

		</div>
	<?php endif; ?>
	
	<!-- Round 3, SF -->
	<div class="round left" style="height: 500px; padding: 0 8px;">
		
		<!-- Round Info -->
		<div class="info" style="margin-top: 16px;" data-round="<?php echo $information['bracket']->rounds[3]->round->id; ?>">
			<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>
				<div class="reports">
					<img src="<?php echo asset('/images/icons/control-down-icon_32px.png'); ?>" alt="" title="" />
					<ul>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[3]->round->id . '/contests'); ?>">Round Contests</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[3]->round->id . '/media-rosters'); ?>">Media Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[3]->round->id . '/program-rosters'); ?>">Program Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[3]->round->id . '/statcrew-rosters'); ?>">StatCrew Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[3]->round->id . '/packets'); ?>">Packets Listing</a></li>
					</ul>
				</div>
			<?php endif; ?>

			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[3]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[3]->event->start_at)); ?>
			</div>
		</div>

		<div class="spacer" style="height: 48px;"></div>	

		<div class="connector right top" style="height: 101px; margin-top: 41px;"></div>			
		<div class="connector right bottom" style="height: 108px; margin-top: 144px;"></div>		

		<!-- Matchups -->
		<?php for ($i = 28; $i < 30; $i++): ?>

			<div class="connector left bottom" style="margin-top: 41px;"></div>

			<?php echo BracketsController::getMatchup('right', $information['bracket']->matchups[$i]); ?>
						
			<div class="spacer" style="height: 127px;"></div>						

		<?php endfor; ?>

	</div>
	
	<!-- Round 4, F -->
	<div class="round left" style="height: 500px; padding: 0 8px;">

		<!-- Round Info -->
		<div class="info" style="margin-top: 16px;" data-round="<?php echo $information['bracket']->rounds[4]->round->id; ?>">
			<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>
				<div class="reports">
					<img src="<?php echo asset('/images/icons/control-down-icon_32px.png'); ?>" alt="" title="" />
					<ul>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[4]->round->id . '/contests'); ?>">Round Contests</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[4]->round->id . '/media-rosters'); ?>">Media Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[4]->round->id . '/program-rosters'); ?>">Program Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[4]->round->id . '/statcrew-rosters'); ?>">StatCrew Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[4]->round->id . '/packets'); ?>">Packets Listing</a></li>
					</ul>
				</div>
			<?php endif; ?>

			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[4]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[4]->event->start_at)); ?>
			</div>
		</div>

		<div class="spacer" style="height: 150px;"></div>

		<div class="connector left bottom" style="margin-top: 41px;"></div>			

		<!-- Matchups -->
		<?php for ($i = 30; $i < 31; $i++): ?>

			<?php echo BracketsController::getMatchup('right', $information['bracket']->matchups[$i]); ?>
			
		<?php endfor; ?>

	</div>

	<!-- Round 5, S -->	
	<div class="round left" style="padding: 0 8px; position: absolute; left: 596px; top: 303px;">

		<!-- Round Info -->
		<div class="info" style="margin-bottom: -10px;" data-round="<?php echo $information['bracket']->rounds[5]->round->id; ?>">
			<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>
				<div class="reports" style="left: 60px;">
					<img src="<?php echo asset('/images/icons/control-down-icon_32px.png'); ?>" alt="" title="" />
					<ul>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[5]->round->id . '/contests'); ?>">Round Contests</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[5]->round->id . '/media-rosters'); ?>">Media Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[5]->round->id . '/program-rosters'); ?>">Program Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[5]->round->id . '/statcrew-rosters'); ?>">StatCrew Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[5]->round->id . '/packets'); ?>">Packets Listing</a></li>
					</ul>
				</div>
			<?php endif; ?>

			<div class="title" style="text-align: right;">
				<?php echo $round_names[$information['bracket']->rounds[5]->round->round_type]; ?>
			</div>
			<div class="date" style="text-align: right;">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[5]->event->start_at)); ?>
			</div>
		</div>		

		<div class="connector right dashed" style="margin-top: -21px; height: 130px;"></div>			
		<div class="connector right bottom" style="margin-top: 41px;"></div>			

		<!-- Matchups -->
		<?php for ($i = 31; $i < 32; $i++): ?>

			<?php echo BracketsController::getMatchup('right', $information['bracket']->matchups[$i]); ?>
			
		<?php endfor; ?>

	</div>



</div>


<!-- Bottom Half -->
<div style="height: 650px;">


	<!-- Round 0 (1), Left Side -->
	<div class="round left" style="height: 500px; padding: 0 8px;">
		
		<!-- Round Info -->
		<div class="info" style="margin-top: 16px;" data-round="<?php echo $information['bracket']->rounds[0]->round->id; ?>">
			<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>
				<div class="reports">
					<img src="<?php echo asset('/images/icons/control-down-icon_32px.png'); ?>" alt="" title="" />
					<ul>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[0]->round->id . '/contests'); ?>">Round Contests</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[0]->round->id . '/media-rosters'); ?>">Media Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[0]->round->id . '/program-rosters'); ?>">Program Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[0]->round->id . '/statcrew-rosters'); ?>">StatCrew Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[0]->round->id . '/packets'); ?>">Packets Listing</a></li>
					</ul>
				</div>
			<?php endif; ?>

			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[0]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[0]->event->start_at)); ?>
			</div>
		</div>

		<!-- Matchups -->
		<?php for ($i = 0; $i < 8; $i++): ?>

			<?php if ($i == 0): ?>
				<div class="connector right top" style="margin-top: 41px; height: 37px;"></div>
			<?php elseif ($i % 2 == 0): ?>
				<div class="connector right top" style="margin-top: 31px; height: 37px;"></div>
			<?php else: ?>
				<div class="connector right bottom" style="margin-top: -4px; height: 35px;"></div>	
			<?php endif; ?>
			
			<?php echo BracketsController::getMatchup('right', $information['bracket']->matchups[$i]); ?>			
			
		<?php endfor; ?>

	</div>

	<!-- Round 1 (2), Left Side -->
	<div class="round left" style="height: 500px; padding: 0 8px;">
		
		<!-- Round Info -->
		<div class="info" style="margin-top: 16px; margin-bottom: 47px;" data-round="<?php echo $information['bracket']->rounds[1]->round->id; ?>">
			<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>
				<div class="reports">
					<img src="<?php echo asset('/images/icons/control-down-icon_32px.png'); ?>" alt="" title="" />
					<ul>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[1]->round->id . '/contests'); ?>">Round Contests</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[1]->round->id . '/media-rosters'); ?>">Media Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[1]->round->id . '/program-rosters'); ?>">Program Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[1]->round->id . '/statcrew-rosters'); ?>">StatCrew Rosters</a></li>
						<li><a href="<?php echo url('/brackets/' . $information['bracket']->bracket->id . '/rounds/' . $information['bracket']->rounds[1]->round->id . '/packets'); ?>">Packets Listing</a></li>
					</ul>
				</div>
			<?php endif; ?>

			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[1]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[1]->event->start_at)); ?>
			</div>
		</div>

		<!-- Matchups -->
		<?php for ($i = 16; $i < 20; $i++): ?>

			<?php if ($i == 16): ?>		
				<div class="connector left bottom" style="margin-top: 31px;"></div>
				<div class="connector right top" style="margin-top: 31px; height: 66px;"></div>
				<div class="connector right bottom" style="margin-top: 98px; right:-6px;"></div>				
			<?php elseif ($i % 2 == 0): ?>				
				<div class="connector left bottom" style="margin-top: 41px;"></div>
				<div class="connector right top" style="margin-top: 41px; height: 66px;"></div>
				<div class="connector right bottom" style="margin-top: 108px; right:-6px;"></div>
			<?php else: ?>			
				<div class="connector left bottom" style="margin-top: 41px;"></div>
				<div class="connector right bottom" style="margin-top: -25px; height: 66px;"></div>
				<div class="connector right bottom" style="margin-top: -25px; right:-6px;"></div>
			<?php endif; ?>
			

			<?php echo BracketsController::getMatchup('right', $information['bracket']->matchups[$i]); ?>
			
			<div class="spacer" style="height: 64px;"></div>

		<?php endfor; ?>

	</div>


	<!-- Group Letters -->
	<div style="float: left; margin-left: 12px; height: 500px;">	

		<div class="group_letter" style="margin-top: 195px;">
			<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[24]->matchup->id)): ?>
    			A
    		<?php else: ?>
    			&nbsp;
    		<?php endif; ?>
		</div>
		<div class="group_letter" style="margin-top: 280px;">
			<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[25]->matchup->id)): ?>
    			B
    		<?php else: ?>
    			&nbsp;
    		<?php endif; ?>
		</div>

	</div>


	<!-- Round 0 (1), Right Side -->
	<div class="round right" style="height: 500px; padding: 0 8px;">		
		
		<!-- Round Info -->
		<div class="info" style="margin-top: 16px;">
			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[0]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[0]->event->start_at)); ?>
			</div>
		</div>

		<!-- Matchups -->
		<?php for ($i = 8; $i < 16; $i++): ?>

			<?php if ($i == 8): ?>
				<div class="connector left top" style="margin-top: 41px; height: 37px;"></div>
			<?php elseif ($i % 2 == 0): ?>
				<div class="connector left top" style="margin-top: 31px; height: 37px;"></div>
			<?php else: ?>
				<div class="connector left bottom" style="margin-top: -4px; height: 35px;"></div>	
			<?php endif; ?>

			<?php echo BracketsController::getMatchup('left', $information['bracket']->matchups[$i]); ?>	
			
		<?php endfor; ?>
	</div>

	<!-- Round 1 (2), Right Side -->
	<div class="round right" style="height: 500px; padding: 0 8px;">		
		
		<!-- Round Info -->
		<div class="info" style="margin-top: 16px; margin-bottom: 47px;">
			<div class="title">
				<?php echo $round_names[$information['bracket']->rounds[1]->round->round_type]; ?>
			</div>
			<div class="date">
				<?php echo date('M. j', strtotime($information['bracket']->rounds[1]->event->start_at)); ?>
			</div>
		</div>

		<!-- Matchups -->
		<?php for ($i = 20; $i < 24; $i++): ?>

			<?php if ($i == 20): ?>		
				<div class="connector right bottom" style="margin-top: 31px;"></div>
				<div class="connector left top" style="margin-top: 31px; height: 66px;"></div>
				<div class="connector left bottom" style="margin-top: 98px; left:-6px;"></div>				
			<?php elseif ($i % 2 == 0): ?>				
				<div class="connector right bottom" style="margin-top: 41px;"></div>
				<div class="connector left top" style="margin-top: 41px; height: 66px;"></div>
				<div class="connector left bottom" style="margin-top: 108px; left:-6px;"></div>
			<?php else: ?>			
				<div class="connector right bottom" style="margin-top: 41px;"></div>
				<div class="connector left bottom" style="margin-top: -25px; height: 66px;"></div>
				<div class="connector left bottom" style="margin-top: -25px; left:-6px;"></div>
			<?php endif; ?>

			<?php echo BracketsController::getMatchup('left', $information['bracket']->matchups[$i]); ?>
			
			<div class="spacer" style="height: 64px;"></div>

		<?php endfor; ?>
	</div>

	
	<!-- Group Letters -->
	<div style="float: right; margin-right: 12px; height: 500px;">
		<div class="group_letter" style="margin-top: 195px;">
			<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[26]->matchup->id)): ?>
    			C
    		<?php else: ?>
    			&nbsp;
    		<?php endif; ?>
		</div>
		<div class="group_letter" style="margin-top: 280px;">
			<?php if (!BracketsController::matchupHasTeams($information['bracket']->matchups[27]->matchup->id)): ?>
    			D
    		<?php else: ?>
    			&nbsp;
    		<?php endif; ?>
		</div>
	</div>

</div>


<div class="contest_viewer" style="display: none;"></div>


