var orig_height = 0;
var orig_position = 0;
var orig_pad = 0;

$(document).ready(function() { 
// Get height of column so you can reset it.
	//orig_height = $('.group_1').height();
	//bottom = $('#main_bottom').position();
	//orig_position = bottom.top;
	//orig_pad = (orig_position - orig_height);

	$('.view_details').click(function() {
		var this_item = $(this).parents().filter('.item_right');
		var this_footer = $(this).parents().filter('.item_footer');
		var this_details_button = $(this_footer).find('.details_button');
		var this_summary = $(this_item).children().filter('.item_summary');
		var this_detail = $(this_item).children().filter('.item_full_description');
		var this_swirly = $(this_item).children().filter('.item_swirly');
		
		
		$(this_summary).toggle(function() {
			size_background();
		});

		$(this_detail).toggle(function() {
			
		});
		
		$(this_swirly).toggle(function() {});
		
		if($(this_details_button).text() == 'View Details') {
			$(this_details_button).text('Hide Details');
		} else {
			$(this_details_button).text('View Details');
		}

		
	});//view details

	$(".add_item").click(function() {
		$(".amazonPaymentsCart_Header").click();
		
		$(document).scrollTop("0px");
	
	});

});
