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

"+u+"

",v+="
";if(p>i){for(v+="
",p==t&&(v+="

More>>

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

"+sMediaGroupTitle+"

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

"+g+"

",L+="
",fGroupRelationFree2(u,0,"sGroupRelationFree2_"+u,s,l),fMGLink9_NewTop(u,"sURL_"+u,s);if(c>i){for(L+="
    ",m=1+i;m<=c;m++)u=d.oItemList[m-1].iMediaGroup,f=d.oItemList[m-1].sMediaGroup,v=r+"&iMG="+u,f.length>26?L+="
  • "+f.substring(0,26)+"..
  • ":L+="
  • "+f+"
  • ";L+="
",c==t&&(L+="

More>>

"),L+="
"}$("#"+a).html(L)}else $("#"+a).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewTopList5(e,t,a,s,o,n){var r=s+"/API/GetMediaGroupNewTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:r,cache:!0,dataType:"json",success:function(t){var s=$.parseJSON(JSON.stringify(t));if("0"==s.iErrorCode){var r=0,l="",p="";for(i=1;i<=s.oItemList.length;i++)r=s.oItemList[i-1].iMediaGroup,l=s.oItemList[i-1].sMediaGroup,p+="
  • ",p+="
    "+l+"..
    ",p+="
    "+fSplitReplaceLinkTop(s.oItemList[i-1].sAuthorTitle,"、",o+"&sFilterType=A&sFilter=",2)+"..
    ",p+="
  • ";$("#"+a).html(p)}else $("#"+a).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowTopList(e,t,a,s,o,n,r){var l=s+"/API/GetMediaItemShowTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:l,cache:!0,dataType:"json",success:function(t){var l=$.parseJSON(JSON.stringify(t));if("0"==l.iErrorCode){var p=0,d="",c="";for(i=1;i<=l.oItemList.length;i++)p=l.oItemList[i-1].iSeq,d=l.oItemList[i-1].sTitle,c+="",fMediaItemShowGroupList(p,"sMediaItemShowGroup",s,r);$("#"+a).html(c)}else $("#"+a).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupPage(e,t,a,s,o,n,r,l){var p=n+"&iC="+e,d=t,c=o+"/API/GetMediaGroup.ashx?iC="+e+"&iPNO="+t+"&iPC="+a;$.ajax({url:c,cache:!1,dataType:"json",success:function(t){var a=$.parseJSON(JSON.stringify(t));if("0"==a.iErrorCode){var o=0,n="",c="",h=0;for(i=1;i<=a.oItemList.length;i++)h=a.oItemList[i-1].iTotalCount,o=a.oItemList[i-1].iMediaGroup,n=a.oItemList[i-1].sMediaGroup,c+="";$("#"+s).html(c);var m="",u=Math.ceil(h/iPageCount);if($("#"+s+"PageRecord").html(" "+d+" "+u+", "+h+""),u<=5)for(var f=1;f<=u;f++)m+=d==f?""+f+" ":""+f+" ";else if(d<5){for(f=1;f<=5;f++)m+=d==f?""+f+" ":""+f+" ";m+="... ",m+=""+u+" "}else if(d>=u-3){m+="1 ",m+="... ";for(f=u-4;f<=u;f++)m+=d==f?""+f+" ":""+f+" "}else{m+="1 ",m+="... ";for(f=d-1;f<=d+1;f++)m+=d==f?""+f+" ":""+f+" ";m+="... ",m+=""+u+" "}$("#"+s+"Page").html(m),$("#"+s+"Page2").html(m)}else $("#"+s).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupTypePage(e,t,a,s,o,n,r,l){var p=t,d=n+"&iGT="+e,c=o+"/API/GetMediaGroupType.ashx?iGT="+e+"&iPNO="+t+"&iPC="+a;$.ajax({url:c,cache:!1,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var a=0,o="",n="",c=0,h=0;for(i=1;i<=t.oItemList.length;i++)h=t.oItemList[i-1].iTotalCount,a=t.oItemList[i-1].iMediaGroup,o=t.oItemList[i-1].sMediaGroup,c=t.oItemList[i-1].iChapter,n+="";$("#"+s).html(n);var m="",u=Math.ceil(h/iPageCount);if($("#"+s+"PageRecord").html(" "+p+" "+u+", "+h+""),u<=5)for(var f=1;f<=u;f++)m+=p==f?""+f+" ":""+f+" ";else if(p<5){for(f=1;f<=5;f++)m+=p==f?""+f+" ":""+f+" ";m+="... ",m+=""+u+" "}else if(p>=u-3){m+="1 ",m+="... ";for(f=u-4;f<=u;f++)m+=p==f?""+f+" ":""+f+" "}else{m+="1 ",m+="... ";for(f=p-1;f<=p+1;f++)m+=p==f?""+f+" ":""+f+" ";m+="... ",m+=""+u+" "}$("#"+s+"Page").html(m),$("#"+s+"Page2").html(m)}else $("#"+s).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupNewPage(e,t,a,s,o,n,r,l){var p=t,d=n+"&iC="+e,c=o+"/API/GetMediaGroupNew.ashx?iC="+e+"&iPNO="+t+"&iPC="+a;$.ajax({url:c,cache:!1,dataType:"json",success:function(t){var a=$.parseJSON(JSON.stringify(t));if("0"==a.iErrorCode){var o=0,n="",c="",h=0;for(i=1;i<=a.oItemList.length;i++)h=a.oItemList[i-1].iTotalCount,o=a.oItemList[i-1].iMediaGroup,n=a.oItemList[i-1].sMediaGroup,c+="";$("#"+s).html(c);var m="",u=Math.ceil(h/iPageCount);if($("#"+s+"PageRecord").html(" "+p+" "+u+", "+h+""),u<=5)for(var f=1;f<=u;f++)m+=p==f?""+f+" ":""+f+" ";else if(p<5){for(f=1;f<=5;f++)m+=p==f?""+f+" ":""+f+" ";m+="... ",m+=""+u+" "}else if(p>=u-3){m+="1 ",m+="... ";for(f=u-4;f<=u;f++)m+=p==f?""+f+" ":""+f+" "}else{m+="1 ",m+="... ";for(f=p-1;f<=p+1;f++)m+=p==f?""+f+" ":""+f+" ";m+="... ",m+=""+u+" "}$("#"+s+"Page").html(m),$("#"+s+"Page2").html(m)}else $("#"+s).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowPage(e,t,a,s,o,n,r,l,p){var d=t,c=n+"&iC="+e,h=o+"/API/GetMediaItemShow.ashx?iC="+e+"&iPNO="+t+"&iPC="+a;$.ajax({url:h,cache:!1,dataType:"json",success:function(t){var a=$.parseJSON(JSON.stringify(t));if("0"==a.iErrorCode){var n=0,h="",m=0;for(i=1;i<=a.oItemList.length;i++)m=a.oItemList[i-1].iTotalCount,n=a.oItemList[i-1].iSeq,sTitle=a.oItemList[i-1].sTitle,h+="",fMediaItemShowGroupList(n,"sMediaItemShowGroup",o,p);$("#"+s).html(h);var u="",f=Math.ceil(m/iPageCount);if($("#"+s+"PageRecord").html(" "+d+" "+f+", "+m+""),f<=5)for(var g=1;g<=f;g++)u+=d==g?""+g+" ":""+g+" ";else if(d<5){for(g=1;g<=5;g++)u+=d==g?""+g+" ":""+g+" ";u+="... ",u+=""+f+" "}else if(d>=f-3){u+="1 ",u+="... ";for(g=f-4;g<=f;g++)u+=d==g?""+g+" ":""+g+" "}else{u+="1 ",u+="... ";for(g=d-1;g<=d+1;g++)u+=d==g?""+g+" ":""+g+" ";u+="... ",u+=""+f+" "}$("#"+s+"Page").html(u),$("#"+s+"Page2").html(u)}else $("#"+s).html("");fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupDetail(e,t,i,a){var s=i+"/API/GetMediaGroupDetail.ashx?iMG="+e;$.ajax({url:s,cache:!1,dataType:"json",success:function(e){var s=$.parseJSON(JSON.stringify(e));if("0"==s.iErrorCode){var o,n,r,l,p="",d="";o=s.oItemList[0].iMediaGroup,n=s.oItemList[0].sMediaGroup,r=s.oItemList[0].sAuthorName,l=s.oItemList[0].sKeyword,sDate=s.oItemList[0].sDate,sAuthorRole=s.oItemList[0].sAuthorRole,p+="
    ",p+="

    ",p+="
    ",p+="
    ",p+="
    ",p+="

    "+n+"

    ",p+="

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

    ",sDate.length>=8&&(p+="

    "+fDateWeek(sDate)+"

    "),r.length>0&&(p+="

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

    "),l.length>0&&(p+="

    "+fSplitReplaceLinkTop(l,"、",a+"&sFilterType=K&sFilter=",10)+"

    "),0==sAuthorRole?p+="
    ":1==sAuthorRole?p+="
    ":2==sAuthorRole&&(p+="
    "),p+="
    ",d+="
    "+s.oItemList[0].sDescription+"
    ",fMGLink9(o,"sMGShopLink",i),document.title=n+document.title,$("#"+t+"Title").html(n),$("#"+t).html(p),$("#"+t+"Desc").html(d)}else $("#"+t).hide()},error:function(e){console.log(e.responseText)}})}function fMGLinkRMGChapter(e,t,a,s,o){var n=s+"/API/GetMediaGroupNewTop.ashx?iC="+e+"&iTop="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s=0,n="",r="";for(r+="",$("#"+a).html(r)}else $("#"+a).hide(),$("#"+a+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkRMG(e,t,a,s,o){var n=s+"/API/GetMediaGroupLinkGroupTop.ashx?iMG="+e+"&iTop="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s=0,n="",r="";for(r+="",$("#"+a).html(r),$("#"+a+"Zone").show()}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkRMGItemShow(e,t,a,s,o){var n=s+"/API/GetMediaGroupLinkItemShowTop.ashx?iMG="+e+"&iTop="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s=0,n="",r="";for(r+="",$("#"+a).html(r),$("#"+a+"Zone").show()}else $("#"+a).hide(),$("#"+a+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkBook(e,t,a,s,o,n){var r=s+"/API/GetMediaGroupLinkBookTop.ashx?iMG="+e+"&iTop="+t;$.ajax({url:r,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s=0,r="",l="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iBook,r=t.oItemList[i-1].sBook,l+="
    ",l+="
    "+r+"
    ",l+=""+r+"
    ",l+="
    ";s>0?($("#"+a).html(l),$("#"+a+"Zone").show()):$("#"+a).hide()}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkExtending(e,t,a,s,o,n){var r=o+"/API/GetMediaGroupLinkJournalItemTop.ashx?iMG="+e+"&iTop="+t+"&iW="+a;$.ajax({url:r,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var a=0,o="",r="";for(r+="",a>0?($("#"+s).html(r),$("#"+s+"Zone").show()):$("#"+s).hide()}else $("#"+s).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLinkMore(e,t,a){var s=a+"/API/GetMediaGroupLink.ashx?iMG="+e+"&iSty=1";$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var a=$.parseJSON(JSON.stringify(e));if("0"==a.iErrorCode){var s=[],o="";for(i=1;i<=a.oItemList.length;i++)o=a.oItemList[i-1].sValue,s[a.oItemList[i-1].iFlag]="more";$("#"+t+"13").html(s[13]),$("#"+t+"11").html(s[11]),$("#"+t+"7").html(s[7])}else $("#"+t+"13").hide(),$("#"+t+"11").hide(),$("#"+t+"7").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLink9(e,t,a){var s=a+"/API/GetMediaGroupLink.ashx?iMG="+e+"&iF=9";$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var a=$.parseJSON(JSON.stringify(e));if("0"==a.iErrorCode){var s="";for(i=1;i<=a.oItemList.length;i++)s+="";$("#"+t).html(s),$("#"+t+"Zone").show()}else $("#"+t).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMGLink9_NewTop(e,t,a){var s=a+"/API/GetMediaGroupLink.ashx?iMG="+e+"&iF=9";$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var a=$.parseJSON(JSON.stringify(e));if("0"==a.iErrorCode){var s="";for(i=1;i<=a.oItemList.length;i++)s+="
    ";$("#"+t).html(s),$("#"+t+"Zone").show()}else $("#"+t).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMShowLinkBook(e,t,a,s,o,n){var r=s+"/API/GetMediaShowItemLinkBookTop.ashx?iS="+e+"&iTop="+t;$.ajax({url:r,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s=0,r="",l="";for(i=1;i<=t.oItemList.length;i++)s=t.oItemList[i-1].iBook,r=t.oItemList[i-1].sBook,l+="
    ",l+="
    "+r+"
    ",l+=""+r+"
    ",l+="
    ";s>0?($("#"+a).html(l),$("#"+a+"Zone").show()):$("#"+a).hide()}else $("#"+a).hide(),$("#"+a+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMShowLinkRMG(e,t,a,s,o){var n=s+"/API/GetMediaShowItemLinkGroupTop.ashx?iS="+e+"&iTop="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s=0,n="",r="";for(r+="",s>0?($("#"+a).html(r),$("#"+a+"Zone").show()):($("#"+a).hide(),$("#"+a+"Zone").hide())}else $("#"+a).hide(),$("#"+a+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMShowLinkRMGItemShow(e,t,a,s,o){var n=s+"/API/GetMediaShowItemLinkItemShowTop.ashx?iS="+e+"&iTop="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var s=0,n="",r="";for(r+="",s>0?($("#"+a).html(r),$("#"+a+"Zone").show()):($("#"+a).hide(),$("#"+a+"Zone").hide())}else $("#"+a).hide(),$("#"+a+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMShowLinkExtending(e,t,a,s,o,n){var r=o+"/API/GetMediaShowItemLinkJournalItemTop.ashx?iS="+e+"&iTop="+t+"&iW="+a;$.ajax({url:r,cache:!0,dataType:"json",success:function(e){var t=$.parseJSON(JSON.stringify(e));if("0"==t.iErrorCode){var a=0,o="",r="";for(r+="",a>0?($("#"+s).html(r),$("#"+s+"Zone").show()):$("#"+s).hide()}else $("#"+s).hide(),$("#"+s+"Zone").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMShowLinkMore(e,t,a){var s=a+"/API/GetMediaShowItemLink.ashx?iS="+e;$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var a=$.parseJSON(JSON.stringify(e));if("0"==a.iErrorCode){var s=[],o="";for(i=1;i<=a.oItemList.length;i++)o=a.oItemList[i-1].sValue,s[a.oItemList[i-1].iFlag]="more";$("#"+t+"13").html(s[13]),$("#"+t+"11").html(s[11]),$("#"+t+"7").html(s[7])}else $("#"+t+"13").hide(),$("#"+t+"11").hide(),$("#"+t+"7").hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMShowLink9(e,t,a){var s=a+"/API/GetMediaShowItemLink.ashx?iS="+e+"&iF=9";$.ajax({url:s,cache:!0,dataType:"json",success:function(e){var a=$.parseJSON(JSON.stringify(e));if("0"==a.iErrorCode){var s="";for(i=1;i<=a.oItemList.length;i++)s+="";$("#"+t).html(s),$("#"+t+"Zone").show()}else $("#"+t).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelationFree(e,t,a,s,o){var n=s+"/API/GetMediaGroupRelation.ashx?iMG="+e+"&iFlag="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(t){var n=$.parseJSON(JSON.stringify(t));if("0"==n.iErrorCode){var r=0,l="",p="";for(p="
    ",i=1;i<=n.oItemList.length;i++)r=n.oItemList[i-1].iSeq,l=n.oItemList[i-1].sTitle,p+="";r>0?$("#"+a).html(p):$("#"+a+"Tag").hide()}else $("#"+a+"Tag").hide(),$("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelationFree2(e,t,a,s,o){var n=s+"/API/GetMediaGroupRelation.ashx?iMG="+e+"&iFlag="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(t){var s=$.parseJSON(JSON.stringify(t));if("0"==s.iErrorCode){var n=0,r="";for(i=1;i<=s.oItemList.length;i++)n=s.oItemList[i-1].iSeq,s.oItemList[i-1].sTitle,r+="
    ";$("#"+a).html(r)}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fGroupRelation(e,t,a,s,o){var n=s+"/API/GetMediaGroupRelation.ashx?iMG="+e+"&iFlag="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(t){var n=$.parseJSON(JSON.stringify(t));if("0"==n.iErrorCode){var r=0,l="",p="";for(p="
    ",i=1;i<=n.oItemList.length;i++)r=n.oItemList[i-1].iSeq,l=n.oItemList[i-1].sTitle,p+="";$("#"+a).html(p)}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}function fMediaItemShowNext(e,t,a,s,o){var n=s+"/API/GetMediaItemShowNext.ashx?iS="+e+"&iMG="+t;$.ajax({url:n,cache:!0,dataType:"json",success:function(e){var s=$.parseJSON(JSON.stringify(e));if("0"==s.iErrorCode){var n=0,r="",l="",p="";for(i=1;i<=s.oItemList.length;i++)n=s.oItemList[i-1].iSeq,r=s.oItemList[i-1].sTitle,l=o+"&iS="+n+"&iMG="+t,-1==s.oItemList[i-1].iRow?p+="
    ":p+="";$("#"+a).html(p)}else $("#"+a).hide();fLangSystem(document.getElementById("LangSelect").value)},error:function(e){console.log(e.responseText)}})}