gold prices top $540 in afternoon dealings