A player in an offside position is only penalised if, at the moment the ball touches or is played by one of his team, he is, in the opinion of the referee, involved in active play by:

interfering with play orinterfering with an opponent orgaining an advantage by being in that position”