I have no idea what's going on there. Some type of poisoning seems likely though. If it is not even trying to swim I would say its time is short.

Can you give us some background on the fish... how long you've had it, what it was eating, tank mates, did this happen all of a sudden or did it develop slowly, ect. More info might help us help you.

Tom