	$(document).ready(function(){
										
	$("#portfolio-post-list a").click(function(){ 
		var ListID = '#' + $(this).attr("id") + '-more';
		$("#portfolio-post-list a").removeClass('active');
		$(".portfolio-post").hide();
		$(this).addClass('active');
		$(ListID).show();
		});

	$('a[href*=#]').click(function() {
	  if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
	  && location.hostname == this.hostname) {
		var $target = $(this.hash);
		$target = $target.length && $target
		|| $('[name=' + this.hash.slice(1) +']');
		if ($target.length) {
		  var targetOffset = $target.offset().top;
		  $('html,body')
		  .animate({scrollTop: targetOffset}, 600);
		 return false;
		}
	  }
	});
	
	});
	
