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

$(document).ready(function () {
	$('#apply-lightbox a').click(function (e) {
		e.preventDefault();
		$('#contents').addClass('hide');
		
		$('#apply-lightbox-content').modal({onClose: function (dialog) {
			$('#contents').removeClass('hide');
			$.modal.close();
		}});
	});
});
