var mystorage = Array();
$().ready(function(){

  //$(document).pngFix();
  $(".ui-btn").button();
  

  $("#search-field").focus(function() {
    if ($(this).val() == "Search") {
      $(this).val("");
    }
  }).blur(function() {
    if ($(this).val() == "") {
      $(this).val("Search");
    }
  });

  $("#insurance-education-img").tooltip({
    effect: 'slide', tip: '#insurance-education-popup-dialog'
  });
  $("#financial-planning-img").tooltip({
    effect: 'slide', tip: '#financial-planning-popup-dialog'
  });
  $("#graduate-degrees-img").tooltip({
    effect: 'slide', tip: '#graduate-degree-popup-dialog'
  });

  $(".toggle-container").hide();
  $(".toggle-header-icon").addClass("icon-top");
  $(".toggle-default").removeClass("icon-top");
  $(".toggle-default").addClass("icon-bottom");
  $(".toggle-trigger").click(
    function(){
      $(this).toggleClass("icon-bottom");
      // actual look at the icon and make this bullet proof!
      if ($(this).children(".toggle-header-icon").hasClass("icon-bottom")) {
        $(this).children(".toggle-header-icon").removeClass("icon-bottom");
        $(this).children(".toggle-header-icon").addClass("icon-top");
      } else {
        $(this).children(".toggle-header-icon").removeClass("icon-top");
        $(this).children(".toggle-header-icon").addClass("icon-bottom");
      }
      $(this).next().slideToggle("fast");
    }
  );
  
  /* $.ga.load("UA-2152025-1"); */

});

