jQuery
(
	function($)
	{
		$(".pp-slideshow > div > div").easySlider();
		
		$(".contact-tab").click(function(){ $(this).parent().parent().toggleClass('closed')});
		
		var $_height = $(".secondary").height() + 85;
		
		$(".col-right").css({'margin-top':-$_height});
		
		if ($.browser.msie) {$(".col-left").css({'margin-top':0});} 

		$('div.pp-gallery')
		
			.find('.gallery-info a.view-larger')
				.bind
				(
					'click',
					function(event)
					{
						$(this).closest('li').find('a[rel=gallery]').trigger('click');
						event.preventDefault();
					}
				)
				.end()
				
			.find('a[rel=gallery]')
				.fancybox
				({
					transitionIn	: 'elastic',
					transitionOut	: 'elastic',
					titlePosition	: 'over',
					titleFormat		: function(title, currentArray, currentIndex, currentOpts)
					{
						return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
					}
				});


	}
);

