var _continue=!0,_label="",_series="",_cataloguenumber="",_barcode="",_releasedate="",catalogue_detail={fnPlayStop30:function(n,t){var u=document.getElementById("AudioPlayer"),f=n.substring(0,2),i=n.replace(f,""),r=$("#__playing").val(),e=$("#__playingaudio").val();f=="1_"?(r!="0"&&($("#divplaystop_"+r).html('<a href="#" onclick="catalogue_detail.fnPlayStop30(\'1_'+r+"', '"+e+'\'); return false;"><ion-icon name="play-circle" class="ic-play"><\/ion-icon><\/a>'),u.pause()),$("#divplaystop_"+i).html('<a href="#" onclick="catalogue_detail.fnPlayStop30(\'0_'+i+"', '"+t+'\'); return false;"><ion-icon name="pause-circle" class="playing"><\/ion-icon><\/a>'),$("#__playing").val(i),$("#__playingaudio").val(t),catalogue_detail.fnPlayAudio(t)):($("#divplaystop_"+i).html('<a href="#" onclick="catalogue_detail.fnPlayStop30(\'1_'+i+"', '"+t+'\'); return false;"><ion-icon name="play-circle" class="ic-play"><\/ion-icon><\/a>'),$("#__playing").val("0"),$("#__playingaudio").val(""),u.pause())},fnPlayAudio:function(n){$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetAudioUrl",data:{__RequestVerificationToken:common_helpers.fnGetToken(),token:n},type:"POST",cache:!1,success:function(n){n!=""?catalogue_detail.fnPlayNow(n):alert("Invalid token!")},error:function(){alert("Error token!")}})},fnPlayNow:function(n){var t=document.getElementById("AudioPlayer");t.src=n;t.play();t.addEventListener("ended",function(){var n=$("#__playing").val(),i=$("#__playingaudio").val();$("#divplaystop_"+n).html('<a href="#" onclick="catalogue_detail.fnPlayStop30(\'1_'+n+"', '"+i+'\'); return false;"><ion-icon name="play-circle" class="ic-play"><\/ion-icon><\/a>');$("#__playing").val("0");$("#__playingaudio").val("");t.pause();t.currentTime=0});t.addEventListener("error",function(){t.pause();t.currentTime=0;alert("The audio file is not found.")})},fnGetCatalogueDetailByIdForWeb2:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetCatalogueDetailByIdForWeb2",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",async:!1,cache:!1,success:function(n){n.length>0?(_label=n[0].Label,_series=n[0].Series,_cataloguenumber=n[0].CatalogueNumber,_barcode=n[0].Barcode,_releasedate=n[0].ReleaseDate,$("#bc-title").text(n[0].MarketingTitle.replace('<h3 class="text-normal">',"").replace("<\/h3>","")),$("#divalbumtitle").html(n[0].MarketingTitle),$("#divplaceholderalbumtitle").hide(),$("#divalbumtitle").fadeIn(600),$("#divcoverimage").html(n[0].CatalogueImage),$("#divbackcover").html(n[0].CatalogueBackCoverImage),$("#divreviewlink").html(n[0].ReviewLink),$("#divatrlink").html(n[0].ATRLink),$("#divplaceholdercoverimage").hide(),$("#divcoverimage").fadeIn(600),$("#divbackcover").fadeIn(600),$("#divreviewlink").fadeIn(600),$("#divatrlink").fadeIn(600),$("#divdiscoverlink").html(n[0].Linkfire),$("#divplaceholderdiscoverlink").hide(),$("#divdiscoverlink").fadeIn(600),$("#divalbumblurb").html(n[0].Blurb),$("#divplaceholderalbumblurb").hide(),$("#divalbumblurb").fadeIn(600)):_continue=!1},error:function(){_continue=!1}})},fnGetCataloguePersonsForWeb:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetCataloguePersonsForWeb",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divsideinfoperson").html(n);$("#divsideinfopersonmini").html(n);$("#divplaceholdersideinfoperson").hide();$("#divsideinfoperson").fadeIn(600)},error:function(){$("#divplaceholdersideinfoperson").hide();$("#divsideinfoperson").fadeIn(600)}})},fnGetCatalogueGenrePeriodForWeb:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetCatalogueGenrePeriodForWeb",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divsideinfoother").html(_label+_series+n+_cataloguenumber+_barcode+_releasedate);$("#divsideinfoothermini").html(_label+_series+n+_cataloguenumber+_barcode+_releasedate);$("#divplaceholdersideinfoother").hide();$("#divsideinfoother").fadeIn(600)},error:function(){$("#divplaceholdersideinfoother").hide();$("#divsideinfoother").fadeIn(600)}})},fnGetCatalogueTrackForWeb:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetCatalogueTrackForWeb",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divalbumtrack").html(n);$("#divplaceholderalbumtrack").hide();$("#divalbumtrack").fadeIn(600)},error:function(){$("#divplaceholderalbumtrack").hide();$("#divalbumtrack").fadeIn(600)}})},fnGetCatalogueReviewForWeb:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetCatalogueReviewForWeb",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divreviews").html(n);$("#divplaceholderreviews").hide();$("#divreviews").fadeIn(600)},error:function(){$("#divplaceholderreviews").hide();$("#divreviews").fadeIn(600)}})},fnGetCatalogueAboutArtistForWeb:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetCatalogueAboutArtistForWeb",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divaboutartist").html(n);$("#divplaceholderaboutartist").hide();$("#divaboutartist").fadeIn(600)},error:function(){$("#divplaceholderaboutartist").hide();$("#divaboutartist").fadeIn(600)}})},fnGetCatalogueAboutComposerForWeb:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/GetCatalogueAboutComposerForWeb",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divaboutcomposer").html(n);$("#divplaceholderaboutcomposer").hide();$("#divaboutcomposer").fadeIn(600)},error:function(){$("#divplaceholderaboutcomposer").hide();$("#divaboutcomposer").fadeIn(600)}})},fnGetCatalogueAboutReaderForWeb:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetCatalogueAboutReaderForWeb",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divaboutreader").html(n);$("#divplaceholderaboutreader").hide();$("#divaboutreader").fadeIn(600)},error:function(){$("#divplaceholderaboutreader").hide();$("#divaboutreader").fadeIn(600)}})},fnGetCatalogueAlsoAvailableForWeb:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetCatalogueAlsoAvailableForWeb",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divalsoavailable").html(n);$("#divplaceholderalsoavailable").hide();$("#divalsoavailable").fadeIn(600)},error:function(){$("#divplaceholderalsoavailable").hide();$("#divalsoavailable").fadeIn(600)}})},fnGetAwards:function(){var n=$("#__id").val();$.ajax({url:window.location.origin+"/CatalogueDetail/AjxGetAwards",data:{__RequestVerificationToken:common_helpers.fnGetToken(),catalogueId:n},type:"POST",cache:!1,success:function(n){$("#divsideinfoawards").html(n);$("#divsideinfoawardmini").html(n);$("#divsideinfoawards").fadeIn(600)},error:function(){}})}};$(function(){catalogue_detail.fnGetCatalogueDetailByIdForWeb2();_continue?(catalogue_detail.fnGetCatalogueTrackForWeb(),catalogue_detail.fnGetCataloguePersonsForWeb(),catalogue_detail.fnGetCatalogueGenrePeriodForWeb(),catalogue_detail.fnGetCatalogueReviewForWeb(),catalogue_detail.fnGetCatalogueAboutArtistForWeb(),catalogue_detail.fnGetCatalogueAboutComposerForWeb(),catalogue_detail.fnGetCatalogueAboutReaderForWeb(),catalogue_detail.fnGetAwards()):($("#div-product-info").hide(),$("#div-no-product-info").fadeIn(600))})