// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function onYouTubePlayerReady(playerId) {
	ytplayer = document.getElementById("videoplayer");
	ytplayer.playVideo();
}	

$(function() {
	$(".watch-video").bind("click", function() {
		$("#video").show();
		return false;
	});
	$("#close-video").bind("click", function() {
		$("#video").hide();
		return false;
	});
});