var topYloc = null;


$(window).scroll(function () { 
if($("#toplink").length > 0) {
	var scrollTop = $(document).scrollTop();
	scrollTop = parseInt(scrollTop);
	
	var offset = topYloc+scrollTop+"px";  
	$("#toplink").animate({top:offset},{duration:500,queue:false});
}
});

$(document).ready(function(){
if($("#toplink").length > 0) {
	topYloc = parseInt($("#toplink").css("top").substring(0,$("#toplink").css("top").indexOf("px")));
}
});

