WASHINGTON (AFP) - In the last hours of the White House race, the Republican Party in the swing state of Pennsylvania and an independent group released ads attacking Democrat Barack Obama over ties with his fiery former pastor Jeremiah Wright. As Republican nominee John McCain fought for his political life, state party officials said they were airing the ads because they claim Obama's past associations had escaped media scrutiny. "Many Pennsylvanians are taking these next few days before election day to decide who they can trust to lead our country," said Republican Party of Pennsylvania Chairman Robert A. Gleason in a statement. "Barack Obama is proving himself to be a risk to our future. "I believe that most people can't understand how Obama could continue to come back to Wright's church week after week to hear Wright espouse comments like 'God Damn America'" "Can we trust Obama's judgment? If his relationship with Reverend Wright is any indication, I would say no" Ahead of Tuesday's presidential election in which Obama is the hot favorite, a separate group calling itself the National Republican Trust political action committee was also running a Reverend Wright ad in key swing states Ohio, Pennsylvania and Ohio. "Barack Obama " too radical, too risky," said the spot, which also showed videos of Wright. The ads are also seen in the Washington DC television market, part of which can be seen in another key swing state, Virginia. McCain has not brought up the Wright issue in his general election struggle against Obama, and has reportedly barred his staff from doing so. Obama quit his former Chicago church in May after months of controversy over the racially laced pulpit rhetoric of Wright and another pastor who attacked his then Democratic primary rival Hillary Clinton. Wright had said the United States brought the September 11 attacks of 2001 upon itself, and exhorted blacks to sing "God damn America" over racism and allegations that AIDS was spread by the US government. Obama at first declined to turn his back on Wright, who officiated at his wedding, and baptized his two daughters. Instead Obama used the row to make a wider statement about race in America in a well-received speech in March. Later, however, he repudiated his former friend, after a round of media appearances by the pastor re-ignited the affair. There was no comment on the advertisements from the Obama campaign.