The plaintiff and the defendant were married December 19, 1959, at Bellevue, Nebraska. Paceon Dodd,, the sole issue of the marriage, was born on June 17, 1966. Defendant was a student at a medical school in Omaha, Nеbraska, at the time of the marriage. The parties in' the summer of 1961 moved to a ranch near Batesland, South Dakota, and there resided until the spring of 1965 when they moved to a ranch near Sturgis, South Dakota, where thеy continued to reside until separation in September, 1967. Plaintiff wife commenced an action for divorce on the grounds of *88 extreme cruelty. The defendant denied the allegation of cruelty and counterclaimed for divorce and child custody. Plaintiff replied and served defendant with an amended complaint.
On April 4, 1968, an agreement as to property rights and custody and support of the minor child was entered into. The parties agreed that the amended complaint and the original answer and counterclaim together with affidavits on file be withdrawn; that defendant file an amended answer and counterclaim and bring on for hearing the cause of action to be stated in the amended counterclaim; and that defendant apply for an order permitting the withdrawal of the documents described from the court files and return therеof to counsel of the parties to be destroyed. It was also provided that the plaintiff have primary custody of the child for the period between August 20 of each year to June 12 of the following year and that defendant have custody during the remaining period. It was agreed that on or before August 12, 1968, plaintiff would take up residence within a radius of one hundred miles of Sturgis and that if she did not so comply,, the primary rights of custody рrovided in the agreement would become the primary right of the defendant so long as plaintiff shall elect to maintain her residence beyond the radius limitation agreed upon. It was also agreed that the party who shall not at any time enjoy primary custody be entitled to certain visitation rights. The defendant was required to pay $125.00 per month for support of the child so long and to the extent that custody remained in the рlaintiff. The judgment of divorce was entered April 11, 1968, granting defendant a divorce by default and reciting that the custody agreement of the parties was approved and adopted by the court and incorpоrated into the decree by reference.
The defendant on July 3, 1968, was married to Mary Wheeler who was divorced from her first husband. Defendant resides on his ranch near Sturgis with his present wife and her three young daughters. On September 13, 1968, plaintiff was married to Ernest Kephart who is employed by a telephone company in Omaha, Nebraska.
*89 On August 14, 1968, plaintiff filed an application for modification of the original decree by relieving plaintiff of the residential requirements alleging an inability to obtain employment within a one hundred mile radius of Sturgis. She therein contended that the conferences with attorneys in regard to the property settlement and child custody left her very nervous and distraught and in such condition that she did not actually understand the provisions thereof which in effect require her to terminate her employment with the State Hospital for Mentally Rеtarded in Glenwood, Iowa, and move to within one hundred miles of Sturgis, and asserts her inability after diligent efforts to obtain within such area employment as a social worker. She had completed a course of training in social work and was then employed in such capacity. Defendant served and filed an affidavit in resistance to plaintiff’s application contending that the purpose of the residential requiremеnts was to provide assurance that if the misconduct of the plaintiff were to continue, defendant could then seek redress and modification of custodial rights.
On hearing of the application of the plаintiff to modify the judgment and decree, the court received over objection evidence of alleged marital misconduct and unfitness of the plaintiff prior to the divorce. The court found that the defendаnt was the fit and proper person,, not the plaintiff, to have custody of the child. The court by what is denominated a judgment and decree dated October 21, 1968, awarded permanent custody to the defendant subject to rights in the plaintiff of weekend visitation and to have the child in her home during the month of August of each year. An application for modification of the provisions of a judgment for divorce respecting the custody of a minor child under the statute (SDCL 25-4-45) providing that the court retains jurisdiction to give such direction for custody of the minor children as may seem proper is a proceeding incident to the original suit and the dеtermination therein results in an order as distinguished from a judgment. Foster v. Foster,
It has long been the rule in this jurisdiction that the doctrine of res judicata applies to that part of a divorce decree giving direction for the custody and care of the children of the marriage and that the jurisdiction of the court cannot be invoked to inquire into the same or other facts existing at the time or prior to the former decree. Vert v. Vert,
The child in this аction, twenty-two months old at the time of the entry of the original decree, was of “tender years” within the meaning of SDCL 30-27-19. This section provides that a court in awarding custody is to be guided (1) by what appears to be for the best interests of the child, and (2) as between parents adversely claiming custody neither parent is entitled to it as a matter of right, but other things being equal, if the child is of tender years, it should be given to the mother. We held in Wiesner v. Wiesner,
Where a mother has been guilty of marital misconduct and there is no evidence of demonstrable effect of such conduct upon the child, it does not follow that she is an unfit person to have custody and that an award of custody to her is not in the best interest and welfare of the child. Wiesner v. Wiesner, supra; Septka v. Septka, 80 S. D. 299,
It appears that plaintiff at the time of hearing her application to modify the original decree was employed in the vicinity of Omaha, Nebraska, as a social worker and receiving a substantial salary. It is without dispute that she has been unable to obtain employment in such or similar capacity within the one hundred mile radius specified in the separation agreement incorporated in the original decree; that she resides with her present husband at his domicile; and that their home, surroundings and conveniences are suitable for the proper сare of the minor child. The elimination of the requirement that plaintiff resume her residence in this state would not affect the right of the defendant to alternate custody as provided in the original decree. Conoededly, visitation of the child by the defendant in another state would be more inconvenient than would be visitations provided in the original decree. A distinction between custody and visitation rights is recognized and modification of the latter rights can be ordered without showing material
*92
change in the circumstances of the parties when custodial rights are not prejudiced. Lamb v. Lamb,
During the pendency of the appeal counsel for the parties, because of the health and physical condition of the child, stipulated that plaintiff mother have temporary custоdy. After hearing, this court upon the basis of the agreement entered an order authorizing such custody. The child is with his mother in Omaha, Nebraska, and has there had medical care and treatment. The circumstance оf the health and physical condition of the child was not before the trial court and we have not considered whether because of health divided custody might be contrary to the child’s welfare. Any order madе concerning the custody of a minor child of divorced persons as we have indicated is always subject on proper showing to modification.
The order of the Circuit Court modifying the original judgment is reversed and thе cause remanded with directions to modify such judgment by eliminating residential requirements and to provide such visitations of the child by the parents as the court may deem suitable and consistent with the welfare of the child.
