The Balance Puzzle

There are twelve blocks. All twelve are identical, except that one of the blocks has a different weight. Using the balance scale a maximum of three times, find the block that has a different weight.

Drag and drop the blocks below onto either side of the balance scale, then press "Weigh".

This is a project by Michael Zeng. Source code. For an explanation of this logic puzzle, see this Wikipedia article.