$(document).ready(function() {
	//Drop atc button down to the bottom of "c" class (to align with "Price with Options") for category page
 	$('#category form .c').each(function() { 
		$(this).children('.f').css('margin-top', $(this).height() - $(this).children('.f').height() + 'px');
	});
	//Drop atc button down to the bottom of "c" class (to align with "Price with Options") for manufacturer page
 	$('#manufacturer form .c').each(function() { 
		$(this).children('.f').css('margin-top', $(this).height() - $(this).children('.f').height() + 'px');
	});
	//Drop atc button down to the bottom of "c" class (to align with "Price with Options") for animal page
 	$('#animal form .c').each(function() { 
		$(this).children('.f').css('margin-top', $(this).height() - $(this).children('.f').height() + 'px');
	});
	//Drop atc button down to the bottom of "c" class (to align with "Price with Options") for product of the day
	$('#prodday form .c').each(function() { 
		$(this).children('.f').css('margin-top', $(this).height() - $(this).children('.f').height() + 'px');
	});
	//Add border round product of the day
	// $('#prodday form').css({
	// 	'border': '1px solid #006600',
	// 	'height': $('#prodday form .b').outerHeight(true) + $('#prodday form .c').outerHeight(true) + 'px',
	// 	'-moz-border-radius': '7px',
	// 	'-khtml-border-radius': '7px',
	// 	'-webkit-border-radius': '7px'
	// });
	//Set the width of the "write review" textarea
	$('#review_write #c textarea').animate({
		//Width of id 'c' (div containing text area) less width of class 'a' (div containing image) less margin of 15
		'width': $('#review_write #c').outerWidth(true) - $('#review_write .a').outerWidth(true) - 15 + 'px'
	}, 200);
	//Set the width of the "comment box" textarea (on shipping and payment screens)
	$('#shipping .f textarea').animate({
		//Width of class 'f' (div containing text area) less margin of 5
		'width': $('#shipping .f ').width() - 5 + 'px'
	}, 200);
	$('#payment .h textarea').animate({
		//Width of class 'h' (div containing text area) less margin of 5
		'width': $('#payment .h ').width() - 5 + 'px'
	}, 200);
});


