$(document).ready(function() {

$('#box1').css('margin-top', -$('#box1').height()/2);
$('#box1').height()/2; /* Hack for IE 6 */
																	  
/* Sting Team Bio*/
$('#MattVanCise').click(function() {
	toggleSelect();
	$('#wrapper1').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box1');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box1 .close').click(function() {
	toggleSelect();
	$('#wrapper1').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper1').click(function(event) {
	if(event.target == this) {
		$('#box1 .close').trigger('click');
	}
});


$('#Sadler').click(function() {
	toggleSelect();
	$('#wrapper2').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box2');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box2 .close').click(function() {
	toggleSelect();
	$('#wrapper2').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper2').click(function(event) {
	if(event.target == this) {
		$('#box2 .close').trigger('click');
	}
});

$('#Crabtree').click(function() {
	toggleSelect();
	$('#wrapper3').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box3');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box3 .close').click(function() {
	toggleSelect();
	$('#wrapper3').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper3').click(function(event) {
	if(event.target == this) {
		$('#box3 .close').trigger('click');
	}
});

$('#Benefield').click(function() {
	toggleSelect();
	$('#wrapper4').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box4');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box4 .close').click(function() {
	toggleSelect();
	$('#wrapper4').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper4').click(function(event) {
	if(event.target == this) {
		$('#box4 .close').trigger('click');
	}
});

$('#Ellis').click(function() {
	toggleSelect();
	$('#wrapper5').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box5');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box5 .close').click(function() {
	toggleSelect();
	$('#wrapper5').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper5').click(function(event) {
	if(event.target == this) {
		$('#box5 .close').trigger('click');
	}
});

$('#Johnston').click(function() {
	toggleSelect();
	$('#wrapper6').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box6');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box6 .close').click(function() {
	toggleSelect();
	$('#wrapper6').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper6').click(function(event) {
	if(event.target == this) {
		$('#box6 .close').trigger('click');
	}
});

$('#Oliver').click(function() {
	toggleSelect();
	$('#wrapper7').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box7');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box7 .close').click(function() {
	toggleSelect();
	$('#wrapper7').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper7').click(function(event) {
	if(event.target == this) {
		$('#box7 .close').trigger('click');
	}
});

$('#Williamson').click(function() {
	toggleSelect();
	$('#wrapper8').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box8');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box8 .close').click(function() {
	toggleSelect();
	$('#wrapper8').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper8').click(function(event) {
	if(event.target == this) {
		$('#box8 .close').trigger('click');
	}
});

$('#Woods').click(function() {
	toggleSelect();
	$('#wrapper9').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box9');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box9 .close').click(function() {
	toggleSelect();
	$('#wrapper9').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper9').click(function(event) {
	if(event.target == this) {
		$('#box9 .close').trigger('click');
	}
});


$('#Sturgeon').click(function() {
	toggleSelect();
	$('#wrapper10').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box10');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box10 .close').click(function() {
	toggleSelect();
	$('#wrapper10').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper10').click(function(event) {
	if(event.target == this) {
		$('#box10 .close').trigger('click');
	}
});

$('#Isabelle').click(function() {
	toggleSelect();
	$('#wrapper11').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box11');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box11 .close').click(function() {
	toggleSelect();
	$('#wrapper11').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper11').click(function(event) {
	if(event.target == this) {
		$('#box11 .close').trigger('click');
	}
});

$('#Hoone').click(function() {
	toggleSelect();
	$('#wrapper12').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box12');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box12 .close').click(function() {
	toggleSelect();
	$('#wrapper12').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper12').click(function(event) {
	if(event.target == this) {
		$('#box12 .close').trigger('click');
	}
});
$('#Day').click(function() {
	toggleSelect();
	$('#wrapper13').css('filter', 'alpha(opacity=50)').fadeIn();
	var box = $('#box13');
	box.css('margin-top', -box.height()/2).slideDown();
	return false;
});

$('#box13 .close').click(function() {
	toggleSelect();
	$('#wrapper13').fadeOut();
	$(this).parent().slideUp();
	return false;
});

$('#wrapper13').click(function(event) {
	if(event.target == this) {
		$('#box13 .close').trigger('click');
	}
});

/* Fix for IE 6 */
function toggleSelect() {
	if($.browser.version == 6.0) {
		var selects = $('select');
		if(selects.filter(':visible').length > 0) {
			selects.css('display', 'none');
		} else {
			selects.css('display', 'block');
		}
	}
}
/* Fix for IE 6 */



});
