jQuery(document).ready( function($) {
	$('.visible').fadeIn(1000);
	$('.selector').click( function() {
		var target = $($(this).attr('rel')),
			current = $('.showcase:visible'),
			id = current.attr('id'),
			pos = current.position();

		if (target.attr('id') !== current.attr('id')) {
			target.css({ top: pos.top, left: pos.left, zIndex: 10});
			current.fadeOut(1000);
			target.fadeIn(1000, function() {
				current.css({ zIndex: 5})
			});
		}
	});
});


