/**
 * gotop
 */
Back2top.init();
/**
 * 图片懒加载
 */
var showeffect = "";
{showeffect = "fadeIn"}
jQuery(document).ready(function($) {
    $(".loadimg img").lazyload({
        placeholder: "/images/grey.gif",
        effect: showeffect,
        failurelimit: 10
    })
});

/**
 * 菜单弹出缩进
 */

function change2() {
    var divDisp2 = document.getElementById("menu").style.display;
    if (divDisp2 == "block") {
        document.getElementById("menu").style.display = "none";
    } else {
        document.getElementById("menu").style.display = "block";
    }
}

/**
 * 点击显示更多，收起
 */

$('.unfold-field').click(function(event) {
    if($('.content').hasClass('article_det_show')) {
        $('.content').removeClass('article_det_show');
        $(this).find('a').html('展开全部内容<i></i>');
        jQuery('.send_mind_box').hide();
    } else {
        $('.content').attr({
            class: 'content article_det_show'
        });
        $(this).find('a').html('收起<i class="cur"></i>');
        jQuery('.send_mind_box').show();
    };
});


/**
 * 是否带视频，原创的样式
 */

$(function(){
    if($('.viewtitle').find('video').length>0) {
        $('.author-info').addClass('author-info_view');
        $('.author-logo').addClass('author-logo_view');
        $('.author-text').addClass('author-text_view');
        $('.author-yuanchang').addClass('author-yuanchang_view');
    }
    else{
        $('.author-info').removeClass('author-info_view');
        $('.author-logo').removeClass('author-logo_view');
        $('.author-text').removeClass('author-text_view');
        $('.author-yuanchang').removeClass('author-yuanchang_view');
    }
})


