For purposes of this section, the following terms have the meanings given them:
(a) "Obscene" means that the work, taken as a whole, appeals to the prurient interest in sex and depicts or describes in a patently offensive manner sexual conduct and which, taken as a whole, does not have serious literary, artistic, political, or scientific value. In order to determine that a work is obscene, the trier of fact must find:
(1) that the average person, applying contemporary community standards would find that the work, taken as a whole, appeals to the prurient interest in sex;
(2) that the work depicts sexual conduct specifically defined by paragraph (b) in a patently offensive manner; and
(3) that the work, taken as a whole, lacks serious literary, artistic, political, or scientific value.
(b) "Sexual conduct" means any of the following:
(1) An act of sexual intercourse, normal or perverted, actual or simulated, including genital-genital, anal-genital, or oral-genital intercourse, whether between human beings or between a human being and an animal.
(2) Sadomasochistic abuse, meaning flagellation or torture by or upon a person who is nude or clad in undergarments or in a sexually revealing costume or the condition of being fettered, bound, or otherwise physically restricted on the part of one so clothed or who is nude.
(3) Masturbation, excretory functions, or lewd exhibitions of the genitals including any explicit, close-up representation of a human genital organ.
(4) Physical contact or simulated physical contact with the clothed or unclothed pubic areas or buttocks of a human male or female, or the breasts of the female, whether alone or between members of the same or opposite sex or between humans and animals in an act of apparent sexual stimulation or gratification.
(c) "Community" means the political subdivision from which persons properly qualified to serve as jurors in a criminal proceeding are chosen.
(d) "Work" means "material" or "performance."
(e) "Material" means a book, magazine, pamphlet, paper, writing, card, advertisement, circular, print, picture, photograph, motion picture film, videotape, script, image, instrument, statue, drawing, or other article.
(f) "Performance" means a play, motion picture, dance, or other exhibition performed before an audience.
It is unlawful for a person, knowing or with reason to know its content and character, to:
(a) exhibit, sell, print, offer to sell, give away, circulate, publish, distribute or attempt to distribute any obscene material; or
(b) produce, present, participate in, or direct an obscene performance.
A person violating subdivision 2 is guilty of a gross misdemeanor and may be sentenced to imprisonment for not more than one year, or to payment of a fine of not more than $3,000, or both.
Whoever violates the provisions of subdivision 2 within five years of a previous conviction under that subdivision is guilty of a felony and may be sentenced to imprisonment for not more than two years, or to payment of a fine of not more than $10,000, or both.