$(document).ready(function(){
	$('.film_toggle').toggle(
		function(){
			$(this).next().slideDown(function(){
				$.scrollTo($(this), 800, {offset: {top:-100}});				
			});
		}, function(){
			$(this).next().slideUp();			
		}
	)
	$('#film_thumbs a').click(function(){
		var $img = $(this).attr('href');
		if($img == $('#img_here img').attr('src') && $('#img_here_wrap').css('height') == '350px'){
			return false;
		} else{
			$('.close').fadeOut();
			$('#img_here').fadeOut(function(){
				$('#img_here').html('<img src='+$img+' />').fadeIn();
				$('#img_here_wrap').css('height', '350px');
				$('.close').fadeIn();
			})
			return false;			
		}
	})
	$('.close').click(function(){
		$(this).fadeOut();
		$('#img_here').fadeOut(function(){
			$('#img_here_wrap').animate({height: '0'});			
		});
	})
})
flowplayer("player", "../flowplayer/flowplayer-3.1.0.swf", { 
    clip:  { 
        autoPlay: false, 
        autoBuffering: true 
    },
	plugins: {
	   controls: {
			bufferGradient: 'none',
			progressGradient: 'medium',
			sliderGradient: 'none',
			backgroundGradient: 'medium',
			borderRadius: '0px',
			volumeSliderGradient: 'none',
			height: 20,
			opacity: 1.0,
			time:false,
			fullscreen:false,
			volume:false
	   }
	} 
});
