It was Palestinian Authority President Mahmoud Abbas who showed up at the Muqata’a government compound in Ramallah Tuesday to speak to the Palestinian public about the crisis in the Gaza Strip.

But to the untrained ear it could have sounded like a Hamas apparatchik was doing the talking.

Arriving after a longish swing through the Arab world, Abbas spoke as if he had adopted the Hamas terms for ceasefire with Israel.

He noted the Hamas demands one by one — the lifting of the blockade on Gaza, opening of the border crossings, release of prisoners (including the canceled fourth phase of a previously planned release) and an international summit to deal with Gaza.

He also used the Islamic movement’s terminology in anything to do with the conflict with Israel and stressed how strong Palestinian unity is.

Except that Abbas added one small sentence that illustrates the difference between Gaza and Ramallah.

He called for an immediate end to the fighting and only after that for talking about Hamas’s demands. That is to say, Abbas still supports the Egyptian-led mediation effort for stopping the fighting and not that of Qatar-Turkey-Hamas.

Abbas’s speech was a masterfully executed diplomatic hug. Officially he is making nice to Hamas, but in actuality he is far from supporting it.

Abbas said just on Monday to the Hamas politburo head, Khaled Mashaal, that his organization must stop the fighting immediately. He said the same thing the next day in his speech, though he toned down the language.

Why, then, is Abbas nonetheless embracing Hamas? Abbas and the Fatah leadership understand that the situation in Gaza has brought a dramatic weakening of their position. Their popularity has divebombed. Abbas’s staffers are worried over a survey published Tuesday by the Awrad Institute among West Bankers that indicates a significant advance in Hamas’s status at the expense of Fatah.

The figures in the survey tell the story of the war from the Palestinian point of view, and explain why Hamas is so determined to continue fighting.

On the question of who is winning the war, only 7 percent responded that it is Israel, some 58% said it was Hamas and 34% said neither one (1% responded that they didn’t know). When asked about Abbas’s role, only 16% gave a positive response compared to 59% who were negative. By comparison, regarding Khaled Mashaal, 66% responded positively and only 10% gave a negative response.

As for the roles of the various Palestinian factions, 22% said that Fatah’s role was positive compared to 45% who said they thought it was negative and another 32% who said it was neutral. Meanwhile, 85% said Hamas is functioning in a positive way, only 6% said negative and 9% said it was neutral. Thirty-one percent said they support Hamas and just 24% said they were behind Fatah and the other various factions.