http://jsfiddle.net/MqXxN/5/