$(document).ready(function () {
	$(".empty").bind("focus", function() {
		$(this).attr("value", "");
	});

/*
	$.get("./twitter.php", function(data){
		$("#twitter-content").fadeOut('slow', function () {
			$("#twitter-content").html(data).fadeIn();	
		});
	});	
*/


	$(window).scroll(function(){ 
	  if(isScrollBottom()){ 
		$("#nav").removeClass("freefloat");
	  } else {
		$("#nav").addClass("freefloat");
	  }
	}); 
	
	$("#nav").click(function () {
		var scrolltarget = $("#footer-container")[0].offsetTop;
		$('html,body').animate({scrollTop: scrolltarget}, 1000);
	});
	
	function isScrollBottom() { 
	  var documentHeight = $(document).height(); 
	  var scrollPosition = $(window).height() + $(window).scrollTop(); 
	  return (scrollPosition > (documentHeight - $("#footer-container").height()) ); 
	} 
	
	

});
