
$(document).ready(function(){

	$(function() {
		$('ul.history-nav li:not(.active)').hover(function(){
			$(this).find('dl').animate({top:'0'},{queue:false,duration:100});
		}, function(){
			$(this).find('dl').animate({top:'69px'},{queue:false,duration:100});
		});
	});
	$(function() {
		$('div.b-boy-gallery').hover(function(){
			$(this).find('ul.media-thumbs').animate({bottom:'0'},{queue:false,duration:100});
		}, function(){
			$(this).find('ul.media-thumbs').animate({bottom:'-69px'},{queue:false,duration:100});
		});
		
	});
		
	$("ul.history-nav li dl dd:last-child, ul.history-nav li:last-child, div.comment-list ul li:last-child, div.news-article-list-inner div.article:last-child").each(function(){
      $(this).addClass("last");
	});
	
	$('div.single-elimination div.battle').hover(
		function(){
			$(this).addClass('active');
		},
		function(){
			$(this).removeClass('active');
		}
	);

	
	$('#video-carousel ul').bxSlider({
		displaySlideQty: 5
	
	});
	
	$('#photo-carousel ul').bxSlider({
		displaySlideQty: 5
	});
	
	//When page loads...
	//$("div.media-gallery-inner div.media").hide(); //Hide all content
	//$("div.media-gallery-inner ul.media-thumbs li:first a").addClass("active").show(); //Activate first tab
	//$("div.media-gallery-inner div.media:first").show(); //Show first tab content

	//On Click Event
	//$("div.media-gallery-inner ul.media-thumbs li a").click(function() {
		//$("div.media-gallery-inner ul.media-thumbs li a").removeClass("active"); //Remove any "active" class
		//$(this).addClass("active"); //Add "active" class to selected tab
		//$("div.media-gallery-inner div.media").hide(); //Hide all tab content
		//var activeTab = $(this).attr("href"); //Find the href attribute value to identify the active tab + content
		//$("iframe").attr("src", activeTab)
		//$(activeTab).fadeIn(); //Fade in the active ID content
		//return false;
	//});
	
	
	

});

