// --------------------------------------------------------- Team Slide Function
$(document).ready(
	function() {
		$(".teamGalleryImage").append('<span class="sliderTop"></span><span class="sliderBottom"></span>\n');
		$(".teamGalleryImage").hover(
			function() {
				$("a img",this).stop().animate({"top":"-117px"},500);
				$(".sliderTop",this).stop().animate({"top":"-50px"},500);
				$(".sliderBottom",this).stop().animate({"bottom":"-50px"},500);
			},
			function() {
				$("a img",this).stop().animate({"top":"0px"},500);
				$(".sliderTop",this).stop().animate({"top":"-5px"},500);
				$(".sliderBottom",this).stop().animate({"bottom":"-5px"},500);
			}
		)
		$(".teamGalleryFieldLinks a").hover(
			function(){
				var theClass = $(this).attr("class");
				$(".teamGallery ."+theClass+" a img").stop().animate({"top":"-117px"},500);
				$(".teamGallery ."+theClass+" .sliderTop").stop().animate({"top":"-50px"},500);
				$(".teamGallery ."+theClass+" .sliderBottom").stop().animate({"bottom":"-50px"},500);

			},function(){
				var theClass = $(this).attr("class");
				$(".teamGallery ."+theClass+" a img").stop().animate({"top":"-0px"},500);
				$(".teamGallery ."+theClass+" .sliderTop").stop().animate({"top":"-5px"},500);
				$(".teamGallery ."+theClass+" .sliderBottom").stop().animate({"bottom":"-5px"},500);
			}
		)
		$(".teamGalleryFieldLinks a.freakout").hover(
			function(){
				$(".teamGallery li a img").stop().animate({"top":"-234px"},1000);
				$(".teamGallery li .sliderTop").stop().animate({"top":"-50px"},500);
				$(".teamGallery li .sliderBottom").stop().animate({"bottom":"-50px"},500);
			},function(){
				$(".teamGallery li a img").stop().animate({"top":"0px"},1000);
				$(".teamGallery li .sliderTop").stop().animate({"top":"-5px"},500);
				$(".teamGallery li .sliderBottom").stop().animate({"bottom":"-5px"},500);
			}
		)

	/*	$("a.teamDesign").hover(
			function(e) {
				$(".teamGalleryImage.teamDesign .sliderTop").stop().animate({"top":"-50px"},500);
				$(".teamGalleryImage.teamDesign .sliderBottom").stop().animate({"bottom":"-50px"},500);
				e.preventDefault();
			},
			function(e) {
				$(".teamGalleryImage.teamDesign .sliderTop").stop().animate({"top":"-5px"},500);
				$(".teamGalleryImage.teamDesign .sliderBottom").stop().animate({"bottom":"-5px"},500);
				e.preventDefault();
			}
		)
		$("a.teamSupport").hover(
			function(e) {
				$(".teamGalleryImage.teamSupport .sliderTop").stop().animate({"top":"-50px"},500);
				$(".teamGalleryImage.teamSupport .sliderBottom").stop().animate({"bottom":"-50px"},500);
				e.preventDefault();
			},
			function(e) {
				$(".teamGalleryImage.teamSupport .sliderTop").stop().animate({"top":"-5px"},500);
				$(".teamGalleryImage.teamSupport .sliderBottom").stop().animate({"bottom":"-5px"},500);
				e.preventDefault();
			}
		)
		$("a.teamFreakout").hover(
			function(e)	{
				$(".teamGalleryImage .sliderTop").stop().animate({"top":"-50px"},500);
				$(".teamGalleryImage .sliderBottom").stop().animate({"bottom":"-50px"},500);
				$(".teamGalleryImage .freakout").stop().fadeIn(500);
				e.preventDefault();
			},
			function(e)	{
				$(".teamGalleryImage .sliderTop").stop().animate({"top":"-5px"},500);
				$(".teamGalleryImage .sliderBottom").stop().animate({"bottom":"-5px"},500);
				$(".teamGalleryImage .freakout").stop().fadeOut(500);
				e.preventDefault();
			}
		) */
	}
);

