Treat salary negotiation as trying to solve a problem together, as opposed to trying to get a better figure for yourself. When you can convince your potential employer that it's a problem that you want to work with together, your employer is more likely to want to help solve it.
Also, never give a number first ;)