jQuery(function($) {

		$('body').css('background','#000 url(http://www.gacel.cl/wp-content/uploads/bg-body_full_color_B.jpg) no-repeat top left fixed').tubular('l_tXCX_Lt7I','container');
	// Play/Pause
	$('#videoPause').click(function() {
		if ($(this).hasClass('videoPaused')) {
			ytplayer.playVideo();
			$(this).removeClass('videoPaused');
		} else {
			ytplayer.pauseVideo();
			$(this).addClass('videoPaused');
		}
		return false;
	});
	// Mute/Unmute
	$('#videoMute').click(function() {
		if ($(this).hasClass('videoMute')) {
			ytplayer.mute();
			$(this).removeClass('videoMute');
		} else {
			ytplayer.unMute();
			$(this).addClass('videoMute');
		}
		return false;
	});
	$('#videoStop').click(function() {
		ytplayer.stopVideo();
		ytplayer.clearVideo();
		$('#yt-container').hide();
		return false;
	});
	
	// next/prev video
	$('#videoNext').click(function() {
//		$('#container').empty();
		ytplayer.stopVideo();
		ytplayer.clearVideo();
		$('#yt-container, #video-cover').remove();
		$('body').css('background','#000 url(http://www.gacel.cl/wp-content/uploads/bg-body_fiesta_B.jpg) no-repeat top left fixed').tubular('wrI0ODysKTM','container');

	});
	$('#videoPrev').click(function() {
//		$('#container').empty();
		ytplayer.stopVideo();
		ytplayer.clearVideo();
		$('#yt-container, #video-cover').remove();
		
	$('body').css('background','#000 url(http://www.gacel.cl/wp-content/uploads/bg-body_full_color_B.jpg) no-repeat top left fixed').tubular('l_tXCX_Lt7I','container');
	});
	
});
