document.ready() function throwing object expected error

document.ready() function throwing object expected error

Hi All,
I am trying to implement a autosuggestion functionality in SharePoint search box. For the I used a jquery plugin i.e jquery.js and jquery.min.js.It is working fine in my local system but when I tried to run it in the server it is not showing any error in the search web part and throwing a error in the line
  1.  

    $(document).ready(function(){

    $("ul.multimedia-portfolio").multimedia_portfolio({width: 800});

    });
     
  2. that object is expected here.This line is not a part of the Autosuggestion code that I am using for my requirement.But yes I have a similar document.ready funtion in my code also i.e 
  3. $(document).ready(function () {

    $('#quickSearchTextBox1').keyup(function (event) {

    var previousSelected1 = quickSearchSelectedDivIndex1;

    // catch some keys

    switch (event.keyCode) {

    case 13: // enter

    var selectedDiv1 = $("#quickSearchResults1>div:eq(" + quickSearchSelectedDivIndex1 + ") a");

    if (selectedDiv1.length == 1)

    //window.location = selectedDiv.attr("href");

    $(

    '#quickSearchTextBox1').val(selectedDiv1.attr("name"));

    redirectPage1();

    break;

    case 38: // key up

    quickSearchSelectedDivIndex1--;

    break;

    case 40: // key down

    quickSearchSelectedDivIndex1++;

    break;

    }



  4. while page load i am getting the error in the script using the developer tool and the autosuggestion box is also not getting displayed.
    What is going wrong here?I am not able to identify the problem.Can anybody please suggest...
    Thanks
    Sucharita30