$(function() {

	// Default Inputs
	$(':text').not('#more-information :text').defaults();
	
	// This is because the dumb shopping cart
	// doesn't allow you to get at the *actual* URL 
	// of a product image. Thus, we have to display 
	// the whole image tag, then copy the src to the
	// href tag of the url. BAH!
	$('#fullsize-image').each(function() 
	{
		$('.fullsize-link').attr('href', $(this).attr('src'));
	});
	
	// Fancybox init
	$('a[rel*=fancybox]').facybox();
	
	// AJAX the More Information Form
	$('#more-information').ajaxify({
		success: function(response)
		{
			// Inject response for the fancybox
			$.facybox(response, 'form-result-ajax');
		}
	});
});