(a) A person commits the crime of interfering with judicial proceedings if:
(1) He engages in disorderly, contemptuous or insolent behavior, committed during the sitting of a court in its immediate view and presence, and directly tending to interrupt its proceedings or impair the respect due its authority;
(2) He intentionally creates a breach of the peace or disturbance under circumstances directly tending to interrupt a court's proceedings;
(3) As an attorney, clerk or other officer of the court, he knowingly fails to perform or violates a duty of his office, or knowingly disobeys a lawful directive or order of a court;
(4) Knowing that he is not authorized to practice law, he represents himself to be an attorney and acts as such in a court proceeding; or
(5) He records or attempts to record the deliberation of a jury.
(b) Interfering with judicial proceedings is a Class B misdemeanor.