Amazon.com will pay Toys R Us $51 million to settle a five-year-old lawsuit, the Seattle-based Internet retailer disclosed in a regulatory filing. Toysrus.com, a division of Wayne, N.J.-based Toys R Us, sued Amazon in 2004, accusing it of violating an exclusivity agreement by letting other merchants sell toys, games and baby products on the Amazon Web site.