/*	Tuscany Interiors
	http://www.tuscanyinteriors.com/
	jQuery script */

$(function() {
	function equalHeight(group) {
		var tallest = 0;
		group.each(function() {
			var thisHeight = parseFloat($(this).height());
			if (thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		
		group.height(tallest);
	}
	
	$("form#ship-pay").submit(function() {
		if (!$("input#agree").attr("checked")) {
			alert("You must read and agree to our return and shipping policy before continuing.");
			return false;
		} else {
			return true;
		}
		
		return false;
	});
	
	equalHeight($(".category-product-name"));
});
