http://jsfiddle.net/raam86/QZW7K/2/