Hide div doesn't work?
<p>I have div which it is hidden by default , when the use clicks show link the following javascript method is called:</p>

<pre><code>function ChangeControlVisibility(elementID) {
    var  element = $("#" + elementID);
    if (element.css('display') != 'block' &amp;&amp; element.css('display') != 'table') {
        element.show();
        var tempElement = $('div.expanded');
        if (tempElement.length &gt; 0) {
            tempElement.css('background-image', 'url(../images/arrow1.gif)');
        }
    }
    else {
        element.hide();
        var tempElement = $('div.expanded');
        if (tempElement.length &gt; 0) {
            tempElement.css('background-image', 'url(../images/arrow2.gif)');
        }  
    } 
}
</code></pre>

<p>this step works but when i call the previous method at page_load event the method doesn't work:
element.css('display') undefined.</p>

<p>Is there any problem at the previous code????</p>
