function SetHomePage(n){document.all?(document.body.style.behavior="url(#default#homepage)",document.body.setHomePage(n)):alert("����,�����������֧���Զ�����ҳ��Ϊ��ҳ����,�����ֶ�������������ø�ҳ��Ϊ��ҳ!")}function AddFavorite(n,t){try{window.external.addFavorite(n,t)}catch(i){try{window.sidebar.addPanel(t,n,"")}catch(i){alert("��Ǹ������ʹ�õ�������޷���ɴ˲�����\n\r�����ղ�ʧ�ܣ���ʹ��Ctrl+D�������")}}}function SetHomePage(n){document.all?(document.body.style.behavior="url(#default#homepage)",document.body.setHomePage(n)):alert("����,�����������֧���Զ�����ҳ��Ϊ��ҳ����,�����ֶ�������������ø�ҳ��Ϊ��ҳ!")}function AddFavorite(n,t){try{window.external.addFavorite(n,t)}catch(i){try{window.sidebar.addPanel(t,n,"")}catch(i){alert("��Ǹ������ʹ�õ�������޷���ɴ˲�����\n\r�����ղ�ʧ�ܣ���ʹ��Ctrl+D�������")}}}function mover(n){n.style.backgroundPosition="0 bottom"}function mout(n){n.style.backgroundPosition="0 top"}function over_o(n){$(n).stop().animate({opacity:0},650)}function out_o(n){$(n).stop().animate({opacity:1},650)}function downloadvwin(){window.open("http://windows.microsoft.com/zh-cn/internet-explorer/download-ie","_blank")}function getCookie(n){var t,i=new RegExp("(^| )"+n+"=([^;]*)(;|$)");return(t=document.cookie.match(i))?unescape(t[2]):null}function Go_forget_pwd(){layer.alert("忘记账号密码，请联系在线客服人员取回！",{icon:0})}function testUserLogin(n){var t=layer.msg("登录中，请耐心等待",{time:3e5,icon:16,shade:[.3,"#000"]});$.ajax({type:"POST",url:"/Account/TestUserLogin",data:addAntiForgeryToken({}),success:function(i){layer.close(t),i.error==0?n==1?window.location.href="/m_Home/Index?rems=0":menu_url(13):layer.alert(i.msg,{icon:0})},error:function(){layer.close(t),layer.alert("发生错误",{icon:0})}})}function inputCheck(n){var t=$("#username").val(),i=$("#passwd").val().trim(),r=$("#rmNum").val();return t==""?(layer.alert("请输入帐号!!",{icon:0}),$("#username").focus(),!1):i==""?(layer.alert("请输入密码!!",{icon:0}),$("#passwd").focus(),!1):r==""?(layer.alert("请输入验证码!!",{icon:0}),$("#rmNum").focus(),!1):($.ajax({type:"POST",url:"/Account/GetVcodeInfo",data:addAntiForgeryToken(),success:function(u){var f=jQuery.parseJSON(u),e,o,s;if(f.success)if(f.name=="tencent")e=new window.TencentCaptcha(f.appid,function(u){u.ret===0?logining(n,t,i,r,u.ticket,u.randstr):layer.msg("未通过验证,请重试!")}),e.show();else if(f.name=="NetEase")initNECaptcha({captchaId:f.appid,element:"#NetEaseIdDiv",mode:"popup",width:320,onReady:function(){},onVerify:function(u,f){u||logining(n,t,i,r,f.validate,f.validate)}},function(n){o=n,o.popUp()},function(){layer.msg("验证码初始化失败!")});else if(f.name=="Geetest"){s=layer.msg("安全验证中，请耐心等待",{time:3e5,icon:16,shade:[.3,"#000"]}),geefunc=function(){var u=captchaObj.getValidate();if(!u)return alert("请完成验证");logining(n,t,i,r,u.geetest_challenge,u.geetest_validate,u.geetest_seccode)};function h(){if(!captchaObj||!(geeData=="00"||geeData=="01")){setTimeout(h,2e3);return}layer.close(s),geeData=="01"&&captchaObj.reset(),geeData=="00"&&(geeData="01"),captchaObj.verify()}h()}else logining(n,t,i,r);else layer.alert("获取不到验证码信息(-1)，请联系管理员！",{icon:5})},error:function(){layer.alert("获取验证码发生错误(-1)！",{icon:5})}}),!1)}function geeInit(){var n=function(n){captchaObj=n;captchaObj.onReady(function(){$("#wait").hide(),setTimeout(function(){geeData="00"},1e3)}).onSuccess(function(){geefunc()}).onError(function(){layer.msg("验证码初始化失败!")})};$.ajax({url:"/Account/GeeTestCaptcha?t="+ +new Date,type:"post",dataType:"json",success:function(t){if(!t.success){layer.alert(t.message);return}t=$.parseJSON(t.data),initGeetest({gt:t.gt,challenge:t.challenge,product:"bind",offline:!t.success,new_captcha:t.new_captcha,https:!0,width:"300px"},n)}})}function logining(n,t,i,r,u,f,e){var o=layer.msg("登录中，请耐心等待",{time:3e5,icon:16,shade:[.3,"#000"]});$.ajax({type:"POST",url:"/Account/Login",data:addAntiForgeryToken({username:t,passwd:$.md5(i).toUpperCase(),rmNum:r,ticket:u,randstr:f,geetest_seccode:e}),success:function(t){layer.close(o),t.error==1?(layer.alert("验证码错误",{icon:5}),$("#rmNum").focus()):t.error==2?(layer.alert("账号或密码错误，"+t.msg,{icon:5}),getKey(),$("#username").focus()):t.error==3?(layer.alert(t.msg,{icon:5}),getKey(),$("#username").focus()):t.error==0?n==1?window.location.href="/m_Home/Index":menu_url(13):layer.alert("登录异常："+t.message,{icon:5})},error:function(){layer.close(o),layer.alert("发生错误",{icon:5})}})}function getKey(){$("#vPic").css("visibility","visible"),$("#vPic").css("display","inline"),$("#vPic").attr("src","/Account/ValidateCode/"+Math.floor(Math.random()*1e4))}function getUserAllMoney(n){var t,i;if(n==1){if(t=new Date(getCookie("get_money_time")),t==null&&(t=new Date),i=new Date,i.getTime()-t.getTime()<1e4)return;document.cookie="get_money_time="+i}$.ajax({type:"POST",url:"/Account/GetUserAllMoney",data:addAntiForgeryToken(),success:function(n){var t=jQuery.parseJSON(n);if(t.Error==1){window.location.href="/Account/Logout";return}setContentDecimal("UserMoney",t.SL),setContentDecimal("MsgNotReadCount",t.MC)},error:function(){setContentDecimal("UserMoney","---"),setContentDecimal("MsgNotReadCount","---")}}),setTimeout("getUserAllMoney(1)",1e4)}function popMessage(){var t=0,i,n,r;$("#MsgNotReadCount").html()&&(t=$("#MsgNotReadCount").html()),t>0?($("#popmsgnum").html(t),layer.open({type:1,title:"温馨提醒",closeBtn:1,area:["250px"],content:$("#popmessage"),offset:"rb",shade:!1,move:!1,time:1e4,shift:2}),i={},n={},n.wmode="transparent",n.quality="high",r={},swfobject.embedSWF("/Content/common/images/other/newmsg.swf","pop_mp3","1","1","8.0.35.0","",i,n,r),setTimeout(popMessage,3e5)):setTimeout(popMessage,5e3)}function popupNotice(n,t,i,r,u){function f(n,t){for(var u=n.length,r="",i=0;i<u;i++)r+='<li title="'+n[i]+'">'+n[i]+"<\/li>";$("#js-notice-pop-list").html(r),$("#js-notice-pop-list li").each(function(n,i){$(i).on("mouseenter",function(){$("#js-notice-pop-content").html(t[n])})})}$("#js-notice-pop").html('<div id="js-notice-pop-list"><\/div> <div id="js-notice-pop-content"><\/div>');try{(function(){if(r!=1)return!1;$.ajax({type:"POST",url:"/Home/GetWebInfoByKey",data:addAntiForgeryToken({code:u}),success:function(n){n.info.length>0&&($("#js-notice-pop-list").html(n.title),$("#js-notice-pop-content").html(n.info),f(n.webTitle,n.webContent),layer.config({extend:["skin/seaning/style.css"]}),layer.ready(function(){var r=n.data;i=r.height,t=r.width;var u=r.headbg,h=r.headtext,c=r.mainbg,l=r.bottombg,f=r.btnbg,e=r.btnbg2,a=r.btntext,o=r.btntext2;u.indexOf("#")==-1&&(u="#817865 url(/Content/common/plugins/layer/skin/seaning/"+u+") 50% 50% repeat-x"),f.indexOf("#")==-1&&(f="#fece2f url(/Content/common/plugins/layer/skin/seaning/"+f+") 50% 50% repeat-x"),t=parseInt(t)+20,i=parseInt(i)+105;var v=n.webInfoList,y=1,s={skin:"layer-ext-seaning",area:[t+"px",i+"px"],type:1,fix:!1,move:!1,title:"网站公告",closeBtn:1,content:$("#js-notice-pop"),btn:["不再提示","","关闭"],yes:function(n){$.cookie("isNotie","Yes",{expires:1}),layer.close(n)},btn5:function(n){layer.close(n)}};s.offset=layerCountOffset(t,i),layer.open(s),$("body .layer-ext-seaning .layui-layer-title").css("background",u),$("body .layer-ext-seaning .layui-layer-title").css("color",h),$("body .layer-ext-seaning .layui-layer-content,body .layer-ext-seaning .layui-layer-content .layui-layer-wrap").css("background",c),$("body .layer-ext-seaning .layui-layer-btn").css("background",l),$("body .layer-ext-seaning .layui-layer-btn .layui-layer-btn0").css("background",f),$("body .layer-ext-seaning .layui-layer-btn .layui-layer-btn0").css("color",a),$("body .layer-ext-seaning .layui-layer-btn .layui-layer-btn2").css("background",e),$("body .layer-ext-seaning .layui-layer-btn .layui-layer-btn2").css("color",o),$(".layui-layer-btn1").css("display","none"),$("#js-notice-pop").css({display:"flex",height:"100%","box-sizing":"border-box",width:"100%"}),$("#js-notice-pop-list").css({width:"266px","font-size":"12px",color:"#222",overflow:"hidden","box-sizing":"border-box",border:"solid 1px rgba(124, 122, 117, 0.25)","text-align":"center"}),$("#js-notice-pop-content").css({padding:"10px"," flex":"1","font-size":"16px",width:"100%",overflow:"auto","word-break":"break-all","box-sizing":"border-box","box-shadow":"0px 0px 5px rgba(0,0,0,.3) inset","margin-left":"8px"}),$("#js-notice-pop-list li").css({padding:"10px","list-style":"none","font-size":"14px",cursor:"pointer","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","border-bottom":"dashed 1px rgba(177, 177, 177, 0.31)",height:"48px"}),$("#js-notice-pop-list li").hover(function(){var n=$("#js-notice-pop").css("background");$("#js-notice-pop-list li").css({color:"black","font-size":"14px"}).css("background",n),$(this).css({color:"#cb0009","font-size":"16px",background:"white",transition:"font-size .2s ease-in-out"})}),n.webInfoList.length==1?($(".layui-layer-btn3").css("display","none"),$("#js-notice-pop-list").css("display","none"),$("#js-notice-pop-content").css("margin-left","0px"),$(".layui-layer-title").text($("#js-notice-pop-list").text())):n.webInfoList.length>1&&$(".layui-layer-title").text(n.title),$("body .layer-ext-seaning .layui-layer-btn .layui-layer-btn1").css("background",e),$("body .layer-ext-seaning .layui-layer-btn .layui-layer-btn1").css("color",o),$(".Popcontent .wzgg-left .wzgg-title").hover(function(){var n=$(this).index();$(".wzgg-left .wzgg-title").removeClass("on"),$(".wzgg-left .wzgg-title").eq(n).addClass("on"),$(".wzgg-right a").removeClass("on"),$(".wzgg-right a").eq(n).addClass("on")})}))}})})()}catch(e){}}function alertModifyPassword(n){layer.alert("尊敬的用户，您好！您已超过 "+n+" 天没有修改登录密码，为确保您的账户安全，请及时修改！",{icon:0},function(){menu_url(37)})}var geeData,captchaObj,geefunc,loginLable;$("li.LS-live, li.LS-ball, li.LS-game, li.LS-ltlottery").subTabs(),$(function(){function n(){setTimeout(function(){$("#navfixed").each(function(){var n=$(window).scrollTop();n>123?$(this).addClass("fixed"):$(this).removeClass("fixed")})},50)}$(window).bind("scroll",n),$(window).bind("resize",n)}),$(document).ready(function(){function i(n,t){$(".m_banner .banner:eq("+n+")").fadeOut(),$(".m_banner .banner:eq("+t+")").fadeIn()}$(".banner_ctrl a").hover(function(){$(this).fadeTo(100,.5)},function(){$(this).fadeTo(100,.1)});var t=$(".m_banner .banner").length-1,n=0;$(".banner_ctrl .prev").click(function(){n2=n-1<0?t:n-1,i(n,n2),n=n2}),$(".banner_ctrl .next").click(function(){n2=n+1>t?0:n+1,i(n,n2),n=n2}),$(function(){var r;$(".m_banner").hover(function(){clearInterval(r)},function(){r=setInterval(function(){n2=n+1>t?0:n+1,i(n,n2),n=n2},4e3)}).trigger("mouseleave")})}),f_com.setHomepage=function(n){document.all?(document.body.style.behavior="url(#default#homepage)",document.body.setHomePage(n)):layer.alert("您的浏览器目前不支援此功能！!",{icon:0})},f_com.bookmarksite=function(n,t){window.sidebar||window.opera?window.sidebar.addPanel(t,n,""):document.all?window.external.AddFavorite(n,t):layer.alert("您的浏览器目前不支援此功能！!",{icon:0})},geefunc=function(){},loginLable=$("#LoginForm").find("label"),loginLable&&loginLable.InputLabels(),"undefined"!=typeof $&&$(function(){var i=$("#ele-float-top").children().length,n=$("#ele-float-top-wrap"),t=(i-1)*42,r=$("#ele-float-top-up"),u=300,f="";n.height(t),n.height()==t&&$("#ele-float-top").show(),$("#ele-float-top-up").click(function(){$("html,body").animate({scrollTop:0},1e3,"easeOutExpo")}),$(window).scroll(function(){var n;n=navigator.userAgent.indexOf("MSIE")!=-1?200:300,$(this).scrollTop()>300?$("#ele-float-top-up").fadeIn(n):$("#ele-float-top-up").stop().fadeOut(n)})}),f_com.cpBetType||setTimeout(popMessage,5e3)