$(document).ready(function() {
  // Open all /resources/links links in same window
  $('.links #body li a').attr('target', '_one');
  
  // Member login/logout/edit
  if(WebvantaAdmin.getUIRValue("r")=="member") {
    //$("#login").html("<p>Welcome " + WebvantaAdmin.getUIRValue("name") + " - <a href='/admin/profiles/edit_my_profile'>Edit Profile</a> - <a href='/logout'>Log Out</a></p>");
    $("#login").html("<span><a href='/admin/profiles/edit_my_profile'>Edit Profile</a> &nbsp;&nbsp;&Iota;&nbsp;&nbsp; <a href='/logout'>Log Out</a></span>");    
  }
  else {
    $("#login").html("<span><a href='/login'>Member Login</a></span>");
  }      
});
