//中引文切换 ——wxy 2017.3.31
var getContentIndexSign,getSubContentIndexSign,setContentIndexSign,setSubContentIndexSign,getContentIndexSignName;//变量用于子公司
function ChangeLanguage(sourceLanguage,targetLanguage){
    // alert(setContentIndexSign);
   var presentUrl=window.location.href.replace(window.location.search,'');
   var newUrl=presentUrl.replace(sourceLanguage,targetLanguage);
   console.log(setContentIndexSign,setSubContentIndexSign);
   if(setContentIndexSign!=undefined){
       if(setSubContentIndexSign==undefined){
           newUrl+="?setContentIndexSign="+setContentIndexSign;
       }else{
           newUrl+="?setContentIndexSign="+setContentIndexSign+"&&setSubContentIndexSign="+setSubContentIndexSign;
       }
   }
   console.log(newUrl);
   window.location.href=newUrl;
}

$(document).ready(function(){
    $("#showWeiChatPopup").mouseover(showWeChatPopup).mouseout(hideWeChatPopup);
    $("#toTop").click(toTop);
});


// 显示微信二维码
function showWeChatPopup(){
    $(".weixin-popup").fadeIn();
}
function hideWeChatPopup(){
    $(".weixin-popup").fadeOut();
}


// 返回顶部
function toTop(){
    $("html,body").animate({scrollTop:0}, 300);
}