The magistrate, identified only by his last name Hilge, is "suspected of the crimes of possessing pornographic material and producing pornography," a statement said.
He was arrested shortly after dawn a day after a search of his car, his office and his home turned up compact disks with pedophile images and two cameras similar to one found in the women's toilet in the courthouse.
The police were acting on a complaint by a female court employee who discovered the camera hidden in the bathroom.