﻿// Author: Andrew Green / Copyright DR Solutions International Ltd.

$(document).ready(function() { // DOM ready function:

  // Global variables:

  // Global functions:
  $.fn.idle = function(time, callback) {
    var i = $(this);
    i.queue(function() {
      setTimeout(function() {
        i.dequeue();
        callback(i);
      }, time);
    });
  };

  // Global events:

  // DOM ready:
  $("a[rel*='externallink']").each(function() { // Sets target _blank for external <a> elements.
    this.target = "_blank";
  });

});