$(document).ready(function() {

  highlight_active_sidebar_links();
  $('#content_area').find('td[width*="64%"] b').addClass("hide");
  $('#content_area').find('td[width*="36%"] img').addClass("hide");

});

// Set active class on currently-selected category

var urlParams = {};
(function () {
    var e,
        q = window.location.search.substring(1),
        r = /([^&=]+)=([^&]+)/g;

    while (e = r.exec(q))
       urlParams[decodeURIComponent(e[1])] = decodeURIComponent(e[2]);
})();


$(function(){
    var param = urlParams['Cat'];
     $('#categories a[href^="' + param + '"]').addClass('selected');
 });
 
 function highlight_active_sidebar_links() {
    $("#categories a").each(function(){
        var href = this.getAttribute('href');

        var location = new String( document.location );
        location = location.substr(-href.length );
        //document.write(location);

        if ( location == href) {
            $(this).addClass("active");
        }
    });   
}

    $(function (){  
        $("#sortby").change(function(e) {
            window.location.href = $(this).val();
        });
    });
    
  

