parameterized arrow expand/collapse thingy, TODO: use $.each instead of for...in

demo: http://jsbin.com/uyoduh/7/edit