An information was filed against the defendant charging him with the crime of murder in the killing of one Joseph D Tpolito. Trial was had in the county of Twin Falls. The defendant was acquitted. During the trial the prosecuting attorney offered in evidence the deposition of one Joe Pedri. It was contended that this deposition was taken under the provisions of sec. 7588, Rev. Stat. To the introduction of this deposition, counsel for defendant made numerous objections in effect as follows: That no foundation had been laid for the introduction of this deposition; that it did not appear that the deposition was signed or sworn to under the direction or in the presence of the magistrate; that it did not appear that the witness was intending to depart from the jurisdiction of the court; that it did not appear from the deposition that the defendant had been advised of his rights and appeared with his counsel; that diligence had not been shown; that at the time the deposition was taken the cause was pending in the district court, and had passed beyond the jurisdiction of the probate court. The objections were sus*308tained by the court, and the deposition was rejected as evidence. The state appeals to this court from the ruling of the district court in refusing to admit in evidence said deposition. This appeal is taken under see. 8043, Rev. Stat., as amended by the Laws of 1907, p. 509. The defendant makes no appearance in this court. The only question presented by the record is, Was said deposition admissible in evidence? This court has held that a deposition taken under the provisions of sec. 7588, Rev. Stat., is admissible in evidence. (State v. Ireland, 9 Ida. 686, 75 Pac. 257; State v. White, 7 Ida. 150, 61 Pac. 517.) But as to what is necessary to be shown by the state before such deposition is admissible has not been passed upon by this court. We are of the opinion that before a deposition, taken conditionally as provided in sec. 7588, Rev. Stat., can be admitted in evidence, it is necessary for the state to show the following facts which should appear as a part of the deposition or in connection therewith: First, that the deposition was taken before the magistrate who conducted the preliminary examination, or the judge' of the court to which such party had been held for trial; second, that it was shown to such magistrate or judge, upon oath, that there was reason to believe that such witness whose deposition was sought would not appear and testify unless security was given; third, that the magistrate or judge made an order requiring such witness to enter into a written undertaking, with sureties, under the provisions of sec. 7585, Rev. Stat. After such facts appear, it may be shown and made to appear to the magistrate or judge by examination on oath of the witness, or any other person, that the witness is unable to procure sureties, whereupon he may be forthwith conditionally examined on behalf of the people under the provisions of sec. 7588, Rev. Stat.
It should further appear that the defendant has been advised of his right to counsel and to be represented by such and the presence of defendant in person and by counsel, if he desired counsel, or after notice to him, if on bail. It must also be shown that the deposition was taken and the examination conducted in the same manner as the examination before a committing magistrate, and certified as required by see. 7576, *309Rev. Stat. Before such deposition is admitted in evidence, the prosecution should further show that the witness is unable to attend by reason of his death, infirmity, sickness, or insanity, or of his absence from the state, and that due diligence has been exercised in an effort to procure the presence of said witness at the trial. When these facts have been shown, the deposition may then be admitted in evidence. These facts were not shown in this case, and the court committed no error in refusing to admit the deposition of said witness in evidence. The order appealed from is affirmed.
Ailshie, C. J., and Sullivan, J., concur.