    $(document).ready(function() {
      $('a').click(function(event) {
        currentHref=$(this).attr("href");
        if((currentHref.indexOf("http://")==0 || currentHref.indexOf("https://")==0) && 
                currentHref.indexOf("utah.gov")==-1){
          event.preventDefault();
          $( "<div title='You Are Now Leaving This Site'>" )
            .append("<center>You have selected an external link and are leaving the<br /> <b>Utah State Treasurer's website</b>.</center>")
            .append("<ul class='dialog'><li>The Utah State Treasurer does not control nor guarantee the completeness, accuracy, relevance or timeliness of information on external sites.</li><li>Linking to an external site does not constitute an endorsement by the Utah State Treasurer of any information presented on such site.</li></ul>")
            .append("Press GO to continue to external site – this link will open a new window")
            .dialog({
              width:500,
              modal: true,
              buttons: [{
                  text: 'Cancel',
                  click: function() {
                      $( this ).dialog( "close" );
                  }
                  },{
                  text: 'Go',
                  click:function() {
                      $( this ).dialog( "close" );
                      window.open(currentHref);
                  }
                  }],
                  close: function(event, ui) {
                      $( this ).dialog('destroy').remove();
                  }
          });
        }
      });
    });

