$(document).ready(function(){

	/* * * AUDIO PLAYER * * */

	$('.audio_player').css({'opacity': '0.67'});
	$('.playbutton').hover(
	function() {
		$('.audio_player', this).stop().animate({'opacity': '1'}, 150);
		},
	function() {
		$('.audio_player', this).stop().animate({'opacity': '0.67'}, 150);
	});



	/* * * SEARCH * * */

	$('#search-button').toggle(
	function() {
		$('#search-entry').focus();
		},
	function() {
	});



	/* * * SCROLL TO TOP * * */

	$('#top').click(function(){
		$('html, body').animate({scrollTop:0}, 600);
		return false;
	});



	/* * * TUMBLR CONTROLS * * */

	$('iframe#tumblr_controls').css({'top': '-23px'});
	$('#tumblr_container').hover(
	function() {
		$('#tumblr_container').stop().animate({'top': '0', 'opacity': '0'}, 200);
		$('iframe#tumblr_controls').stop().animate({'top': '0'}, 200);
		},
	function() {
		$('#tumblr_container').stop().animate({'top': '-23', 'opacity': '0.5'}, 300);
		$('iframe#tumblr_controls').stop().animate({'top': '-23'}, 300);
	});


	$('iframe#tumblr_controls').hover(
	function() {
		$('#tumblr_container').stop().animate({'top': '0', 'opacity': '0'}, 200);
		$('iframe#tumblr_controls').stop().animate({'top': '0'}, 200);
		},
	function() {
		$('#tumblr_container').stop().animate({'top': '-23', 'opacity': '0.5'}, 300);
		$('iframe#tumblr_controls').stop().animate({'top': '-23'}, 300);
	});

});
