$(document).ready(function() {
	$("#innercol hr").after('<div class="hr"></div>').remove();

	$('ul#flickr_embed li a.fancybox').attr('rel','flickr').fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a.fancy").fancybox({
		'hideOnContentClick': true
	});
	
	var maxheight = 50;
	$('li#quote_1, li#quote_2').each(function() {
		var currentHeight = $(this).height();
		if(currentHeight > maxheight) maxheight = currentHeight;
	}); 
	$('li#quote_1, li#quote_2').height(maxheight);
	
	maxheight = 50;
	$('li#quote_3, li#quote_4').each(function() {
		var currentHeight = $(this).height();
		if(currentHeight > maxheight) maxheight = currentHeight;
	}); 
	$('li#quote_3, li#quote_4').height(maxheight);

	$("ul.testimonials_list li div.quote").find('p:first').prepend('<img src="images/bg/quote_open.gif" alt="&ldquo;" />').parent().find('p:last').append('<img src="images/bg/quote_close.gif" alt="&rdquo;" />');

});

