[cnn-photo-caption image= http://i2.cdn.turner.com/cnn/2008/images/11/04/timmahoney.jpg caption="Mahoney admitted to affairs."]
NEW YORK (CNN) - A Democratic lawmaker who won his seat after his predecessor became mired in scandal lost his bid for re-election after becoming embroiled in scandal himself.
Rep. Tim Mahoney of Florida's 16th district was defeated by Republican Tom Rooney, a lawyer and former Army officer.
Mahoney recently admitted having two extramarital affairs and paying one woman to keep quiet. He won his seat in 2006 partly by stressing family values after Republican Rep. Mark Foley resigned in disgrace. Foley had sent racy Internet messages to male former Capitol Hill pages.