I have a switch statement and I must be overlooking something, because I don't see why it wouldn't work.
$('.handles a').click(function() {
var li = $(this).parent();
switch ($(li).data('handle')) {
case 'minimize':
$('.window', li).hide();
break;
}
return false;
});
Also setup a fiddle @ http://jsfiddle.net/9aHvx/4/ (click on Min)
It should hide the .window div, but it doesn't :(