$(function() {
		
	/* Sidebar Tabs */
		
	var tabContainer = $('div#tabs > div#tabs-top > div');
	tabContainer.hide().filter(':first').show();
		
	$('div#tabs ul.tab-navigation li a').click(function () {
		
		tabContainer.hide();
		tabContainer.filter(this.hash).show();
		$('div#tabs ul.tab-navigation li a').removeClass('selected');
		$(this).addClass('selected');
		return false;
	
	}).filter(':first').click();
			
	/* Featured Rotation */
			
	var featuredContainer = $('div#featured-post > div');
	featuredContainer.hide().filter(':first').show();
		
	$('div#featured-navigation > a').click(function () {
		
		featuredContainer.hide();
		featuredContainer.filter(this.hash).show();
		$('div#featured-navigation > a').removeClass('selected');
		$(this).addClass('selected');
		return false;
	
	}).filter(':first').click();
			
	/* Fancy Box */
	
	$(".image-gallery a").fancybox(); 
	$(".image-gallery a").fancybox({ 
		'hideOnContentClick': true 
	}); 
			
	$(".image-gallery a").fancybox({ 
		'zoomSpeedIn': 0, 
		'zoomSpeedOut': 0,
		'overlayShow': true 
	}); 
	
	/*-------------------------------------------------------------------- 
	 * JQuery Plugin: "EqualHeights"
	 * by:	Scott Jehl, Todd Parker, Maggie Costello Wachs (http://www.filamentgroup.com)
	 *
	 * Copyright (c) 2008 Filament Group
	 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
	 *
	--------------------------------------------------------------------*/
	
	function equalHeight(group) {
		tallest = 0;
		group.each(function() {
			thisHeight = $(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		group.height(tallest);
	}

	equalHeight($ ( ".column" ) );
	
});
