// we hide the tree only if JavaScript is activated
//$('div#categories_block_left_sh ul.dhtml').hide();
//$('div#categories_block_left_sh ul').hide();
$(document).ready(
    function(){
        /*
        $('#product_list .ajax_block_product').mouseover(function(){
                $("a.fb_share",this).removeClass().addClass("fb_share_over");
                $("a.bt_pay",this).removeClass().addClass("bt_pay_over");
            });
        $('#product_list .ajax_block_product').mouseout(function(){
                $("a.fb_share_over",this).removeClass().addClass("fb_share");
                $("a.bt_pay_over",this).removeClass().addClass("bt_pay");
              
            });
        */
        $('div#categories_block_left_sh .block_content').toggle();      
        $('div#categories_block_left_sh').click(function(){
            $('div#categories_block_left_sh h4').toggle();        
            $('div#categories_block_left_sh .block_content').toggle();        
        });
    });

function showProductDailog(productID){
    /*
            $("#dialog_mask").height($(document).height());
            
            $("#dialog #dialog_content #buttons .buynow").attr("href",$("#"+productID + " .buttons .buynow").attr("href"));
            $("#dialog #dialog_content #buttons .facebook").attr("href",$("#"+productID + " .buttons .facebook").attr("href"));
            $("#dialog #dialog_content #dialog_image").attr("src",$("#"+productID + " .product_image").attr("src"));
            $("#dialog #dialog_content #product_name").html($("#"+productID + " h3").html());
            $("#dialog #dialog_content #product_desc_long").html($("#"+productID + " .product_desc_long").html());
            $("#dialog #dialog_content #product_desc").html($("#"+productID + " .product_desc").html());
            $("#dialog #dialog_content #product_price").html($("#"+productID + " .price").html());
            
            $("#dialog").css("position", "absolute");
            $("#dialog").css("top", ($(document).height() / 2 - $("#dialog").height() / 2 - 30) + "px");
            $("#dialog").css("left", ($(document).width() / 2 - $("#dialog").width() / 2) + "px");
            $("#dialog").show();
            $("#dialog_mask").show();
            $("#dialog_mask").click(function(){
            $("#dialog").hide();
            $("#dialog_mask").hide();})
  
            return false;
      */
            return true;
        }
