(1) he is a judge, juror, special master, referee, or arbitrator and knowingly solicits, accepts, or agrees to accept any benefit, direct or indirect, on the representation or understanding that it will influence his official action in a judicial proceeding pending in any court or before the official or juror or

(2) he is a witness or prospective witness in any official proceeding and knowingly solicits, accepts, or agrees to accept any benefit, direct or indirect, on the representation or understanding that he will disobey a subpoena or other legal process, or withhold evidence, information or documents, or testify falsely.

(b) Acceding to corruption under paragraph (a) (1) is a class C felony.

(c) Acceding to corruption under paragraph (a) (2) in a felony prosecution, or on the representation or understanding of testifying falsely is a class D felony, otherwise acceding to corruption is a class A misdemeanor.