Investors bet on Thursday the United States would not go as far as shutting down UBS there in a dispute over tax, instead expecting the Swiss bank to be hit by a hefty fine as part of a swift out-of-court settlement.

Shares in UBS were higher midmorning after a U.S. judge late on Wednesday ordered the U.S. government to say if it was prepared to seize the bank's assets in the United States, and were roughly in line with the European bank sector.

U.S. District Judge Alan Gold, set to preside over a court hearing next week in a suit seeking to force UBS to disclose 52,000 secret account holders, gave the Justice Department until noon (1600 GMT) on Sunday to reply.

Analysts and traders see an increased likelihood of a deal ahead of the hearing as they do not expect Washington to take the radical step of closing down UBS in the United States, thus risking potentially damaging consequences for the global financial system.

How much UBS may have to pay to end the tax row is unclear.

But analysts point out the Swiss bank, one of the world's largest wealth managers, could afford up to about $5.5 billion without needing an immediate cash injection thanks to a recent capital increase and asset sales [ID:nL844072]

People do not expect the United States to shut down UBS. That is why the shares should end up slightly up today, said a bank analyst who declined to be named. There is a lot of pressure for a settlement to take place on Sunday.

UBS employs about 27,000 people in the United States, or nearly one third of its global workforce.

The court hearing is due to start on Monday, July 13.

Shares in UBS were up 2.2 percent at 12.85 Swiss francs at 1013 GMT (6:13 a.m. EDT) against a 2.1 percent rise in the DJ Stoxx European banking index <.SX7P>.

G8 FIGHT ON TAX EVASION

The U.S. case comes amid a global clampdown on Switzerland and other tax havens. G8 leaders meeting in Italy said on Wednesday they would continue to fight tax dodging, especially given the cost of stimulus measures in the crisis.

We cannot continue to tolerate large amounts of capital hidden to evade taxation, the G8 said in a statement.

Switzerland, the world's biggest offshore banking center, vowed in filings to the U.S. court to prevent UBS from handing over client data to Washington to defend bank secrecy laws, saying the tax case is souring diplomatic ties.

Despite strong language on both sides, analysts still see chances of a settlement.

There is still the chance of an out-of-court settlement ahead of the scheduled hearing next Monday, Julius Baer said in a research note.

Some analysts do not rule out a postponement of the hearing to allow the two parties to hammer out all details of a deal.

Chances that UBS would get a more lenient treatment because many of its U.S. clients have already applied for voluntary tax disclosure seemed slim after Judge Gold said this week he did not believe this was an effective means to catch tax dodgers.

I am not persuaded that reliance on voluntary disclosure or other form filings by U.S. taxpayers .... can be considered an adequate alternative means ... to seek the information ... in a timely and comprehensive fashion, Gold said in a motion posted on the court's website.

Many U.S. clients of UBS have approached the Internal Revenue Service for tax disclosure but U.S. tax authorities say they have discovered far less than the 52,000 names they are seeking.

UBS has repeatedly said speculation about potential settlement payments in the U.S. tax dispute is unfounded, though Swiss ministers have openly spoken of a possible deal.

Swiss Economy Minister Doris Leuthard told Reuters on Tuesday UBS had made mistakes and would have to pay a price.

Analysts say concerns that hitting UBS too hard could damage the global financial system as well as strong Swiss-U.S. diplomatic ties could help pave the way to a manageable settlement.

(editing by John Stonestreet and Hans Peters)