JQuery FixedTable
<p>We found a JQuery plugin called FixedTable that is used to add scroll bars to an HTML table, and I've copied their sample code (see below) from their website into a ASP.Net web form.  Each time the code executes it blows up on line 12, the  $(".tableDiv").each(function(), saying that an Object was Expected.  Anyone know what is wrong with this code?</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="fixedtable.aspx.cs"       Inherits="_Default" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;script type="text/javascript" src="~/js/jquery-1.3.2-vsdoc2.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="~/js/jquery.fixedtable.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    // this "tableDiv" must be the table's class
    $(".tableDiv").each(function() {
        var Id = $(this).get(0).id;
        var maintbheight = 555;
        var maintbwidth = 911;

        $("#" + Id + " .FixedTables").fixedTable({
            width: maintbwidth,
            height: maintbheight,
            fixedColumns: 1,
            // header style
            classHeader: "fixedHead",
            // footer style        
            classFooter: "fixedFoot",
            // fixed column on the left        
            classColumn: "fixedColumn",
            // the width of fixed column on the left      
            fixedColumnWidth: 150,
            // table's parent div's id           
            outerId: Id,
            // tds' in content area default background color                     
            Contentbackcolor: "#FFFFFF",
            // tds' in content area background color while hover.     
            Contenthovercolor: "#99CCFF",
            // tds' in fixed column default background color   
            fixedColumnbackcolor: "#187BAF",
            // tds' in fixed column background color while hover. 
            fixedColumnhovercolor: "#99CCFF"
        });
    });
&lt;/script&gt;
&lt;style type="text/css"&gt;
    body
    {
        width: 900px;
    }
    p
    {
        float:left;
        width: 100%;
        margin: 20px 0px;
    }
    .fixedColumn .fixedTable td
    {
        color: #FFFFFF;
        background-color: #187BAF;
        font-size: 12px;
        font-weight: normal;
    }

    .fixedHead td, .fixedFoot td
    {
        color: #FFFFFF;
        background-color: #187BAF;
        font-size: 12px;
        font-weight: normal;
        padding: 5px;
        border: 1px solid #187BAF;
    }
    .fixedTable td
    {
        font-size: 8.5pt;
        background-color: #FFFFFF;
        padding: 5px;
        text-align: left;
        border: 1px solid #CEE7FF;
    }
    .tableDiv 
    {

    }
&lt;/style&gt;


&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div id="tableDiv_Arrays" class="tableDiv"&gt;
    &lt;table id="Open_Text_Arrays" class="FixedTables"&gt;
        &lt;thead&gt;
            &lt;tr&gt;
                &lt;th&gt;
                    Purpose
                &lt;/th&gt;
                &lt;th&gt;
                    C#
                &lt;/th&gt;
                &lt;th&gt;
                    Php4
                &lt;th&gt;
                &lt;th&gt;
                    Php5
                &lt;/th&gt;
                &lt;th&gt;
                    ActionScript
                &lt;/th&gt;
                &lt;th&gt;
                    JavaScript
                &lt;/th&gt;
                &lt;th&gt;
                    Ruby
                &lt;/th&gt;
            &lt;/tr&gt;
        &lt;thead&gt;
        &lt;tbody&gt;
            &lt;tr&gt;
                &lt;th&gt;
                    data1
                &lt;/th&gt;
                &lt;th&gt;
                    data2
                &lt;/th&gt;
                &lt;th&gt;
                    data3
                &lt;th&gt;
                &lt;th&gt;
                    data4
                &lt;/th&gt;
                &lt;th&gt;
                    data5
                &lt;/th&gt;
                &lt;th&gt;
                    data6
                &lt;/th&gt;
                &lt;th&gt;
                    data7
                &lt;/th&gt;
            &lt;/tr&gt;
        &lt;/tbody&gt;
        &lt;tfoot&gt;
            &lt;tr&gt;
                &lt;th&gt;
                    Purpose
                &lt;/th&gt;
                &lt;th&gt;
                    C#
                &lt;/th&gt;
                &lt;th&gt;
                    Php4
                &lt;th&gt;
                &lt;th&gt;
                    Php5
                &lt;/th&gt;
                &lt;th&gt;
                    ActionScript
                &lt;/th&gt;
                &lt;th&gt;
                    JavaScript
                &lt;/th&gt;
                &lt;th&gt;
                    Ruby
                &lt;/th&gt;
            &lt;/tr&gt;
        &lt;/tfoot&gt;
    &lt;/table&gt;
&lt;/div&gt;

&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
