I get in the following position on a semi regular basis and don't really know how to play it. Any help would be appreciated.

The situation is:
It is late in a game, either on the bubble or very close to it. Your chip stack might not be the biggest but is mostly in the top 1/3 of players. There is generally 1 or more short stacks.

You are dealt TT, JJ or QQ, and the pot is unopened.

How do you play it in early, mid or late position?

What do you do if the flop comes with 1 or more over cards?