sloyi,
$(window).scroll(function(){
var scrollTop = window.pageYOffset || document.documentElement.scrollTop;
if (scrollTop > 1000)
{
$("#hid").stop().css("display","block")
.animate({'opacity':'0.8'},1000);
}
else
{
$("#hid").stop().css({"display":"none", "opacity":"0"});
}
});