$(document).ready(function() {
	if (Modernizr.audio) {
		$('#pause_button').hide();
		var audioPlayer = document.getElementById('gramophone_player');
		$('#play_button').click(function() {
			audioPlayer.play();
			$(this).hide();
			$('#pause_button').show();
		});		
		$('#pause_button').click(function() {
			audioPlayer.pause();
			$(this).hide();
			$('#play_button').show();
		});	
	} else {
		$('#pause_button').hide();
		$('#play_button').click(function() {
			niftyplayer('niftyPlayer1').play();
			$(this).hide();
			$('#pause_button').show();
		});		
		$('#pause_button').click(function() {
			niftyplayer('niftyPlayer1').pause();
			$(this).hide();
			$('#play_button').show();
		});	
	}
});	

