var directDisclosureText = "The approximate cost of a $10,000 investment translates the fees and expenses shown in the fee structure table into dollar amounts. It assumes that you invest $10,000 in a 529 plan for the time period shown and then redeem all of your shares at the end of the period. It assumes that such redemption is used solely to pay qualified higher education expenses. It also assumes a 5% return on your investment each year and that the Fund's operating expenses remain the same. The example is hypothetical; your actual costs and returns may be higher or lower.";
var advisorDisclosureText = "The approximate cost of a $10,000 investment translates the fees and expenses and sales charges shown in the fee structure table into dollar amounts. It assumes that you invest $10,000 in the relevant Investment Option for the time periods shown and, except as shown for Fee Structure B and C investments, redeem your investment at the end of those periods, paying the maximum deferred sales charge that may apply to rollovers or redemptions that are not used to pay qualified higher education expenses. The examples also assume a 5% return on your investment each year and that the relevant Investment Option's operating expenses remain the same. The example reflects conversion of Fee Structure B investment to Fee Structure A eight years after purchase. The examples are hypothetical and do not reflect the effect of taxes; your actual costs and returns may be higher or lower.";
function toggleDisclosure(type, id){
  /* shows text of appropriate disclosure based on share class type by populating
   * the div with text and showing the box.
   */
   var disclosureText;
   var textDiv;
   
   if(document.getElementById){
     textDiv = document.getElementById('disclosure_' + type + '_' + id + '_detail');
     
     if(textDiv){
      if(type == "direct" || type == "d"){
        disclosureText = directDisclosureText;
      }else{
        disclosureText = advisorDisclosureText;
      }
      if(textDiv.style.display == "none" || textDiv.innerHTML == ""){
        textDiv.innerHTML = disclosureText;
        textDiv.style.display = "";
      }else{
        textDiv.style.display = "none";
      }
     }  
   }
}
function showInvestmentOptions(){
  var ioImg;
  var ioDetails;
  if(document.getElementById){
    ioImg = document.getElementById("investmentoptions");
    ioDetails = document.getElementById("investmentoptions_detail");
    
    ioImg.src = "images/collapsebar_close.gif";
    ioDetails.style.display = "";
  }
}