/* JavaScript Document */

/* this adds the specific links for each sport. keeping them seperate makes them easier to update. */
function addLinks()
{
		if (document.URL.toLowerCase( ).indexOf("/athletics/football/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Football</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("../facilities/martin_field.php","Facilities", true);
			template_link("../documents/FootballQuickFacts.pdf", "Quick Facts", true);
			template_link("records.html", "Team Records", true);
			template_link("alltime_records.html", "All-time Records", true);
			document.write('		<a href="http://www.dakstats.com/WebSync/Pages/Team/TeamPage.aspx?association=10&sg=MFB&team=6869&sea=NAIMFB_2007" target="_blank" style="color: #ffffff;">Current Stats</a><br/>');
			template_link("../documents/LittleGoldenBearsFootballCamp.pdf","Little Golden Bear Football Camp", true);
			template_link("../documents/2007Sling-n-ShootPassingCamp.pdf","Sling-n-Shoot Passing Camp", true);
			document.write('	</td>');
			document.write('</tr>');

		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/mens_basketball/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Men\'s Basketball</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("../facilities/baisi_athletic_center.php","Facilities", true);
			template_link("../documents/MensBasketballQuickFacts.pdf", "Quick Facts", true);
			//template_link("year_in_review.html", "Year in Review", true);
			document.write('		<a href="http://www.dakstats.com/WebSync/Pages/Team/TeamPage.aspx?association=10&sg=MBB&conference=NAIMBB1_MSC&division=NAIMBB1&team=6881" target="_blank" style="color: #ffffff;">Current Stats</a><br/>');
			
			template_link("../documents/LittleStarsCampBrochure2008.pdf", "Basketball Camp", true);
			document.write('	</td>');
			document.write('</tr>');

		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/jv_mens_basketball/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">JV Men\'s Basketball</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("team_schedule.php", "Team Schedule", true);
			document.write('	</td>');
			document.write('</tr>');

		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/baseball/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Baseball</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("../facilities/epling_field.php","Facilities",true);
			document.write('		<a href="http://www.dakstats.com/WebSync/Pages/Team/TeamPage.aspx?association=10&sg=MBA&conference=NAIMBA1_MSC&team=1858&sea=NAIMBA_2008" target="_blank" style="color: #ffffff;">Current Stats</a>');
			
			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/golf/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Golf</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("team_roster.php", "Team Roster", true);
			// template_link("records.html", "Team Records", true);
			document.write('		<a href="http://golfstat.com/" target="_blank" style="color: #ffffff;">Stats @ Golfstat</a>');
				
			document.write('	</td>');
			document.write('</tr>');
		}
		
		if (document.URL.toLowerCase( ).indexOf("/athletics/mens_cross_country/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Men\'s Cross Country</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("team_schedule.php", "Team Schedule", true);
			document.write('	</td>');
			document.write('</tr>');

		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/womens_cross_country/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Women\'s Cross Country</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("team_schedule.php", "Team Schedule", true);
			document.write('	</td>');
			document.write('</tr>');

		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/wrestling/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Wrestling</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("team_schedule.php", "Team Schedule", true);
			document.write('	</td>');
			document.write('</tr>');

		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/mens_tennis/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Men\'s Tennis</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("team_roster.php", "Team Roster", false);
			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/mens_soccer/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Men\'s Soccer</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("../facilities/martin_field.php","Facilities",true);
			document.write('		<a href="http://www.dakstats.com/WebSync/Pages/Team/TeamPage.aspx?association=10&sg=MSO&sea=NAIMSO_2007&conference=NAIMSO1_MSC&team=6866" target="_blank" style="color: #ffffff;">Current Stats</a>');

			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/womens_basketball/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Women\'s Basketball</span><br />');
			template_link("", "Home", true);
			template_link("team_roster.php", "Team Roster", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("../facilities/baisi_athletic_center.php","Facilities",true);
			template_link("../documents/WomensBasketballQuickFacts.pdf", "Quick Facts", true);
			//template_link("year_in_review.html", "Year in Review", true);
			document.write('		<a href="http://www.dakstats.com/WebSync/Pages/Team/TeamPage.aspx?association=10&sg=WBB&conference=NAIWBB1_MSC&team=6882&sea=NAIWBB_2007" target="_blank" style="color: #ffffff;">Current Stats</a>');
			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/jv_womens_basketball/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">JV Women\'s Basketball</span><br />');	
			
			template_link("index.php", "Home", true);
			template_link("team_schedule.php", "Team Schedule", true);
			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/womens_soccer/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Women\'s Soccer</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("team_roster.php", "Team Roster", true);
			document.write('		<a href="http://www.dakstats.com/WebSync/Pages/Team/TeamPage.aspx?association=10&sg=WSO&sea=NAIWSO_2007&conference=NAIWSO1_MSC&team=6867" target="_blank" style="color: #ffffff;">Current Stats</a>');

			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/womens_tennis/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Women\'s Tennis</span><br />');
			template_link("", "Home", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("team_roster.php", "Team Roster", true);
			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/softball/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Softball</span><br />');
			template_link("index.php", "Home", true);
			template_link("team_schedule.php", "Team Schedule", true);
			template_link("team_roster.php", "Team Roster", true);
			document.write('		<a href="http://www.dakstats.com/WebSync/Pages/Team/TeamPage.aspx?association=10&sg=WBA&conference=NAIWBA1_MSC&division=NAIWBA1&team=1864" target="_blank" style="color: #ffffff;">Current Stats</a>');
			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/volleyball/") > 0)
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Volleyball</span><br />');
			template_link("", "Home", true);
			template_link("team_roster.php", "Team Roster",true);
			template_link("team_schedule.php", "Team Schedule",true);
			template_link("../facilities/baisi_athletic_center.php","Facilities",true);
			document.write('		<a href="http://www.dakstats.com/WebSync/Pages/Team/TeamPage.aspx?association=10&sg=WVB&sea=NAIWVB_2007&conference=NAIWVB1_MSC&team=6868" target="_blank" style="color: #ffffff;">Current Stats</a>');

			document.write('	</td>');
			document.write('</tr>');
		}
		if (document.URL.toLowerCase( ).indexOf("/athletics/reverse_raffle/") > 0 ||document.URL.toLowerCase( ).indexOf("/athletics/reverse%5Fraffle/") > 0 )
		{
			document.write('<tr>');
			document.write('	<td>');
			document.write('		<span style="color: #003399;">Reverse Raffle</span><br />');
			template_link("../documents/IndividualTicketsForm.pdf", "Individual Tickets",true);
			template_link("../documents/CorporateSponsorship.pdf","Corporate Sponsorship",true);
			document.write('	</td>');
			document.write('</tr>');
		}


}