function toggleDisplayCartRecipientNick() {
	var meta = $('SimpleCartItemMetaRecipientId');
	var container = $('CartRecipientNickContainer');
	
	if(meta.value == "4::" && !container.visible()) {
		Effect.SlideDown(container, {duration: 0.25});
	} else if(container.visible()) {
		Effect.SlideUp(container, {duration: 0.25});
	}
}

// Things to do after the page loads
Event.observe(document, 'dom:loaded',
	function(event) {

		// Hide the container
		toggleDisplayCartRecipientNick();

		// On change, hide/show the container
		Event.observe($('SimpleCartItemMetaRecipientId'), 'change', toggleDisplayCartRecipientNick);

	}
);
