/* empty */
$(function(){
    //$page = jQuery.url.attr('file');
    $page = window.location.pathname;
    $('#menu-select li a').each(function(){
        var $href = $(this).attr('href');
        if ( ($href == $page) || ($href == '') ) {
            $(this).addClass('usa-current');
        } else {
            $(this).removeClass('usa-current');
        }
    });
});


if($content.version != $content.getLatestVersion().version) {
   $("head").append('<meta name="robots" content="noindex" />');
   $('#action-messages').css('margin-bottom','20px');
   $('#action-messages').append('<div id="not-current-version" class="aui-message warning" tabindex="0" style="margin-top: 0px; padding: 10px 40px 10px 60px;"></div>');
   $('#not-current-version').append("<p><strong>The is not the <a href=\"$content.getLatestVersion().getUrlPath()\">most current version</a> of this page. This is version $content.version/$content.getLatestVersion().version.</strong> <a href=\"/pages/viewpreviousversions.action?pageId=$content.id\">View Page History</a></p>");
   if($content.version != $content.getLatestVersion().version && $action.isAnonymousUser() == true) {
      window.location.replace("$content.getLatestVersion().getUrlPath()");
   }
}

