http://jsfiddle.net/uSbz7/4/