var sSiteChannel='Web';function fSearchLink(e,i,t){e=document.getElementById(e);e.innerHTML=fSplitReplaceLink(e.innerHTML,"、",t+"&sFilterType="+i+"&sFilter=")}function fMediaChapterLevel(e,o,t,n){e=t+"/API/GetMediaChapterLevel.ashx?iC="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].sChapter,a+=''+s+">";e=a.lastIndexOf(">");0"),$("#"+o).html(a)}},error:function(e){console.log(e.responseText)}})}function fMediaChapterLevel2(e,n,t){e=t+"/API/GetMediaChapterLevel.ashx?iC="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a=[],o=t.oItemList.length;for(i=1;i<=o;i++)s=t.oItemList[i-1].sChapter,a[i-1]=s;4<=o?$("#"+n).html(a[3]):$("#"+n).html(a[o-1])}else $("#"+n).hide},error:function(e){console.log(e.responseText)}})}function fMediaChapter(e,a,t){e=t+"/API/GetMediaChapter.ashx?iC="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+=t.oItemList[i-1].sChapter;$("#"+a).html(s)}},error:function(e){console.log(e.responseText)}})}function fSearchTopList2(o,n,e,r,t){t=e+"/API/GetMediaSearchTop.ashx?iSite="+t;$.ajax({url:t,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="",a="";for(i=1;i<=t.oItemList.length;i++){switch(n){case 1:s=t.oItemList[i-1].sKey;break;case 2:s=t.oItemList[i-1].sKeyCN;break;default:s=t.oItemList[i-1].sKey}a+=''+s+"、"}e=a.lastIndexOf("、");0"),$("#"+o).html(a)}},error:function(e){console.log(e.responseText)}})}function fSearchTopList(o,n,e,r){e+="/API/GetMediaSearchTop.ashx?iSite=";$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="",a="";for(i=1;i<=t.oItemList.length;i++){switch(n){case 1:s=t.oItemList[i-1].sKey;break;case 2:s=t.oItemList[i-1].sKeyCN;break;default:s=t.oItemList[i-1].sKey}a+=''+s+"、"}e=a.lastIndexOf("、");0"),$("#"+o).html(a)}},error:function(e){console.log(e.responseText)}})}function fMediaItemShowGroupList(o,n,e,r){var e=e+"/API/GetMediaItemShowGroup.ashx?iS="+o,l="";$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a;for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,l+=''+a+"、";e=l.lastIndexOf("、");0"),$("#"+n+o).html(""+l),fLangSystem(document.getElementById("LangSelect").value)}},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList(e,t,r,s,l,p){t=s+"/API/GetMediaGroupNewTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,n+="";$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH(e,t,r,s,l,p,a){a=s+"/API/GetMediaGroupNewTopCH.ashx?iC="+e+"&iTop="+t+"&sCH="+a;$.ajax({url:a,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,n+="";$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList2(m,h,u,f,e,g,L,I){e=e+"/API/GetMediaGroupNewTop.ashx?iC="+m+"&iTop="+h;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var i=$.parseJSON(JSON.stringify(e));if("0"==i.iErrorCode){for(var t,s,a=0,o=0,n="",r="",l="",p=i.oItemList.length,d=p
",l+=""+n+"",l+="
",l+="",l+="
"+fSplitReplaceLinkTop(i.oItemList[c-1].sAuthorTitle,"、",L+"&sFilterType=A&sFilter=",2)+"
",l+="

"+t+"

",l+="
";if(u
    ",c=1+u;c<=p;c++)a=i.oItemList[c-1].iMediaGroup,o=i.oItemList[c-1].iChapter1,n=i.oItemList[c-1].sMediaGroup,r=I+"&iC="+o+"&iMG="+a,26"+n.substring(0,26)+"..":l+="
  • "+n+"
  • ";l+="
",p==h&&(l+="

More>>

"),l+=""}$("#"+f).html(l)}else $("#"+f).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH2(m,h,u,f,e,g,L,I,i){i=e+"/API/GetMediaGroupNewTopCH.ashx?iC="+m+"&iTop="+h+"&sCH="+i;$.ajax({url:i,cache:!0,dataType:"json",success:function(e){var i=$.parseJSON(JSON.stringify(e));if("0"==i.iErrorCode){for(var t,s,a=0,o=0,n="",r="",l="",p=i.oItemList.length,d=p
",l+=""+n+"",l+="
",l+="",l+="
"+fSplitReplaceLinkTop(i.oItemList[c-1].sAuthorTitle,"、",L+"&sFilterType=A&sFilter=",2)+"
",l+="

"+t+"

",l+="
";if(u
    ",c=1+u;c<=p;c++)a=i.oItemList[c-1].iMediaGroup,o=i.oItemList[c-1].iChapter1,n=i.oItemList[c-1].sMediaGroup,r=I+"&iC="+o+"&iMG="+a,26"+n.substring(0,26)+"..":l+="
  • "+n+"
  • ";l+="
",p==h&&(l+="

More>>

"),l+=""}$("#"+f).html(l)}else $("#"+f).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList3(e,t,l,p,s,d,c,m){t=p+"/API/GetMediaGroupNewTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,sMediaGroupTitle=t.oItemList[i-1].sMediaGroupTitle,r+="
",r+=""+o+"",r+=""+t.oItemList[i-1].sChapter1+"",r+="
",r+="
",r+="
",r+="
",r+="
",r+="",r+="
"+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",d+"&sFilterType=A&sFilter=",2)+"
",r+="

"+sMediaGroupTitle+"

",r+="
",fGroupRelationFree2(s,0,"sGroupRelationFree2_"+s,p,m),fMGPriceLink_NewTop(s,"sURL_"+s,p);$("#"+l).html(r)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH3(e,t,l,p,s,d,c,m,h){t=p+"/API/GetMediaGroupNewTopCH.ashx?iC="+e+"&iTop="+t+"&sCH="+h;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,sMediaGroupTitle=t.oItemList[i-1].sMediaGroupTitle,r+="
",r+=""+o+"",r+=""+t.oItemList[i-1].sChapter1+"",r+="
",r+="
",r+="
",r+="
",r+="
",r+="",r+="
"+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",d+"&sFilterType=A&sFilter=",2)+"
",r+="

"+sMediaGroupTitle+"

",r+="
",fGroupRelationFreeCH2(s,0,"sGroupRelationFree2_"+s,p,m,h),fMGPriceLink_NewTop(s,"sURL_"+s,p);$("#"+l).html(r)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList4(c,m,h,u,f,g,L,I,v){var e=f+"/API/GetMediaGroupNewTop.ashx?iC="+c+"&iTop="+m;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var i=$.parseJSON(JSON.stringify(e));if("0"==i.iErrorCode){for(var t,s=0,a=0,o="",n="",r="",l=i.oItemList.length,p=l
",r+=""+o+"",r+=""+i.oItemList[d-1].sChapter1+"",r+="
",r+="
",r+="
",r+="
",r+="
",r+="",r+="
"+fSplitReplaceLinkTop(i.oItemList[d-1].sAuthorTitle,"、",L+"&sFilterType=A&sFilter=",2)+"
",r+="

"+t+"

",r+="
",fGroupRelationFree2(s,0,"sGroupRelationFree2_"+s,f,v),fMGPriceLink_NewTop(s,"sURL_"+s,f);if(h
    ",d=1+h;d<=l;d++)s=i.oItemList[d-1].iMediaGroup,a=i.oItemList[d-1].iChapter1,o=i.oItemList[d-1].sMediaGroup,n=I+"&iC="+a+"&iMG="+s,26"+o.substring(0,26)+"..":r+="
  • "+o+"
  • ";r+="
",l==m&&(r+="

More>>

"),r+=""}$("#"+u).html(r)}else $("#"+u).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH4(c,m,h,u,f,g,L,I,v,A){var e=f+"/API/GetMediaGroupNewTopCH.ashx?iC="+c+"&iTop="+m+"&sCH="+A;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var i=$.parseJSON(JSON.stringify(e));if("0"==i.iErrorCode){for(var t,s=0,a=0,o="",n="",r="",l=i.oItemList.length,p=l
",r+=""+o+"",r+=""+i.oItemList[d-1].sChapter1+"",r+="
",r+="
",r+="
",r+="
",r+="
",r+="",r+="
"+fSplitReplaceLinkTop(i.oItemList[d-1].sAuthorTitle,"、",L+"&sFilterType=A&sFilter=",2)+"
",r+="

"+t+"

",r+="
",fGroupRelationFreeCH2(s,0,"sGroupRelationFree2_"+s,f,v,A),fMGPriceLink_NewTop(s,"sURL_"+s,f);if(h
    ",d=1+h;d<=l;d++)s=i.oItemList[d-1].iMediaGroup,a=i.oItemList[d-1].iChapter1,o=i.oItemList[d-1].sMediaGroup,n=I+"&iC="+a+"&iMG="+s,26"+o.substring(0,26)+"..":r+="
  • "+o+"
  • ";r+="
",l==m&&(r+="

More>>

"),r+=""}$("#"+u).html(r)}else $("#"+u).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList5(e,t,r,s,l,p){t=s+"/API/GetMediaGroupNewTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,n+="
  • ",n+="
    "+o+"..
    ",n+="
    "+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",l+"&sFilterType=A&sFilter=",2)+"..
    ",n+="
  • ";$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH5(e,t,r,s,l,p,a){a=s+"/API/GetMediaGroupNewTopCH.ashx?iC="+e+"&iTop="+t+"&sCH="+a;$.ajax({url:a,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,n+="
  • ",n+="
    "+o+"..
    ",n+="
    "+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",l+"&sFilterType=A&sFilter=",2)+"..
    ",n+="
  • ";$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList6(e,t,l,s,p,d){t=s+"/API/GetMediaGroupNewTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,r+="
    ",r+=""+o+"",r+="

    "+o+"..

    ",r+="

    "+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",p+"&sFilterType=A&sFilter=",2)+"..

    ",r+="
    ",r+="
    ";$("#"+l).html(r)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH6(e,t,l,s,p,d,a){a=s+"/API/GetMediaGroupNewTopCH.ashx?iC="+e+"&iTop="+t+"&sCH="+a;$.ajax({url:a,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,r+="
    ",r+=""+o+"",r+="

    "+o+"..

    ",r+="

    "+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",p+"&sFilterType=A&sFilter=",2)+"..

    ",r+="
    ",r+="
    ";$("#"+l).html(r)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListShop(e,t,r,s,l,p){t=s+"/API/GetMediaGroupNewTopShop.ashx?iC="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,sMediaGroupTitle=t.oItemList[i-1].sMediaGroupTitle,n+="
    ",n+=""+o+"",n+="

    "+o+"

    ",n+="

    "+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",l+"&sFilterType=A&sFilter=",2)+"

    ",0
    "),n+="
    ";$("#"+r).html(n),$(".grid-4").owlCarousel("refresh"),$(".grid-4").trigger("destroy.owl.carousel"),$(".grid-4").owlCarousel({stagePadding:7,margin:20,loop:!0,nav:!0,dots:!1,autoplay:!1,navText:['',''],responsiveClass:!0,autoplayTimeout:1e4,responsive:{0:{canter:!0,items:1},768:{items:3},1250:{items:4}}})}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListShopCH(e,t,r,s,l,p,a){a=s+"/API/GetMediaGroupNewTopShopCH.ashx?iC="+e+"&iTop="+t+"&sCH="+a;$.ajax({url:a,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,sMediaGroupTitle=t.oItemList[i-1].sMediaGroupTitle,n+="
    ",n+=""+o+"",n+="

    "+o+"

    ",n+="

    "+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",l+"&sFilterType=A&sFilter=",2)+"

    ",0
    "),n+="
    ";$("#"+r).html(n),$(".grid-4").owlCarousel("refresh"),$(".grid-4").trigger("destroy.owl.carousel"),$(".grid-4").owlCarousel({stagePadding:7,margin:20,loop:!0,nav:!0,dots:!1,autoplay:!1,navText:['',''],responsiveClass:!0,autoplayTimeout:1e4,responsive:{0:{canter:!0,items:1},768:{items:3},1250:{items:4}}})}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowTopList(e,t,r,l,p,d,c){t=l+"/API/GetMediaItemShowTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sTitle,n+="",fMediaItemShowGroupList(s,"sMediaItemShowGroup",l,c);$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowTopListCH(e,t,r,l,p,d,c,s){s=l+"/API/GetMediaItemShowTopCH.ashx?iC="+e+"&iTop="+t+"&sCH="+s;$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sTitle,n+="",fMediaItemShowGroupList(s,"sMediaItemShowGroup",l,c);$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupPage(e,t,s,c,a,o,m,h){var u=o+"&iC="+e,f=t,s=a+"/API/GetMediaGroup.ashx?iC="+e+"&iPNO="+t+"&iPC="+s;$.ajax({url:s,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="",r=0;for(i=1;i<=t.oItemList.length;i++)r=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,n+="";$("#"+c).html(n);var l="",p=Math.ceil(r/iPageCount);if($("#"+c+"PageRecord").html(" "+f+" "+p+", "+r+""),p<=5)for(var d=1;d<=p;d++)l+=f==d?""+d+" ":""+d+" ";else if(f<5){for(d=1;d<=5;d++)l+=f==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}else if(p-3<=f){l+="1 ",l+="... ";for(d=p-4;d<=p;d++)l+=f==d?""+d+" ":""+d+" "}else{l+="1 ",l+="... ";for(d=f-1;d<=f+1;d++)l+=f==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}$("#"+c+"Page").html(l),$("#"+c+"Page2").html(l)}else $("#"+c).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupPageCH(e,t,s,c,a,o,m,h,n){var u=o+"&iC="+e,f=t,n=a+"/API/GetMediaGroupCH.ashx?iC="+e+"&iPNO="+t+"&iPC="+s+"&sCH="+n;$.ajax({url:n,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="",r=0;for(i=1;i<=t.oItemList.length;i++)r=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iMediaGroup,o=t.oItemList[i-1].sMediaGroup,a=t.oItemList[i-1].iChapter1,n+="";$("#"+c).html(n);var l="",p=Math.ceil(r/iPageCount);if($("#"+c+"PageRecord").html(" "+f+" "+p+", "+r+""),p<=5)for(var d=1;d<=p;d++)l+=f==d?""+d+" ":""+d+" ";else if(f<5){for(d=1;d<=5;d++)l+=f==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}else if(p-3<=f){l+="1 ",l+="... ";for(d=p-4;d<=p;d++)l+=f==d?""+d+" ":""+d+" "}else{l+="1 ",l+="... ";for(d=f-1;d<=f+1;d++)l+=f==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}$("#"+c+"Page").html(l),$("#"+c+"Page2").html(l)}else $("#"+c).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupType(e,a,t){e=t+"/API/GetMediaGroupTypeName.ashx?iGT="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+=t.oItemList[i-1].sGroupType;$("#"+a).html(s),document.title=s+","+document.title}},error:function(e){console.log(e.responseText)}})}function fGroupTypePage(e,t,s,c,a,o,m,h){var u=t,f=o+"&iGT="+e,s=a+"/API/GetMediaGroupType.ashx?iGT="+e+"&iPNO="+t+"&iPC="+s;$.ajax({url:s,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="",r=0;for(i=1;i<=t.oItemList.length;i++)r=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o=t.oItemList[i-1].iChapter,n+="";$("#"+c).html(n);var l="",p=Math.ceil(r/iPageCount);if($("#"+c+"PageRecord").html(" "+u+" "+p+", "+r+""),p<=5)for(var d=1;d<=p;d++)l+=u==d?""+d+" ":""+d+" ";else if(u<5){for(d=1;d<=5;d++)l+=u==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}else if(p-3<=u){l+="1 ",l+="... ";for(d=p-4;d<=p;d++)l+=u==d?""+d+" ":""+d+" "}else{l+="1 ",l+="... ";for(d=u-1;d<=u+1;d++)l+=u==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}$("#"+c+"Page").html(l),$("#"+c+"Page2").html(l)}else $("#"+c).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupTypePageCH(e,t,s,c,a,o,m,h,n){var u=t,f=o+"&iGT="+e,n=a+"/API/GetMediaGroupTypeCH.ashx?iGT="+e+"&iPNO="+t+"&iPC="+s+"&sCH="+n;$.ajax({url:n,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="",r=0;for(i=1;i<=t.oItemList.length;i++)r=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o=t.oItemList[i-1].iChapter,n+="";$("#"+c).html(n);var l="",p=Math.ceil(r/iPageCount);if($("#"+c+"PageRecord").html(" "+u+" "+p+", "+r+""),p<=5)for(var d=1;d<=p;d++)l+=u==d?""+d+" ":""+d+" ";else if(u<5){for(d=1;d<=5;d++)l+=u==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}else if(p-3<=u){l+="1 ",l+="... ";for(d=p-4;d<=p;d++)l+=u==d?""+d+" ":""+d+" "}else{l+="1 ",l+="... ";for(d=u-1;d<=u+1;d++)l+=u==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}$("#"+c+"Page").html(l),$("#"+c+"Page2").html(l)}else $("#"+c).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewPage(e,t,s,c,a,o,m,h){var u=t,f=o+"&iC="+e,s=a+"/API/GetMediaGroupNew.ashx?iC="+e+"&iPNO="+t+"&iPC="+s;$.ajax({url:s,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="",r=0;for(i=1;i<=t.oItemList.length;i++)r=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iMediaGroup,o=t.oItemList[i-1].sMediaGroup,a=t.oItemList[i-1].iChapter1,n+="";$("#"+c).html(n);var l="",p=Math.ceil(r/iPageCount);if($("#"+c+"PageRecord").html(" "+u+" "+p+", "+r+""),p<=5)for(var d=1;d<=p;d++)l+=u==d?""+d+" ":""+d+" ";else if(u<5){for(d=1;d<=5;d++)l+=u==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}else if(p-3<=u){l+="1 ",l+="... ";for(d=p-4;d<=p;d++)l+=u==d?""+d+" ":""+d+" "}else{l+="1 ",l+="... ";for(d=u-1;d<=u+1;d++)l+=u==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}$("#"+c+"Page").html(l),$("#"+c+"Page2").html(l)}else $("#"+c).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewPageCH(e,t,s,c,a,o,m,h,n){var u=t,f=o+"&iC="+e,n=a+"/API/GetMediaGroupNewCH.ashx?iC="+e+"&iPNO="+t+"&iPC="+s+"&sCH="+n;$.ajax({url:n,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="",r=0;for(i=1;i<=t.oItemList.length;i++)r=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iChapter1,o=t.oItemList[i-1].sMediaGroup,n+="";$("#"+c).html(n);var l="",p=Math.ceil(r/iPageCount);if($("#"+c+"PageRecord").html(" "+u+" "+p+", "+r+""),p<=5)for(var d=1;d<=p;d++)l+=u==d?""+d+" ":""+d+" ";else if(u<5){for(d=1;d<=5;d++)l+=u==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}else if(p-3<=u){l+="1 ",l+="... ";for(d=p-4;d<=p;d++)l+=u==d?""+d+" ":""+d+" "}else{l+="1 ",l+="... ";for(d=u-1;d<=u+1;d++)l+=u==d?""+d+" ":""+d+" ";l+="... ",l+=""+p+" "}$("#"+c+"Page").html(l),$("#"+c+"Page2").html(l)}else $("#"+c).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowPage(e,t,s,d,c,a,m,h,u){var f=t,g=a+"&iC="+e,s=c+"/API/GetMediaItemShow.ashx?iC="+e+"&iPNO="+t+"&iPC="+s;$.ajax({url:s,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o="",n=0;for(i=1;i<=t.oItemList.length;i++)n=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].iChapter1,sTitle=t.oItemList[i-1].sTitle,o+="",fMediaItemShowGroupList(s,"sMediaItemShowGroup",c,u);$("#"+d).html(o);var r="",l=Math.ceil(n/iPageCount);if($("#"+d+"PageRecord").html(" "+f+" "+l+", "+n+""),l<=5)for(var p=1;p<=l;p++)r+=f==p?""+p+" ":""+p+" ";else if(f<5){for(p=1;p<=5;p++)r+=f==p?""+p+" ":""+p+" ";r+="... ",r+=""+l+" "}else if(l-3<=f){r+="1 ",r+="... ";for(p=l-4;p<=l;p++)r+=f==p?""+p+" ":""+p+" "}else{r+="1 ",r+="... ";for(p=f-1;p<=f+1;p++)r+=f==p?""+p+" ":""+p+" ";r+="... ",r+=""+l+" "}$("#"+d+"Page").html(r),$("#"+d+"Page2").html(r)}else $("#"+d).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowPageCH(e,t,s,d,c,a,m,h,u,o){var f=t,g=a+"&iC="+e,o=c+"/API/GetMediaItemShowCH.ashx?iC="+e+"&iPNO="+t+"&iPC="+s+"&sCH="+o;$.ajax({url:o,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o="",n=0;for(i=1;i<=t.oItemList.length;i++)n=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].iChapter1,sTitle=t.oItemList[i-1].sTitle,o+="",fMediaItemShowGroupList(s,"sMediaItemShowGroup",c,u);$("#"+d).html(o);var r="",l=Math.ceil(n/iPageCount);if($("#"+d+"PageRecord").html(" "+f+" "+l+", "+n+""),l<=5)for(var p=1;p<=l;p++)r+=f==p?""+p+" ":""+p+" ";else if(f<5){for(p=1;p<=5;p++)r+=f==p?""+p+" ":""+p+" ";r+="... ",r+=""+l+" "}else if(l-3<=f){r+="1 ",r+="... ";for(p=l-4;p<=l;p++)r+=f==p?""+p+" ":""+p+" "}else{r+="1 ",r+="... ";for(p=f-1;p<=f+1;p++)r+=f==p?""+p+" ":""+p+" ";r+="... ",r+=""+l+" "}$("#"+d+"Page").html(r),$("#"+d+"Page2").html(r)}else $("#"+d).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupDetail(e,r,l,p){e=l+"/API/GetMediaGroupDetail.ashx?iMG="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var i,t,s,a,o,n=$.parseJSON(JSON.stringify(e));"0"==n.iErrorCode?(t=0,e=i=o=a=s="",t=n.oItemList[0].iMediaGroup,s=n.oItemList[0].sMediaGroup,a=n.oItemList[0].sAuthorName,o=n.oItemList[0].sKeyword,sDate=n.oItemList[0].sDate,sAuthorRole=n.oItemList[0].sAuthorRole,i+="
    ",i+="

    ",i+="
    ",i+="
    ",i+="
    ",i+="

    "+s+"

    ",i+="

    "+fTimeTransfer("hh",n.oItemList[0].iFileVideoSec)+"

    ",8<=sDate.length&&(i+="

    "+fDateWeek(sDate)+"

    "),0"+fSplitReplaceLinkTop(a,"、",p+"&sFilterType=A&sFilter=",10)+"

    "),0"+fSplitReplaceLinkTop(o,"、",p+"&sFilterType=K&sFilter=",10)+"

    "),0==sAuthorRole?i+="
    ":1==sAuthorRole?i+="
    ":2==sAuthorRole&&(i+="
    "),i+="
    ",e+=""+n.oItemList[0].sDescription,fMGPriceLink(t,"sMGShopLink",l),document.title=s+document.title,$("#"+r+"Title").html(s),$("#"+r).html(i),$("#"+r+"Desc").html(e)):$("#"+r).hide()},error:function(e){console.log(e.responseText)}})}function fGroupDetail_NoSearch(e,r,l,i){e=l+"/API/GetMediaGroupDetail.ashx?iMG="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var i,t,s,a,o,n=$.parseJSON(JSON.stringify(e));"0"==n.iErrorCode?(t=0,e=i=o=a=s="",t=n.oItemList[0].iMediaGroup,s=n.oItemList[0].sMediaGroup,a=n.oItemList[0].sAuthorName,o=n.oItemList[0].sKeyword,sDate=n.oItemList[0].sDate,sAuthorRole=n.oItemList[0].sAuthorRole,i+="
    ",i+="

    ",i+="
    ",i+="
    ",i+="
    ",i+="

    "+s+"

    ",i+="

    "+fTimeTransfer("hh",n.oItemList[0].iFileVideoSec)+"

    ",8<=sDate.length&&(i+="

    "+fDateWeek(sDate)+"

    "),0"+fSplitReplace(a,"、")+"

    "),0"+fSplitReplace(o,"、")+"

    "),0==sAuthorRole?i+="
    ":1==sAuthorRole?i+="
    ":2==sAuthorRole&&(i+="
    "),i+="
    ",e+=""+n.oItemList[0].sDescription,fMGPriceLink(t,"sMGShopLink",l),document.title=s+document.title,$("#"+r+"Title").html(s),$("#"+r).html(i),$("#"+r+"Desc").html(e)):$("#"+r).hide()},error:function(e){console.log(e.responseText)}})}function fMGLinkRMGChapter(e,t,r,s,l){t=s+"/API/GetMediaGroupNewTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(n+="",$("#"+r).html(n)}else $("#"+r).hide(),$("#"+r+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkRMG(e,t,r,s,l){t=s+"/API/GetMediaGroupLinkGroupTop.ashx?iMG="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(n+="",$("#"+r).html(n),$("#"+r+"Zone").show()}else $("#"+r).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkRMGItemShow(e,t,r,s,l){t=s+"/API/GetMediaGroupLinkItemShowTop.ashx?iMG="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="";for(n+="",$("#"+r).html(n),$("#"+r+"Zone").show()}else $("#"+r).hide(),$("#"+r+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkBook(e,t,n,s,r,l){t=s+"/API/GetMediaGroupLinkBookTop.ashx?iMG="+e+"&iTop="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a=0,o="";for(i=1;i<=t.oItemList.length;i++)a=t.oItemList[i-1].iBook,s=t.oItemList[i-1].sBook,o+="
    ",o+="
    "+s+"
    ",o+=""+s+"
    ",o+="
    ";0",i=1;i<=t.oItemList.length;i++)a=t.oItemList[i-1].iJournalItem,s=t.oItemList[i-1].sJournalItem,o+="
  • "+s+""+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+""+t.oItemList[i-1].sJournal+" "+t.oItemList[i-1].sJournalPeriodList+"
  • ";o+="",0more";$("#"+o+"13").html(a[13]),$("#"+o+"11").html(a[11]),$("#"+o+"7").html(a[7])}else $("#"+o+"13").hide(),$("#"+o+"11").hide(),$("#"+o+"7").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLink9(e,a,t){e=t+"/API/GetMediaGroupLink.ashx?iMG="+e+"&iF=9";$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+="";$("#"+a).html(s),$("#"+a+"Zone").show()}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGPriceLink(e,a,t){e=t+"/API/GetMediaGroupPriceLink.ashx?iMG="+e;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+="";$("#"+a).html(s),$("#"+a+"Zone").show()}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLink9_GroupDetail(e,a,o,t){e=t+"/API/GetMediaGroupLink.ashx?iMG="+e+"&iF=9";$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+=" ";$("#"+a).html(s),$("#"+o).html(s)}else $("#"+a).hide(),$("#"+o).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGPriceLink_GroupDetail(e,a,t){e=t+"/API/GetMediaGroupPriceLink.ashx?iMG="+e;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+=" ";$("#"+a).html(s),$("#"+a+"Zone").show()}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLink9_NewTop(e,a,t){e=t+"/API/GetMediaGroupLink.ashx?iMG="+e+"&iF=9";$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+="
    ";$("#"+a).html(s),$("#"+a+"Zone").show()}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGPriceLink_NewTop(e,a,t){e=t+"/API/GetMediaGroupPriceLink.ashx?iMG="+e;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+="
    ";$("#"+a).html(s),$("#"+a+"Zone").show()}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaGroupLinkStopTime(e,d,t,c){e=t+"/API/GetMediaGroupLinkStopTime.ashx?iMG="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r,l="",p="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].iSeq,o=t.oItemList[i-1].iChapter,t.oItemList[i-1].iOrderGroup,n=t.oItemList[i-1].sTitle,sTitleMediaItem=t.oItemList[i-1].sTitleMediaItem,r=t.oItemList[i-1].sTime,l+="
    ",sTitleMediaItem==p?l+="":l+="

    "+sTitleMediaItem+"

    ",l+=""+r+"

    "+n+"

    ",l+="
    ",p=sTitleMediaItem;1",o+="
    "+s+"
    ",o+=""+s+"
    ",o+="";0",i=1;i<=t.oItemList.length;i++)o=t.oItemList[i-1].iId,s=t.oItemList[i-1].iChapter,a=t.oItemList[i-1].sMediaGroup,n+="
  • "+a+""+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"
  • ";n+="",0",i=1;i<=t.oItemList.length;i++)o=t.oItemList[i-1].iSeq,s=t.oItemList[i-1].iChapter,a=t.oItemList[i-1].sTitle,n+="
  • "+a+""+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"
  • ";n+="",0",i=1;i<=t.oItemList.length;i++)o=t.oItemList[i-1].iSeq,s=t.oItemList[i-1].iChapter,a=t.oItemList[i-1].sTitle,n+="
  • "+a+""+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"
  • ";n+="",0",i=1;i<=t.oItemList.length;i++)a=t.oItemList[i-1].iJournalItem,s=t.oItemList[i-1].sJournalItem,o+="
  • "+s+""+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+""+t.oItemList[i-1].sJournal+" "+t.oItemList[i-1].sJournalPeriodList+"
  • ";o+="",0more";$("#"+o+"13").html(a[13]),$("#"+o+"11").html(a[11]),$("#"+o+"7").html(a[7])}else $("#"+o+"13").hide(),$("#"+o+"11").hide(),$("#"+o+"7").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMShowLink9(e,a,t){e=t+"/API/GetMediaShowItemLink.ashx?iS="+e+"&iF=9";$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s="";for(i=1;i<=t.oItemList.length;i++)s+="";$("#"+a).html(s),$("#"+a+"Zone").show()}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelationFree(r,e,l,p,d){e=p+"/API/GetMediaGroupRelation.ashx?iMG="+r+"&iFlag="+e;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o=0,n="",n="
    ";for(i=1;i<=t.oItemList.length;i++)o=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,s=t.oItemList[i-1].iChapter,n+="";0";for(i=1;i<=t.oItemList.length;i++)o=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,s=t.oItemList[i-1].iChapter,n+="";0
    ";$("#"+r).html(o)}else $("#"+r).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelationFreeCH2(n,e,r,t,l,s){s=t+"/API/GetMediaGroupRelationCH.ashx?iMG="+n+"&iFlag="+e+"&sCH="+s;$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,t.oItemList[i-1].sTitle,a=t.oItemList[i-1].iChapter,o+="
    ";$("#"+r).html(o)}else $("#"+r).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelation(r,e,l,p,d){e=p+"/API/GetMediaGroupRelation.ashx?iMG="+r+"&iFlag="+e;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="",n="
    ";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,o=t.oItemList[i-1].sTitle,a=t.oItemList[i-1].iChapter,n+="";$("#"+l).html(n)}else $("#"+l).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelationCH(r,e,l,p,d,t){t=p+"/API/GetMediaGroupRelationCH.ashx?iMG="+r+"&iFlag="+e+"&sCH="+t;$.ajax({url:t,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n="",n="
    ";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,o=t.oItemList[i-1].sTitle,a=t.oItemList[i-1].iChapter,n+="";$("#"+l).html(n)}else $("#"+l).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelation2(d,e,c,t,m){e=t+"/API/GetMediaGroupRelation.ashx?iMG="+d+"&iFlag="+e;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r,l,p="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,n=t.oItemList[i-1].sTitle,o=t.oItemList[i-1].iFileVideoSec,r=t.oItemList[i-1].sDescriptionShow,a=t.oItemList[i-1].iChapter,l=m+"&iS="+s+"&iMG="+d+"&iC="+a,p+="
    ",p+=""+n+""+fSplitReplace(t.oItemList[i-1].sAuthorRole,"、")+":"+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"",0有講義資料可下載"),p+=""+fTimeTransfer("hh",o)+"",0
    ",p+="
    "+r+"
    "):p+="";$("#"+c).html(p)}else $("#"+c).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelationCH2(d,e,c,t,m,s){s=t+"/API/GetMediaGroupRelationCH.ashx?iMG="+d+"&iFlag="+e+"&sCH="+s;$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r,l,p="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,n=t.oItemList[i-1].sTitle,o=t.oItemList[i-1].iFileVideoSec,r=t.oItemList[i-1].sDescriptionShow,a=t.oItemList[i-1].iChapter,l=m+"&iS="+s+"&iMG="+d+"&iC="+a,p+="
    ",p+=""+n+""+fSplitReplace(t.oItemList[i-1].sAuthorRole,"、")+":"+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"",0有講義資料可下載"),p+=""+fTimeTransfer("hh",o)+"",0
    ",p+="
    "+r+"
    "):p+="";$("#"+c).html(p)}else $("#"+c).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fCardOrderFormItemFileMediaGroupRelation(l,p,d,e,c,t,m){e=t+"/API/GetCardOrderFormItemFileDetailMediaGroupRelation.ashx?iOF="+l+"&iP="+p+"&iMG="+d+"&iFlag="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,o=t.oItemList[i-1].sTitle,iFileVideoSec=t.oItemList[i-1].iFileVideoSec,sDescriptionShow=t.oItemList[i-1].sDescriptionShow,a=t.oItemList[i-1].iChapter,n=m+"&iOF="+l+"&iP="+p+"&iMG="+d+"&iS="+s+"&iC="+a,r+="
    ",r+=""+o+""+fSplitReplace(t.oItemList[i-1].sAuthorRole,"、")+":"+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"",0有講義資料可下載"),r+=""+fTimeTransfer("hh",iFileVideoSec)+"",0"+sDescriptionShow+""),r+="
    ";$("#"+c).html(r)}else $("#"+c).hide()},error:function(e){console.log(e.responseText)}})}function fCardOrderFormItemFileMediaGroupRelationCH(l,p,d,e,c,t,m,s){s=t+"/API/GetCardOrderFormItemFileDetailMediaGroupRelationCH.ashx?iOF="+l+"&iP="+p+"&iMG="+d+"&iFlag="+e+"&sCH="+s;$.ajax({url:s,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,o=t.oItemList[i-1].sTitle,iFileVideoSec=t.oItemList[i-1].iFileVideoSec,sDescriptionShow=t.oItemList[i-1].sDescriptionShow,a=t.oItemList[i-1].iChapter,n=m+"&iOF="+l+"&iP="+p+"&iMG="+d+"&iS="+s+"&iC="+a,r+="
    ",r+=""+o+""+fSplitReplace(t.oItemList[i-1].sAuthorRole,"、")+":"+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"",0有講義資料可下載"),r+=""+fTimeTransfer("hh",iFileVideoSec)+"",0"+sDescriptionShow+""),r+="
    ";$("#"+c).html(r)}else $("#"+c).hide()},error:function(e){console.log(e.responseText)}})}function fMediaItemShowNext(e,l,p,t,d){e=t+"/API/GetMediaItemShowNext.ashx?iS="+e+"&iMG="+l;$.ajax({url:e,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,o=t.oItemList[i-1].sTitle,a=t.oItemList[i-1].iChapter,n=d+"&iS="+s+"&iMG="+l+"&iC="+a,-1==t.oItemList[i-1].iRow?r+="
    ":r+="";$("#"+p).html(r)}else $("#"+p).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowNextCH(e,l,p,t,d,s){s=t+"/API/GetMediaItemShowNextCH.ashx?iS="+e+"&iMG="+l+"&sCH="+s;$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o,n,r="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,o=t.oItemList[i-1].sTitle,a=t.oItemList[i-1].iChapter,n=d+"&iS="+s+"&iMG="+l+"&iC="+a,-1==t.oItemList[i-1].iRow?r+="
    ":r+="";$("#"+p).html(r)}else $("#"+p).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowStopTime(e,n,t){e=t+"/API/GetMediaItemShowStopTime.ashx?iS="+e;$.ajax({url:e,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a,o="";for(i=1;i<=t.oItemList.length;i++)t.oItemList[i-1].iSeq,s=t.oItemList[i-1].sTitle,o+="
    ",o+=""+a+"

    "+s+"

    ",o+="
    ";$("#"+n).html(o),$("#"+n+"Title").show()}else $("#"+n).hide(),$("#"+n+"Title").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}