$(document).ready(function(){$("#tabs").tabs({cookie:{name:"fund-tab"}});$("#lnkPerformance").click(function(){$("#tabs").tabs("select","performance");return false});$("a.lnkDisclosureMonthPerformance").click(function(){$("#tabs").tabs("select","performance");$("#qep").hide();$("#mep").show();var b=$("#performance").offset();var a=b.top;$("html, body").animate({scrollTop:a},500);return false});$("#show_mep").add("#show_mep2").click(function(){$("#qep").hide();$("#mep").show();return false});$("#show_qep").add("#show_qep2").click(function(){$("#mep").hide();$("#qep").show();return false});$("#mep").hide();$("#all_holdings").hide();$("#hide_all_holdings").hide();$("#show_all_holdings").click(function(){$("#all_holdings").show();$("#show_all_holdings").hide();$("#hide_all_holdings").show();$("#page").css("overflow","visible")});$("#hide_all_holdings").click(function(){$("#all_holdings").hide();$("#hide_all_holdings").hide();$("#show_all_holdings").show();$("#page").css("overflow","hidden");return false});if(PimcoETF.EditMode){PimcoETF.EditMode.MoveFieldControls()}$("#trading_characteristics td:empty").parent("tr").hide();$(".download a:empty").hide()});PimcoETF.namespace("PimcoETF.FundDetails");PimcoETF.FundDetails.StateBag={ActiveQuarter:1};PimcoETF.FundDetails.InitializePremiumDiscount=function(a){var b=$("#"+a+" option:selected");var c=b.val();$(".premium_discount_table").hide();$(".premium_discount_chart").hide();$(".Q"+c).show();PimcoETF.FundDetails.StateBag.ActiveQuarter=c;$("#"+a).change(function(){var d=$("#"+a+" option:selected"); var qtryear = d.text().split(" "); 
        var monthday;
        if (qtryear[0] == "Q1") {
            monthday = "03/31/";
        }
        else if (qtryear[0] == "Q2") {
            monthday = "06/30/";
        }
        else if (qtryear[0] == "Q3") {
            monthday = "09/30/";
        }
        else if (qtryear[0] == "Q4") {
            monthday = "12/31/";
        }

        $('#premium_discount span.asof').html('As of ' + monthday + qtryear[1]); var e=d.val();$(".Q"+PimcoETF.FundDetails.StateBag.ActiveQuarter).hide();$(".Q"+e).show();PimcoETF.FundDetails.StateBag.ActiveQuarter=e})};