$(function(){
  // check cookie to see if user is logged in
  if ($.cookies.get('MOZY_USERNAME') != null && $.cookies.get('MOZY_USERNAME').length > 0) {
    $('#header').addClass("logged-in");

    // swap the links
    $('#navlink2 a').html("My Account").attr("href", "http://mozy.com/account");
    $('#navlink5 a').html("Log Out").attr("href", "http://mozy.com/login/logout");
  }
});
