/* JavaScript Document - AATV by Antoine CADORET */

//var $j = jQuery.noConflict();
$(document).ready(function(){
	if($('ul.accordion li').length > 2){ $('ul.accordion').accordion(); }
	$('#video-gallery').codaSlider({autoHeight:false});
	$('.video-gallery .panel div span').css('display', 'none');
	$('.archives_year').next().hide();
	$('.archives_year').click(function(){
		$(this).toggleClass('archives_year_active').next().slideToggle('slow');
		return false;
	});
	var sudoSlider = $('#random').sudoSlider({
		vertical:true,
		auto:true,
		continuous:true,
		prevNext:false
	});
});
$(function(){
	$('.video-gallery .panel div a').hover(function(){
		$(this).children('span').fadeIn();
	}, function(){
		$(this).children('span').fadeOut();
	})
});
$(function(){
	$("a[rel^='video']").prettyPhoto();
	$("a[rel^='slideshow']").prettyPhoto({slideshow:5000, autoplay_slideshow:true});
});
