/* Delete this line to use login/logout buttons
// Check for the existance of SMT_LOGIN to allow people to logout of SMT 
$(document).ready(function() {
  var smt_cookie = $.cookie('SMT_LOGIN');
  if (smt_cookie != null) {
    var href = $('#SMTloginOut a').attr("href");
    $('#SMTloginOut a').attr("href", href + "logout.aspx").text("Logout");
  };
});
/* */


// Check for the existance of SMT_LOGIN to allow people to logout of SMT
$(document).ready(function() {
  var smt_cookie = $.cookie('SMT_LOGIN');
  if (smt_cookie != null) {
    var href = $('#loginArea a.SMTregister').attr("href");
    $('#loginArea').addClass('SMTlogout');
    $('#loginArea form').hide();
    $('#loginArea a.SMTregister').attr("href", href + "logout.aspx").text("Logout");
  };
});
/* */


// Handle background images on login form
$(document).ready(function() { 
  $("#loginArea").addClass("active");
  $("#loginArea input")
    .focus(function() {
      $(this).removeClass("empty");
    })
    .blur(function() {
      if ($(this).val() == "") {
        $(this).addClass("empty");
      };
    });
  $(window).load(function() {
    $("#loginArea input[value='']").addClass("empty");
  });
});
/* */
