
var Local = {

    onCommentReply: function(id) {
		Comments.openReply(id);
	},

    onCancelReply: function(id) {
		Comments.closeReply();
	}

};

(function() {
	var $ = jQuery
	$(document).ready(
		function() {
			$('a[href=#print]').each(
				function() {
					$(this).click(
						function(click) {
							click.preventDefault()
							$(this).parents('div.recipecard').siblings('div.recipecard').hide()
							setTimeout(function() {
								if(window.print()) {
									$('div.recipecard').show()
								} else {
									$('div.recipecard').show()
d								}
							}, 500)
						}
					)
				}
			)
		}
	)
})()
