http://jsfiddle.net/ePDq7/