/**
 * @author Vlad Yakovlev (scorpix@design.ru)
 * @copyright Art.Lebedev Studio (http://www.artlebedev.ru)
 */


function otherResize(){
		var wrap = $('#wrap');
		var maxHeight = 0;

		$('.middle')
		.css('min-height', 0)
		.find('.content').each(function()
		{
			var height = $(this).height();
	
			if (maxHeight < height)
				maxHeight = height;
		}).end()
		.css('min-height', maxHeight).css('min-height', wrap.height());

}

$(function()
{
	$('.resume-link').click(function()
	{
		var el = $(this).parent().next();
		
		if ('none' == el.css('display'))
		{
			el.show(600);
			$(this).addClass('resume-link-selected');
		}
		else
		{
			el.hide(600);
			$(this).removeClass('resume-link-selected');
		}

		

			setTimeout(function(){if ($.browser.msie)
				{
					carcas.ieResize();
				}
				else
				{
					otherResize();
				}
}, 605);

	});
});
