﻿/*
    Paging tools to do JQuery postbacks for results.
    Author: Stuart Gatenby
*/

function submitSearch(page, searchOrder, isListView, sortLetter)
{
    $(this).parent("span").toggleClass("selected");
    $("#prodList").fadeTo("slow", 0.05, function() {
        showProductList(basePath+"Services/SearchJQ.aspx?pg="+page+"&sl="+sortLetter+"&lv="+isListView+"&so="+searchOrder);
    });
    
}

function showProductList(sourceLink)
{
    $("#prodList").load(sourceLink, function() 
    {
        $("#prodList").fadeTo("slow", 1, function() {
             PageWireUp();
         });
        
    });
    return false;
}


