	$(document).ready(function() {
		//$("#specialOfferMore").hide();
		
		$("#specialOfferMoreLink").click(function() {
			$("#specialOfferMore").show("fast");
		});

		$("#specialOfferCloseLink").click(function() {
			$("#specialOfferMore").hide("fast");
		});
});

$(function() {
	$(".shopCopy p.infoSummary").append('<a class="infoMore">More Info</a>');
	$(".shopItem div.infoCopy").append('<p class="infoLink"><a class="infoClose">close</a></p>');

$("a.infoMore, a.infoClose").click(function() {

	var infoBox = $(this).parents(".shopItem").children(".infoCopy");


	if (parseInt(infoBox.height()) == 0) { 
		infoBox.addClass("offscreenBuffer");
		infoBox.css("height", "auto");
		var infoBoxFullHeight = infoBox.height();
		infoBox.css("height", 0);
		infoBox.removeClass("offscreenBuffer");
		targetHeight = infoBoxFullHeight;
	} else { 
		targetHeight = 0;
	}

 infoBox.animate({ 
		height: targetHeight
	}, 400, function() {
		if (targetHeight != 0 ) { infoBox.css("height","auto") }
	} );

	});
	
	
	// Enlarge image links
	$("a[rel='detail']").openDOMWindow({  
		width: 525, 
		height: 500,
		eventType: 'click', 
		windowSource: 'ajax',
		windowHTTPType: 'post'
	});
	// Handle close links
	$().click(function(e){
		var $target = $(e.target);
		if($target.is(".infoClose")){ 
			e.preventDefault();
			$.closeDOMWindow(); 
		}
	});
	
});



//     $(this).parents(".shopItem").toggleClass("infoState-show")
