<div class="view-teams">
     <div class="teams-landing-graphic-container"><img alt="" src="sites/default/files/newtempteams_1.jpg" /></div>
    <div class="view-header">
		<p>Teams are made by Catapult members to fundraise together. Anytime you donate to a project, you can assign the funds to a Team's total.</p>
                <p>Join or create as many teams as you want.</p>
		<p class="links"><a class="colorbox-node" href="/content/guide-teams?width=600&amp;height=400">Guide for teams</a><a class="colorbox-node" href="/content/details-and-faqs?width=600&amp;height=400"> Details &amp; FAQs</a>
<?php  
global $user; 
$curatedBtn = '<a class="button" href="Javascript:void(0)" onClick="jQuery(\'#fake_teams_cat_drop_down\').val(\'Curators\').change();"><b>Curators</b> See their teams</a>';
if (user_is_logged_in()) { 
  if (!in_array('WD Partner', $user->roles)) {
    echo '<a class="button" href="/node/add/team"><b>Start a team</b> Invite your friends</a>'. $curatedBtn; 
  } else echo $curatedBtn;
} else  { 
  echo ' <a class="colorbox-load button" href="/colorbox/form/user_register_form?destination=node/add/team&width=980&height=580&iframe=\'true\'"><b>Start a team</b> Invite your friends</a>'. $curatedBtn; 
} 
?>
</p>
		
	</div>
</div>
