function initQuickPosssesion()
{

$j = jQuery
//Find expanded height
$j('.qp-item').each(function()
	{
		qpItem = $j(this)
		qpItem.data('expandedHeight', qpItem.height() - qpItem.find('.click-details').outerHeight() )
	})
	
$j('.additional-photos').hide();
$j('.qp-description').hide();
$j('.hide-details').hide();

//Find collapsed height
$j('.qp-item').each(function()
	{
		qpItem = $j(this)
		qpItem.data('collapsedHeight', qpItem.height() )
	})
	

$j('.click-details').click(function()
	{
	qpItem = $j(this).parent().parent();	
	
	qpItem.animate({height:qpItem.data('expandedHeight') }, 300);
	$j(this).hide();
	qpItem.find('.hide-details').fadeIn();
	qpItem.find('.qp-description').fadeIn();
	qpItem.find('.additional-photos').fadeIn();

	})

$j('.hide-details').click(function()
	{
	qpItem = $j(this).parent().parent();
	qpItem.find('.additional-photos').fadeOut(150);
	qpItem.find('.qp-description').fadeOut(150, function()
		{
			qpItem.animate({height:qpItem.data('collapsedHeight') }, 300)
			qpItem.find('.hide-details').hide();
			qpItem.find('.click-details').show();
		});
	
	})

}

