$(document).ready(function() {
	$("#picContainer").load("portfolioGroups.html", "", function() {
		$('a.thumb').lightBox();

	});
	$('#toggleGroup3D').click(function(){
		$('#picContainer').hide();
			$("#picContainer").load("portfolioGroups.html", "", function() {
				$('a.grp1').lightBox();
				$('.group3D').show();
				$('.groupPos').hide();
				$('.groupWeb').hide();
			});
		$('#picContainer').fadeIn('slow');
	});
	$('#toggleGroupPos').click(function(){
		$('#picContainer').hide();
		$("#picContainer").load("portfolioGroups.html", "", function() {
			$('a.grp2').lightBox();
				$('.group3D').hide();
				$('.groupPos').show();
				$('.groupWeb').hide();
		});
		$('#picContainer').fadeIn('slow');
	});
	$('#toggleGroupWeb').click(function(){
		$('#picContainer').hide();
		$("#picContainer").load("portfolioGroups.html", "", function() {
			$('a.grp3').lightBox();
				$('.group3D').hide();
				$('.groupPos').hide();
				$('.groupWeb').show();
		});
		$('#picContainer').fadeIn('slow');
	});
	$("#toggleAll").click(function () {
	    $('#picContainer').hide();
	   	$("#picContainer").load("portfolioGroups.html", "", function() {
			$('a.thumb').lightBox();
				$('.group3D').show();
				$('.groupPos').show();
				$('.groupWeb').show();
	   	});
	   $('#picContainer').fadeIn('slow');
	});
});
