Jquery expanding divs by class
<p>I am having trouble with an if statement in the following code, I am trying to trigger an event if a div has a class, which is added and subtracted in a code. Is this the correct way to do this? Because it isn't working? </p>

<pre><code>$(document).ready(function() {

    $('.content_accrd').css({
        "height": "0px"
    });
    $('.content_accrd:eq(0)').addClass("open").css({
        "height": "110px"
    });
    $('.paneltop:eq(0)').css({
        "background-position": "0px 0px"
    })
    $('.paneltop').click(function() {
        **if ($(this).siblings('.content_accrd').attr('class') != "open")** {
            $(this).addClass("open").css({
                "background-position": "0px 0px"
            }).siblings('.content_accrd').animate({
                "height": "110px"
            }, 200)
        } else {
            $(this).reomveclass("open").css({
                "background-position": "0px -21px"
            }).siblings('.content_accrd').animate({
                "height": "0px"
            }, 200);
        }
    })
})
</code></pre>
