I have a problem with using toggle.

Example is here:

Problem occurs sometimes for ex. when I click at sidebar, than at content and at sidebar again. Something is messing and not works as I want.

What I need is to could click at each ellement of #test div, fade it to 0.5 and print value of clicked ellement inside. If other ellement would be clicked than earlier clicked element should reset (it should fade to 1.0 and print nothing) and new ellement should fade to 0.5 and print his value. Also if the same ellement would be clicked twice it should be "reseted".