/* Js for , Version=1775199487 */
 v.objectType = "product";;v.objectID = 32;;v.showDetail = "Show all";;v.hideDetail = "Hide";;var url = config.webRoot+'file.php?f=source/default/wide/';
var url_s = '.jpg&t=jpg&o=source&s=&v=1648134235';
if(v.categoryID == '7' ){
    var image = url + '15' + url_s;
    var alt = 'News';
    printPic(image,alt);
}else if( v.categoryID == '8'){
    var image = url + '9' + url_s;
    var alt = 'Cases';
    printPic(image,alt);
}else if( v.categoryID == '1'){
    var image = url + '18' + url_s;
    var alt = 'Beeswax';
    printPic(image,alt);
}else if(config.currentModule == 'message' && config.currentMethod == 'index'){
    var image = url +'wzly.jpg';
    var alt = '在线询价';
    printPic(image,alt);
}else if(config.currentModule == 'company' && config.currentMethod == 'index'){
    var image = url + '12' + url_s;
    var alt = 'About Us';
    printPic(image,alt);
}

function printPic(img,alt){
    var html ='';
    html += "<div class='Beehive_Category'>";
    html += "<img src='"+image+"' alt='"+alt+"'>";
    html += "</div>";
    if(config.currentModule == 'blog'){
        $('#blogNav').after(html);
    }else{
        $('.page-wrapper').before(html);
    }
}
;
    $(document).ready(function()
    {
        $.setAjaxForm('#messageForm', function(response)
        {
            if(response.result == 'success')
            {
//                setTimeout(function()
//                    {
//                        var link = createLink('message', 'inquiry', 'objecType=' + v.objectType + '&objectID=' + v.objectID);
////                        setTimeout(function(){location.reload();}, 2000);
//
//                        $('#commentForm').closest('#commentBox').load(link, location.href="#first");
//                    },
//                    1000);
                $("input[type=reset]").trigger("click");
                setTimeout(function(){location.reload();}, 2000);
            }
            else
            {
                if(response.reason == 'needChecking')
                {
                    $('#captchaBox').html(Base64.decode(response.captcha)).show();
                }
            }
        });

    });
