// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
$(document).ready(function(){ 
	setContactPos();
	$(window).scroll(setContactPos);
	$(window).resize(setContactPos);
});

function setContactPos()
{
		$("#contact").stop().animate({"top":$(window).scrollTop() + $(window).height() - 50+"px"},1000);
}

function remove_field(element, item) {
  element.up(item).remove();
}