このclassがあったら非表示、とかの動作に使える
// クラス名に「.」をつけないように注意
element.hasClass("クラス名");
$("div").click(function(){
if ( $(this).hasClass("protected") )
$(this).animate({ left: -10 }, 75)
.animate({ left: 10 }, 75)
.animate({ left: -10 }, 75)
.animate({ left: 10 }, 75)
.animate({ left: 0 }, 75);
});