$(document).ready(function() {
  $("#navigation ul li").hover(function() {
    $(this).addClass("hover");
      $("ul:first", this).css("visibility", "visible");
  },
  function() {
      $(this).removeClass("hover");
      $("ul:first", this).css("visibility", "hidden");
  });
});

function is_current() {
  var i
  for ( i = 0; i < document.links.length; i += 1) {
    var a = document.links[i];
    if (a.href == window.location) {
      a.className = "current";
    }
  }
}
window.onload=function()
{
  is_current();
}

$(document).ready(function() {
  $("#homepage_column1_text").innerfade({animationtype: "fade", speed: "slow", timeout: "3000", type: "sequence", containerheight: "150px"});
  $("#bt_value").mouseover(function() {
    $("#bt_value table.daily_nav").hide();
    $("#bt_value .bt_fund").show();
    $("#bt_value .bt_performance_link").show();
    $("#bt_value .bt_factsheet_link").show();
    $("#bt_value").css("background", "url(/images/bt_links.png) no-repeat");
  });
  $("#bt_value").mouseout(function() {
    $("#bt_value .bt_fund").hide();
    $("#bt_value .bt_performance_link").hide();
    $("#bt_value .bt_factsheet_link").hide();
    $("#bt_value table.daily_nav").show();
    $("#bt_value").css("background", "url(/images/bt_value.jpg) no-repeat");
  });
  $("#bt_small_cap").mouseover(function() {
    $("#bt_small_cap table.daily_nav").hide();
    $("#bt_small_cap .bt_fund").show();
    $("#bt_small_cap .bt_performance_link").show();
    $("#bt_small_cap .bt_factsheet_link").show();
    $("#bt_small_cap").css("background", "url(/images/bt_links.png) no-repeat");
  });
  $("#bt_small_cap").mouseout(function() {
    $("#bt_small_cap .bt_fund").hide();
    $("#bt_small_cap .bt_performance_link").hide();
    $("#bt_small_cap .bt_factsheet_link").hide();
    $("#bt_small_cap table.daily_nav").show();
    $("#bt_small_cap").css("background", "url(/images/bt_small_cap.jpg) no-repeat");
  });
  $("#bt_growth").mouseover(function() {
    $("#bt_growth table.daily_nav").hide();
    $("#bt_growth .bt_fund").show();
    $("#bt_growth .bt_performance_link").show();
    $("#bt_growth .bt_factsheet_link").show();
    $("#bt_growth").css("background", "url(/images/bt_links.png) no-repeat");
  });
  $("#bt_growth").mouseout(function() {
    $("#bt_growth .bt_fund").hide();
    $("#bt_growth .bt_performance_link").hide();
    $("#bt_growth .bt_factsheet_link").hide();
    $("#bt_growth table.daily_nav").show();
    $("#bt_growth").css("background", "url(/images/bt_growth.jpg) no-repeat");
  });
});

