
	var currentTab = 0;
	
	function openTab(clickedTab) {
		var thisTab = $(".galleryThumbs a").index(clickedTab);
		$(".galleryThumbs li a").removeClass("active");
		$(".galleryThumbs li a:eq("+thisTab+")").addClass("active");
		$(".galleryContent").hide();
		$(".galleryContent:eq("+thisTab+")").show();
		currentTab = thisTab;
	}
	
	$(document).ready(function() {
		$(".galleryThumbs li:eq(0) a").css("border-left", "none");
		
		$(".galleryThumbs li a").click(function() { 
			openTab($(this)); return false; 
		});
		
		$(".galleryThumbs li a:eq("+currentTab+")").click()
	});


