// JavaScript Document

$(function() {
	
		// Grid View
		
		$('.teamback a').click(function() {
			if(
				$('#teamgrid').is(":visible"))
			{ 
			} else {
				$('.teambio').slideUp();
				$('#teamgrid').slideDown();
				//change the menu
				$('.teamback').slideUp();
				$('#teamnames').slideUp();
				$('#teamnamesmenu').slideDown();
				$('#teamlist a').fadeTo(0, 1);
				}
		});
		
		// By Names
		
		$('a#teamnamesmenu').click(function() {
			if(
				$('#teamnames').is(":visible"))
			{ 
			} else {
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});
		
		// wade		
		
		$('a.wct').click(function() {
			if(
				$('#biowct').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').show();
				$('#biojb').hide();
				$('#biobmc').hide();
				$('#biojl').hide();
				$('#biosam').hide();
				$('#biots').hide();
				$('#biodw').hide();
				$('#biokj').hide();
				$('#biojdg').hide();
				$('#biogh').hide();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.wct').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});
		
		// john		
		/*
		$('a.jb').click(function() {
			if(
				$('#biojb').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').show();
				$('#biobmc').hide();
				$('#biojl').hide();
				$('#biosam').hide();
				$('#biots').hide();
				$('#biodw').hide();
				$('#biokj').hide();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.jb').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});
		*/
		
		// brad		
		
		$('a.bmc').click(function() {
			if(
				$('#biobmc').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').hide();
				$('#biobmc').show();
				$('#biojl').hide();
				$('#biosam').hide();
				$('#biots').hide();
				$('#biodw').hide();
				$('#biokj').hide();
				$('#biojdg').hide();
				$('#biogh').hide();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.bmc').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});	
		
		// jay d grow
		
		$('a.jdg').click(function() {
			if(
				$('#biojdg').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').hide();
				$('#biobmc').hide();
				$('#biojl').hide();
				$('#biosam').hide();
				$('#biots').hide();
				$('#biodw').hide();
				$('#biokj').hide();
				$('#biojdg').hide();
				$('#biogh').hide();
				$('#biojdg').show();
				$('#biogh').hide();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.jdg').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});	
		
		// gerald holasek
		
		$('a.gh').click(function() {
			if(
				$('#biogh').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').hide();
				$('#biobmc').hide();
				$('#biojl').hide();
				$('#biosam').hide();
				$('#biots').hide();
				$('#biodw').hide();
				$('#biokj').hide();
				$('#biojdg').hide();
				$('#biogh').hide();
				$('#biojdg').hide();
				$('#biogh').show();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.gh').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});	
		
		// john leaf		
		
		$('a.jl').click(function() {
			if(
				$('#biojl').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').hide();
				$('#biobmc').hide();
				$('#biojl').show();
				$('#biosam').hide();
				$('#biots').hide();
				$('#biodw').hide();
				$('#biokj').hide();
				$('#biojdg').hide();
				$('#biogh').hide();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.jl').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});	
		
		// steve		
		
		$('a.sam').click(function() {
			if(
				$('#biosam').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').hide();
				$('#biobmc').hide();
				$('#biojl').hide();
				$('#biosam').show();
				$('#biots').hide();
				$('#biodw').hide();
				$('#biokj').hide();
				$('#biojdg').hide();
				$('#biogh').hide();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.sam').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});	
		
		// tim		
		
		$('a.ts').click(function() {
			if(
				$('#biots').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').hide();
				$('#biobmc').hide();
				$('#biojl').hide();
				$('#biosam').hide();
				$('#biots').show();
				$('#biodw').hide();
				$('#biokj').hide();
				$('#biojdg').hide();
				$('#biogh').hide();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.ts').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});	
		
		// dawn		
		
		$('a.dw').click(function() {
			if(
				$('#biodw').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').hide();
				$('#biobmc').hide();
				$('#biojl').hide();
				$('#biosam').hide();
				$('#biots').hide();
				$('#biokj').hide();
				$('#biodw').show();
				$('#biojdg').hide();
				$('#biogh').hide();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.dw').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});	
		
		// kay
		/*
		$('a.kj').click(function() {
			if(
				$('#biokj').is(":visible"))
			{ 
			} else {
				$('#teamgrid').hide();
				$('#biowct').hide();
				$('#biojb').hide();
				$('#biobmc').hide();
				$('#biojl').hide();
				$('#biosam').hide();
				$('#biots').hide();
				$('#biodw').hide();
				$('#biokj').show();
				//change the menu
				$('.teamback').slideDown();
				$('#teamlist a').fadeTo(0, 0.5);
				$('a.kj').fadeTo(0, 1);
				$('#teamnames').slideDown();
				$('#teamnamesmenu').slideUp();
				}
		});	
		*/
																
		// team grid
		
			
});