$(window).scroll(function () {
	    	position = document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
	    	if (position > 200){
	      		$("#top").fadeIn('slow');
	    	}
	    	else{
	    		$("#top").fadeOut('slow');
	    	}
    	});
	    $(document).ready(function() {
	            $('#top').click(function(){
	                    $('html, body').animate({scrollTop:0}, 'slow');
	            });
	    });
