What I'm saying is, Jelavic was only 'onside' until the point where he became active, because positionally he was offside when the initial shot was taken by his team-mate. Basically, until that ball was cleared, Jelavic should not have been able to touch it no matter how it got to him, because his own player took the shot that started the whole sequence of events.