function fadeonlyone(thechosenone) {
     $('.site-details').each(function(index) {
          if ($(this).attr("id") == thechosenone) {
               $(this).fadeIn(500);
          }
          else {
               $(this).fadeOut(50);
          }
     });
}

$(document).ready(function() {
	$('.btn').click(function() {
		$('#site-closeup').animate({height: "552px"}, 550)
		.animate({height: "532px"}, 150);		
	});
	
	$('.close').click(function() {
		$('#site-closeup').animate({height: "552px"}, 150)
		.animate({height: "0px"}, 550);
		return false;
   });
   
   $('.basic').click(function() {
	  $('.site .details').slideUp('slow', function() {
	  });
	});	
	
	$('.more').click(function() {
	  $('.site .details').slideDown('slow', function() {
	  });
	});
	
	$('.btn').click(function(){
		var full_url = this.href;
		var parts = full_url.split("#");
		var trgt = parts[1];
		var target_offset = $("#"+trgt).offset();
		var target_top = target_offset.top;
		$('html, body').animate({scrollTop:target_top}, 500);
	});	
	
});

