Mr. Abbas was elected for a four-year term as president of the Palestinian Authority in January , 2005 .