// toggleVal
(function(A){A.fn.toggleVal=function(B){B=A.extend({focusClass:"tv-focused",changedClass:"tv-changed",populateFrom:"default",removeLabels:false},B);return this.each(function(){var C="";switch(B.populateFrom){case"alt":C=A(this).attr("alt");A(this).val(C);break;case"label":C=A("label[for='"+A(this).attr("id")+"']").text();A(this).val(C);break;default:C=A(this).val()}A(this).addClass("toggleval").data("defText",C);if(B.removeLabels==true){A("label[for='"+A(this).attr("id")+"']").remove()}A(this).focus(function(){if(A(this).val()==C){A(this).val("")}A(this).addClass(B.focusClass).removeClass(B.changedClass)}).blur(function(){if(A(this).val()==""){A(this).val(C)}A(this).removeClass(B.focusClass);if(A(this).val()!=C){A(this).addClass(B.changedClass)}else{A(this).removeClass(B.changedClass)}})})}})(jQuery);

$(function() {
  
  $("#login-toggle").click(function () {
        $("#microsite-login").show();
        return false;
      });

  $("#close").click(function () {
        $("#microsite-login").hide();
        return false;
      });

  $('#search').toggleVal();

});