var sSiteChannel='';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,o,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=[];for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].sChapter,a[i-1]=s;0'+s+"、"}e=a.lastIndexOf("、");0"),$("#"+o).html(a)}},error:function(e){console.log(e.responseText)}})}function fSearchTopList(o,n,e,l){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,l){var e=e+"/API/GetMediaItemShowGroup.ashx?iS="+o,r="";$.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,r+=''+a+"、";e=r.lastIndexOf("、");0"),$("#"+n+o).html(""+r),fLangSystem(document.getElementById("LangSelect").value)}},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList(n,e,l,t,r,p){e=t+"/API/GetMediaGroupNewTop.ashx?iC="+n+"&iTop="+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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o+="";$("#"+l).html(o)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH(n,e,l,t,r,p,s){s=t+"/API/GetMediaGroupNewTopCH.ashx?iC="+n+"&iTop="+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].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o+="";$("#"+l).html(o)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList2(d,c,m,h,e,u,f,g){e=e+"/API/GetMediaGroupNewTop.ashx?iC="+d+"&iTop="+c;$.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="",n="",l=i.oItemList.length,r=l
",sMediaGroupOut+=""+o+"",sMediaGroupOut+="
",sMediaGroupOut+="",sMediaGroupOut+="
"+fSplitReplaceLinkTop(i.oItemList[p-1].sAuthorTitle,"、",f+"&sFilterType=A&sFilter=",2)+"
",sMediaGroupOut+="

"+t+"

",sMediaGroupOut+="
";if(m
    ",p=1+m;p<=l;p++)a=i.oItemList[p-1].iMediaGroup,o=i.oItemList[p-1].sMediaGroup,n=g+"&iMG="+a,26"+o.substring(0,26)+"..":sMediaGroupOut+="
  • "+o+"
  • ";sMediaGroupOut+="
",l==c&&(sMediaGroupOut+="

More>>

"),sMediaGroupOut+=""}$("#"+h).html(sMediaGroupOut)}else $("#"+h).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH2(c,m,h,u,e,f,g,v,i){i=e+"/API/GetMediaGroupNewTopCH.ashx?iC="+c+"&iTop="+m+"&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="",n="",l="",r=i.oItemList.length,p=r
",l+=""+o+"",l+="
",l+="",l+="
"+fSplitReplaceLinkTop(i.oItemList[d-1].sAuthorTitle,"、",g+"&sFilterType=A&sFilter=",2)+"
",l+="

"+t+"

",l+="
";if(h",r==m&&(l+="

More>>

"),l+=""}$("#"+u).html(l)}else $("#"+u).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList3(l,e,r,p,t,d,c,m){e=p+"/API/GetMediaGroupNewTop.ashx?iC="+l+"&iTop="+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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,sMediaGroupTitle=t.oItemList[i-1].sMediaGroupTitle,n+="
",n+=""+a+"",n+=""+t.oItemList[i-1].sChapter1+"",n+="
",n+="
",n+="
",n+="
",n+="
",n+="",n+="
"+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",d+"&sFilterType=A&sFilter=",2)+"
",n+="

"+sMediaGroupTitle+"

",n+="
",fGroupRelationFree2(s,0,"sGroupRelationFree2_"+s,p,m),fMGLink9_NewTop(s,"sURL_"+s,p);$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH3(l,e,r,p,t,d,c,m,h){e=p+"/API/GetMediaGroupNewTopCH.ashx?iC="+l+"&iTop="+e+"&sCH="+h;$.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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,sMediaGroupTitle=t.oItemList[i-1].sMediaGroupTitle,n+="
",n+=""+a+"",n+=""+t.oItemList[i-1].sChapter1+"",n+="
",n+="
",n+="
",n+="
",n+="
",n+="",n+="
"+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",d+"&sFilterType=A&sFilter=",2)+"
",n+="

"+sMediaGroupTitle+"

",n+="
",fGroupRelationFreeCH2(s,0,"sGroupRelationFree2_"+s,p,m,h),fMGLink9_NewTop(s,"sURL_"+s,p);$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList4(d,c,m,h,u,f,g,v,L){var e=u+"/API/GetMediaGroupNewTop.ashx?iC="+d+"&iTop="+c;$.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="",o="",n="",l=i.oItemList.length,r=l
",n+=""+a+"",n+=""+i.oItemList[p-1].sChapter1+"",n+="
",n+="
",n+="
",n+="
",n+="
",n+="",n+="
"+fSplitReplaceLinkTop(i.oItemList[p-1].sAuthorTitle,"、",g+"&sFilterType=A&sFilter=",2)+"
",n+="

"+t+"

",n+="
",fGroupRelationFree2(s,0,"sGroupRelationFree2_"+s,u,L),fMGLink9_NewTop(s,"sURL_"+s,u);if(m",l==c&&(n+="

More>>

"),n+=""}$("#"+h).html(n)}else $("#"+h).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH4(d,c,m,h,u,f,g,v,L,I){var e=u+"/API/GetMediaGroupNewTopCH.ashx?iC="+d+"&iTop="+c+"&sCH="+I;$.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="",o="",n="",l=i.oItemList.length,r=l
",n+=""+a+"",n+=""+i.oItemList[p-1].sChapter1+"",n+="
",n+="
",n+="
",n+="
",n+="
",n+="",n+="
"+fSplitReplaceLinkTop(i.oItemList[p-1].sAuthorTitle,"、",g+"&sFilterType=A&sFilter=",2)+"
",n+="

"+t+"

",n+="
",fGroupRelationFreeCH2(s,0,"sGroupRelationFree2_"+s,u,L,I),fMGLink9_NewTop(s,"sURL_"+s,u);if(m",l==c&&(n+="

More>>

"),n+=""}$("#"+h).html(n)}else $("#"+h).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList5(n,e,l,t,r,p){e=t+"/API/GetMediaGroupNewTop.ashx?iC="+n+"&iTop="+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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o+="
  • ",o+="
    "+a+"..
    ",o+="
    "+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",r+"&sFilterType=A&sFilter=",2)+"..
    ",o+="
  • ";$("#"+l).html(o)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH5(n,e,l,t,r,p,s){s=t+"/API/GetMediaGroupNewTopCH.ashx?iC="+n+"&iTop="+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].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o+="
  • ",o+="
    "+a+"..
    ",o+="
    "+fSplitReplaceLinkTop(t.oItemList[i-1].sAuthorTitle,"、",r+"&sFilterType=A&sFilter=",2)+"..
    ",o+="
  • ";$("#"+l).html(o)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList6(l,e,r,t,p,d){e=t+"/API/GetMediaGroupNewTop.ashx?iC="+l+"&iTop="+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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,n+="
    ",n+=""+a+"",n+="

    "+a+"..

    ",n+="

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

    ",n+="
    ",n+="
    ";$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListCH6(l,e,r,t,p,d,s){s=t+"/API/GetMediaGroupNewTopCH.ashx?iC="+l+"&iTop="+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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,n+="
    ",n+=""+a+"",n+="

    "+a+"..

    ",n+="

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

    ",n+="
    ",n+="
    ";$("#"+r).html(n)}else $("#"+r).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListShop(n,e,l,t,r,p){e=t+"/API/GetMediaGroupNewTopShop.ashx?iC="+n+"&iTop="+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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,sMediaGroupTitle=t.oItemList[i-1].sMediaGroupTitle,o+="
    ",o+=""+a+"",o+="

    "+a+"

    ",o+="

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

    ",0
    "),o+="
    ";$("#"+l).html(o),$(".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 $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopListShopCH(n,e,l,t,r,p,s){s=t+"/API/GetMediaGroupNewTopShopCH.ashx?iC="+n+"&iTop="+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].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,sMediaGroupTitle=t.oItemList[i-1].sMediaGroupTitle,o+="
    ",o+=""+a+"",o+="

    "+a+"

    ",o+="

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

    ",0
    "),o+="
    ";$("#"+l).html(o),$(".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 $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowTopList(n,e,l,r,p,d,c){e=r+"/API/GetMediaItemShowTop.ashx?iC="+n+"&iTop="+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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,o+="",fMediaItemShowGroupList(s,"sMediaItemShowGroup",r,c);$("#"+l).html(o)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowTopListCH(n,e,l,r,p,d,c,t){t=r+"/API/GetMediaItemShowTopCH.ashx?iC="+n+"&iTop="+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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,o+="",fMediaItemShowGroupList(s,"sMediaItemShowGroup",r,c);$("#"+l).html(o)}else $("#"+l).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupPage(d,e,t,c,s,a,m,h){var u=a+"&iC="+d,f=e,t=s+"/API/GetMediaGroup.ashx?iC="+d+"&iPNO="+e+"&iPC="+t;$.ajax({url:t,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].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o+="";$("#"+c).html(o);var l="",r=Math.ceil(n/iPageCount);if($("#"+c+"PageRecord").html(" "+f+" "+r+", "+n+""),r<=5)for(var p=1;p<=r;p++)l+=f==p?""+p+" ":""+p+" ";else if(f<5){for(p=1;p<=5;p++)l+=f==p?""+p+" ":""+p+" ";l+="... ",l+=""+r+" "}else if(r-3<=f){l+="1 ",l+="... ";for(p=r-4;p<=r;p++)l+=f==p?""+p+" ":""+p+" "}else{l+="1 ",l+="... ";for(p=f-1;p<=f+1;p++)l+=f==p?""+p+" ":""+p+" ";l+="... ",l+=""+r+" "}$("#"+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(d,e,t,c,s,a,m,h,o){var u=a+"&iC="+d,f=e,o=s+"/API/GetMediaGroupCH.ashx?iC="+d+"&iPNO="+e+"&iPC="+t+"&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].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o+="";$("#"+c).html(o);var l="",r=Math.ceil(n/iPageCount);if($("#"+c+"PageRecord").html(" "+f+" "+r+", "+n+""),r<=5)for(var p=1;p<=r;p++)l+=f==p?""+p+" ":""+p+" ";else if(f<5){for(p=1;p<=5;p++)l+=f==p?""+p+" ":""+p+" ";l+="... ",l+=""+r+" "}else if(r-3<=f){l+="1 ",l+="... ";for(p=r-4;p<=r;p++)l+=f==p?""+p+" ":""+p+" "}else{l+="1 ",l+="... ";for(p=f-1;p<=f+1;p++)l+=f==p?""+p+" ":""+p+" ";l+="... ",l+=""+r+" "}$("#"+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="",l=0;for(i=1;i<=t.oItemList.length;i++)l=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 r="",p=Math.ceil(l/iPageCount);if($("#"+c+"PageRecord").html(" "+u+" "+p+", "+l+""),p<=5)for(var d=1;d<=p;d++)r+=u==d?""+d+" ":""+d+" ";else if(u<5){for(d=1;d<=5;d++)r+=u==d?""+d+" ":""+d+" ";r+="... ",r+=""+p+" "}else if(p-3<=u){r+="1 ",r+="... ";for(d=p-4;d<=p;d++)r+=u==d?""+d+" ":""+d+" "}else{r+="1 ",r+="... ";for(d=u-1;d<=u+1;d++)r+=u==d?""+d+" ":""+d+" ";r+="... ",r+=""+p+" "}$("#"+c+"Page").html(r),$("#"+c+"Page2").html(r)}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="",l=0;for(i=1;i<=t.oItemList.length;i++)l=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 r="",p=Math.ceil(l/iPageCount);if($("#"+c+"PageRecord").html(" "+u+" "+p+", "+l+""),p<=5)for(var d=1;d<=p;d++)r+=u==d?""+d+" ":""+d+" ";else if(u<5){for(d=1;d<=5;d++)r+=u==d?""+d+" ":""+d+" ";r+="... ",r+=""+p+" "}else if(p-3<=u){r+="1 ",r+="... ";for(d=p-4;d<=p;d++)r+=u==d?""+d+" ":""+d+" "}else{r+="1 ",r+="... ";for(d=u-1;d<=u+1;d++)r+=u==d?""+d+" ":""+d+" ";r+="... ",r+=""+p+" "}$("#"+c+"Page").html(r),$("#"+c+"Page2").html(r)}else $("#"+c).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewPage(d,e,t,c,s,a,m,h){var u=e,f=a+"&iC="+d,t=s+"/API/GetMediaGroupNew.ashx?iC="+d+"&iPNO="+e+"&iPC="+t;$.ajax({url:t,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].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o+="";$("#"+c).html(o);var l="",r=Math.ceil(n/iPageCount);if($("#"+c+"PageRecord").html(" "+u+" "+r+", "+n+""),r<=5)for(var p=1;p<=r;p++)l+=u==p?""+p+" ":""+p+" ";else if(u<5){for(p=1;p<=5;p++)l+=u==p?""+p+" ":""+p+" ";l+="... ",l+=""+r+" "}else if(r-3<=u){l+="1 ",l+="... ";for(p=r-4;p<=r;p++)l+=u==p?""+p+" ":""+p+" "}else{l+="1 ",l+="... ";for(p=u-1;p<=u+1;p++)l+=u==p?""+p+" ":""+p+" ";l+="... ",l+=""+r+" "}$("#"+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(d,e,t,c,s,a,m,h,o){var u=e,f=a+"&iC="+d,o=s+"/API/GetMediaGroupNewCH.ashx?iC="+d+"&iPNO="+e+"&iPC="+t+"&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].iMediaGroup,a=t.oItemList[i-1].sMediaGroup,o+="";$("#"+c).html(o);var l="",r=Math.ceil(n/iPageCount);if($("#"+c+"PageRecord").html(" "+u+" "+r+", "+n+""),r<=5)for(var p=1;p<=r;p++)l+=u==p?""+p+" ":""+p+" ";else if(u<5){for(p=1;p<=5;p++)l+=u==p?""+p+" ":""+p+" ";l+="... ",l+=""+r+" "}else if(r-3<=u){l+="1 ",l+="... ";for(p=r-4;p<=r;p++)l+=u==p?""+p+" ":""+p+" "}else{l+="1 ",l+="... ";for(p=u-1;p<=u+1;p++)l+=u==p?""+p+" ":""+p+" ";l+="... ",l+=""+r+" "}$("#"+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(p,e,t,d,c,s,m,h,u){var f=e,g=s+"&iC="+p,t=c+"/API/GetMediaItemShow.ashx?iC="+p+"&iPNO="+e+"&iPC="+t;$.ajax({url:t,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a="",o=0;for(i=1;i<=t.oItemList.length;i++)o=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iSeq,sTitle=t.oItemList[i-1].sTitle,a+="",fMediaItemShowGroupList(s,"sMediaItemShowGroup",c,u);$("#"+d).html(a);var n="",l=Math.ceil(o/iPageCount);if($("#"+d+"PageRecord").html(" "+f+" "+l+", "+o+""),l<=5)for(var r=1;r<=l;r++)n+=f==r?""+r+" ":""+r+" ";else if(f<5){for(r=1;r<=5;r++)n+=f==r?""+r+" ":""+r+" ";n+="... ",n+=""+l+" "}else if(l-3<=f){n+="1 ",n+="... ";for(r=l-4;r<=l;r++)n+=f==r?""+r+" ":""+r+" "}else{n+="1 ",n+="... ";for(r=f-1;r<=f+1;r++)n+=f==r?""+r+" ":""+r+" ";n+="... ",n+=""+l+" "}$("#"+d+"Page").html(n),$("#"+d+"Page2").html(n)}else $("#"+d).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowPageCH(p,e,t,d,c,s,m,h,u,a){var f=e,g=s+"&iC="+p,a=c+"/API/GetMediaItemShowCH.ashx?iC="+p+"&iPNO="+e+"&iPC="+t+"&sCH="+a;$.ajax({url:a,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s,a="",o=0;for(i=1;i<=t.oItemList.length;i++)o=t.oItemList[i-1].iTotalCount,s=t.oItemList[i-1].iSeq,sTitle=t.oItemList[i-1].sTitle,a+="",fMediaItemShowGroupList(s,"sMediaItemShowGroup",c,u);$("#"+d).html(a);var n="",l=Math.ceil(o/iPageCount);if($("#"+d+"PageRecord").html(" "+f+" "+l+", "+o+""),l<=5)for(var r=1;r<=l;r++)n+=f==r?""+r+" ":""+r+" ";else if(f<5){for(r=1;r<=5;r++)n+=f==r?""+r+" ":""+r+" ";n+="... ",n+=""+l+" "}else if(l-3<=f){n+="1 ",n+="... ";for(r=l-4;r<=l;r++)n+=f==r?""+r+" ":""+r+" "}else{n+="1 ",n+="... ";for(r=f-1;r<=f+1;r++)n+=f==r?""+r+" ":""+r+" ";n+="... ",n+=""+l+" "}$("#"+d+"Page").html(n),$("#"+d+"Page2").html(n)}else $("#"+d).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupDetail(e,l,r,p){e=r+"/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,fMGLink9(t,"sMGShopLink",r),document.title=s+document.title,$("#"+l+"Title").html(s),$("#"+l).html(i),$("#"+l+"Desc").html(e)):$("#"+l).hide()},error:function(e){console.log(e.responseText)}})}function fGroupDetail_NoSearch(e,l,r,i){e=r+"/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,fMGLink9(t,"sMGShopLink",r),document.title=s+document.title,$("#"+l+"Title").html(s),$("#"+l).html(i),$("#"+l+"Desc").html(e)):$("#"+l).hide()},error:function(e){console.log(e.responseText)}})}function fMGLinkRMGChapter(e,t,n,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="";for(o+="",$("#"+n).html(o)}else $("#"+n).hide(),$("#"+n+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkRMG(e,t,n,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="";for(o+="",$("#"+n).html(o),$("#"+n+"Zone").show()}else $("#"+n).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkRMGItemShow(e,t,n,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="";for(o+="",$("#"+n).html(o),$("#"+n+"Zone").show()}else $("#"+n).hide(),$("#"+n+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkBook(e,t,n,s,l,r){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 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 fMShowLinkBook(e,t,n,s,l,r){t=s+"/API/GetMediaShowItemLinkBookTop.ashx?iS="+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].iId,s=t.oItemList[i-1].sMediaGroup,o+="
  • "+s+""+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"
  • ";o+="",0",i=1;i<=t.oItemList.length;i++)a=t.oItemList[i-1].iSeq,s=t.oItemList[i-1].sTitle,o+="
  • "+s+""+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"
  • ";o+="",0",i=1;i<=t.oItemList.length;i++)a=t.oItemList[i-1].iSeq,s=t.oItemList[i-1].sTitle,o+="
  • "+s+""+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"
  • ";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 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(n,e,l,r,p){e=r+"/API/GetMediaGroupRelation.ashx?iMG="+n+"&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=0,o="",o="
    ";for(i=1;i<=t.oItemList.length;i++)a=t.oItemList[i-1].iSeq,s=t.oItemList[i-1].sTitle,o+="";0";for(i=1;i<=t.oItemList.length;i++)a=t.oItemList[i-1].iSeq,s=t.oItemList[i-1].sTitle,o+="";0
    ";$("#"+n).html(a)}else $("#"+n).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelationFreeCH2(o,e,n,t,l,s){s=t+"/API/GetMediaGroupRelationCH.ashx?iMG="+o+"&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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,t.oItemList[i-1].sTitle,a+="
    ";$("#"+n).html(a)}else $("#"+n).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelation(n,e,l,r,p){e=r+"/API/GetMediaGroupRelation.ashx?iMG="+n+"&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="",o="
    ";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,o+="";$("#"+l).html(o)}else $("#"+l).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelationCH(n,e,l,r,p,t){t=r+"/API/GetMediaGroupRelationCH.ashx?iMG="+n+"&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="",o="
    ";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,o+="";$("#"+l).html(o)}else $("#"+l).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelation2(p,e,d,t,c){e=t+"/API/GetMediaGroupRelation.ashx?iMG="+p+"&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,l,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].iFileVideoSec,n=t.oItemList[i-1].sDescriptionShow,l=c+"&iS="+s+"&iMG="+p,r+="
    ",r+=""+o+""+fSplitReplace(t.oItemList[i-1].sAuthorRole,"、")+":"+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"",0有講義資料可下載"),r+=""+fTimeTransfer("hh",a)+"",0
    ",r+="
    "+n+"
    "):r+="";$("#"+d).html(r)}else $("#"+d).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelation2CH(p,e,d,t,c,s){s=t+"/API/GetMediaGroupRelationCH.ashx?iMG="+p+"&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,l,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].iFileVideoSec,n=t.oItemList[i-1].sDescriptionShow,l=c+"&iS="+s+"&iMG="+p,r+="
    ",r+=""+o+""+fSplitReplace(t.oItemList[i-1].sAuthorRole,"、")+":"+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"",0有講義資料可下載"),r+=""+fTimeTransfer("hh",a)+"",0
    ",r+="
    "+n+"
    "):r+="";$("#"+d).html(r)}else $("#"+d).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fCardOrderFormItemFileMediaGroupRelation(l,r,p,e,d,t,c){e=t+"/API/GetCardOrderFormItemFileDetailMediaGroupRelation.ashx?iOF="+l+"&iP="+r+"&iMG="+p+"&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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,iFileVideoSec=t.oItemList[i-1].iFileVideoSec,sDescriptionShow=t.oItemList[i-1].sDescriptionShow,o=c+"&iOF="+l+"&iP="+r+"&iMG="+p+"&iS="+s,n+="
    ",n+=""+a+""+fSplitReplace(t.oItemList[i-1].sAuthorRole,"、")+":"+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"",0有講義資料可下載"),n+=""+fTimeTransfer("hh",iFileVideoSec)+"",0"+sDescriptionShow+""),n+="
    ";$("#"+d).html(n)}else $("#"+d).hide()},error:function(e){console.log(e.responseText)}})}function fCardOrderFormItemFileMediaGroupRelationCH(l,r,p,e,d,t,c,s){s=t+"/API/GetCardOrderFormItemFileDetailMediaGroupRelationCH.ashx?iOF="+l+"&iP="+r+"&iMG="+p+"&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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,iFileVideoSec=t.oItemList[i-1].iFileVideoSec,sDescriptionShow=t.oItemList[i-1].sDescriptionShow,o=c+"&iOF="+l+"&iP="+r+"&iMG="+p+"&iS="+s,n+="
    ",n+=""+a+""+fSplitReplace(t.oItemList[i-1].sAuthorRole,"、")+":"+fSplitReplace(t.oItemList[i-1].sAuthorName,"、")+"",0有講義資料可下載"),n+=""+fTimeTransfer("hh",iFileVideoSec)+"",0"+sDescriptionShow+""),n+="
    ";$("#"+d).html(n)}else $("#"+d).hide()},error:function(e){console.log(e.responseText)}})}function fMediaItemShowNext(e,l,r,t,p){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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,o=p+"&iS="+s+"&iMG="+l,-1==t.oItemList[i-1].iRow?n+="
    ":n+="";$("#"+r).html(n)}else $("#"+r).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowNextCH(e,l,r,t,p,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="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iSeq,a=t.oItemList[i-1].sTitle,o=p+"&iS="+s+"&iMG="+l,-1==t.oItemList[i-1].iRow?n+="
    ":n+="";$("#"+r).html(n)}else $("#"+r).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)}})}