My javascript is having issues with the variable posy. This is all within a jquery onload function. Can anyone help me understand what is not right about this line?
var dhei = $('.share_event_btn').offset();
var posy = (dhei.top+22)-(self.pageYOffset);
EDIT:
var ehei = $('.share_event_btn').offset();
var dhei = parseInt(ehei);