Jordan finds the equation difficult to balance and its position is anything but enviable.

Jordan finds the equation difficult to balance and its position is anything but enviable.

 The recent attack by a Jordanian suicide bomber on a CIA base in Afghanistan revealed the depth of the cooperation between the United States and Jordan, its closest Arab ally in the Middle East.

Jordanian intelligence services helped put Hamam Khalil Abu-Mulal al-Balawi in touch with the CIA, and Jordan has been deeply embarrassed by the fact that Balawi turned out to be a double agent.

But while the Jordanian government is pro-Western, anti-American sentiment also runs high in the desert kingdom.

At the funeral of yet another Jordanian al-Qaida member killed in Pakistan in recent days, men filed into the reception hall one after another and paid their respects to the deceased man’s father. But there were no tears of sadness to mourn Mahmoud Zeidan in this Palestinian refugee camp in the Jordanian town of Irbid.

Mahdi Zeidan said his son was a member of al-Qaida who died in a U.S. drone attack in Pakistan.

 "I’m proud of him," he said. "I’m happy he died a martyr fighting the Americans."

The elder Zeidan said his son left Jordan 10 years ago to further his religious studies in Pakistan. Somewhere along the way, he fell in with the Taliban and then al-Qaida. The family says he was a spiritual adviser to the group. He was 35 when he was killed.

"My son wasn’t a terrorist," Zeidan said. "The U.S. are the terrorists who are bringing fear to Pakistan and Afghanistan and Iraq."

One of Mahdi Zeidan’s other sons also fought in Afghanistan. That son was captured by the Americans and sent to the U.S. detention center at Guantanamo Bay, Cuba, for five years. He was present at the wake but declined to speak to a member of the Western media.

Outside the hall, Zeidan’s third son said he isn’t sure whether to go and fight, too.

But Muhammad Zeidan is critical not just of the Americans. Referring to the recent revelation that Jordan helped the CIA, he said his country "is absolutely fighting on the wrong side of the war."

He is not alone in that sentiment in Jordan.

Analyst Hassan Abu Haniyeh says it is no coincidence that men such as Abu Musab al-Zarqawi, who led al-Qaida in Iraq, the recent CIA bomber and other militants such as Mahmoud Zeidan come from Jordan.

"It’s close to the Palestinian issue. At least 50 percent of the country is Palestinian. They blame the U.S. for supporting Israel. And then there is Iraq, also on our border, and what happened with the war there. It gets people’s emotions here very high," Hanieh says.

According to the Congressional Research Service, the United States provides Jordan with $660 million in foreign assistance a year.

Suleiman Ghanaimat, a former Jordanian general and a member of the recently disbanded parliament, says Jordan needs the U.S. in areas such as training, technology, and intelligence coordination and cooperation.

"It is serving our country. It is serving our nation. It is serving even our neighbors. So there are many, many benefits we are getting," Ghnaimat says.

But it is a delicate balancing act for Jordan’s government. It must cater to its ally’s needs in the war against Islamic extremism while keeping its population appeased.

Since news of Jordan’s involvement with the CIA was made public last week, the Jordanians have been in damage-control mode.

Jordan’s General Intelligence Department, or GID, warned members of the CIA bomber’s family not to speak to the press. Several analysts were also called and told not to make "inflammatory" statements. At least one local journalist working with the foreign media was hauled in for questioning.

Rohile Gharaibeh, a member of the opposition Muslim Brotherhood in Jordan, says the government realizes how negatively the public views its involvement with the CIA.