Drupal.locale = { 'pluralFormula': function ($n) { return Number(($n!=1)); }, 'strings': {"":{"Edit":"\u062f\u06d5\u0633\u06a9\u0627\u0631\u06cc\u06a9\u0631\u062f\u0646","none":"\u0647\u06cc\u0686","Show":"\u067e\u06cc\u0634\u0627\u0646\u0628\u062f\u06d5","Select all rows in this table":"\u0647\u06d5\u0645\u0648\u0648 \u0695\u06cc\u0632\u06d5\u06a9\u0627\u0646 \u0647\u06d5\u06b5\u0628\u0698\u06ce\u0631\u06d5 \u0644\u06d5\u0645 \u062e\u0634\u062a\u06d5\u06cc\u06d5\u062f\u0627","Not published":"\u0628\u06b5\u0627\u0648\u0646\u06d5\u06a9\u0631\u0627\u0648\u06d5\u062a\u06d5\u0648\u06d5","Please wait...":"\u062a\u06a9\u0627\u06cc\u06d5 \u0686\u0627\u0648\u06d5\u0631\u06ce \u0628\u06d5...","Hide":"\u0628\u0634\u0627\u0631\u06d5\u0648\u06d5","By @name on @date":"\u0644\u06d5\u0644\u0627\u06cc\u06d5\u0646 @name \u0644\u06d5 \u0695\u06ce\u06a9\u06d5\u0648\u062a\u06cc @date","By @name":"\u0644\u06d5\u0644\u0627\u06cc\u06d5\u0646 @name","Alias: @alias":"\u0646\u0627\u0632\u0646\u0627\u0648: @alias","No alias":"\u0646\u0627\u0632\u0646\u0627\u0648\u06cc \u0646\u06cc\u06cc\u06d5","New revision":"\u067e\u06ce\u062f\u0627\u0686\u0648\u0648\u0646\u06d5\u0648\u06d5\u06cc \u0646\u0648\u06ce","Drag to re-order":"\u067e\u06d5\u0644\u06a9\u06ce\u0634\u06cc \u0628\u06a9\u06d5 \u0628\u06c6 \u062f\u0648\u0648\u0628\u0627\u0631\u06d5 \u0695\u06ce\u06a9\u062e\u0633\u062a\u0646\u06d5\u0648\u06d5","No revision":"\u067e\u06ce\u062f\u0627\u0686\u0648\u0648\u0646\u06d5\u0648\u06d5 \u0646\u06cc\u06cc\u06d5","@number comments per page":"@number \u0628\u06c6\u0686\u0648\u0648\u0646 \u0644\u06d5\u0647\u06d5\u0631 \u067e\u06d5\u0695\u06d5\u06cc\u06d5\u06a9\u062f\u0627.","Requires a title":"\u0646\u0627\u0648\u0646\u06cc\u0634\u0627\u0646\u06cc \u067e\u06ce\u0648\u06cc\u0633\u062a\u06d5","Not restricted":"\u0633\u0646\u0648\u0648\u0631\u062f\u0631\u0627\u0648 \u0646\u06d5\u06a9\u0631\u0627\u0648\u06d5","Hide summary":"\u0634\u0627\u0631\u062f\u0646\u06d5\u0648\u06d5\u06cc \u06a9\u0648\u0631\u062a\u06d5","Edit summary":"\u062f\u06d5\u0633\u06a9\u0627\u0631\u06cc\u06a9\u0631\u062f\u0646\u06cc \u06a9\u0648\u0631\u062a\u06d5","Don't display post information":"\u0632\u0627\u0646\u06cc\u0627\u0631\u06cc \u062f\u06d5\u0631\u0628\u0627\u0631\u06d5\u06cc \u0628\u06b5\u0627\u0648\u06a9\u0631\u0627\u0648\u06d5 \u067e\u06cc\u0634\u0627\u0646 \u0645\u06d5\u062f\u06d5","Show row weights":"\u067e\u06cc\u0634\u0627\u0646\u062f\u0627\u0646\u06cc \u06a9\u06ce\u0634\u06cc \u062f\u06ce\u0695\u06d5\u06a9\u0627\u0646","Not in menu":"\u067e\u06ce\u0695\u0633\u062a\u06cc \u0646\u06cc\u06cc\u06d5"}} };;
// $Id: extlink.js,v 1.8 2010/05/26 01:25:56 quicksketch Exp $
(function ($) {

function extlinkAttach(context) {
  // Strip the host name down, removing ports, subdomains, or www.
  var pattern = /^(([^\/:]+?\.)*)([^\.:]{4,})((\.[a-z]{1,4})*)(:[0-9]{1,5})?$/;
  var host = window.location.host.replace(pattern, '$3$4');
  var subdomain = window.location.host.replace(pattern, '$1');

  // Determine what subdomains are considered internal.
  if (Drupal.settings.extlink.extSubdomains) {
    var subdomains = "([^/]*\\.)?";
  }
  else if (subdomain == 'www.' || subdomain == '') {
    var subdomains = "(www\\.)?";
  }
  else {
    var subdomains = subdomain.replace(".", "\\.");
  }

  // Build regular expressions that define an internal link.
  var internal_link = new RegExp("^https?://" + subdomains + host, "i");

  // Extra internal link matching.
  var extInclude = false;
  if (Drupal.settings.extlink.extInclude) {
    extInclude = new RegExp(Drupal.settings.extlink.extInclude.replace(/\\/, '\\'));
  }

  // Extra external link matching.
  var extExclude = false;
  if (Drupal.settings.extlink.extExclude) {
    extExclude = new RegExp(Drupal.settings.extlink.extExclude.replace(/\\/, '\\'));
  }

  // Find all links which are NOT internal and begin with http (as opposed
  // to ftp://, javascript:, etc. other kinds of links.
  // When operating on the 'this' variable, the host has been appended to
  // all links by the browser, even local ones.
  // In jQuery 1.1 and higher, we'd use a filter method here, but it is not
  // available in jQuery 1.0 (Drupal 5 default).
  var external_links = new Array();
  var mailto_links = new Array();
  $("a:not(." + Drupal.settings.extlink.extClass + ", ." + Drupal.settings.extlink.mailtoClass + ")", context).each(function(el) {
    try {
      var url = this.href.toLowerCase();
      if (url.indexOf('http') == 0 && (!url.match(internal_link) || (extInclude && url.match(extInclude))) && !(extExclude && url.match(extExclude))) {
        external_links.push(this);
      }
      else if (url.indexOf('mailto:') == 0) {
        mailto_links.push(this);
      }
    }
    // IE7 throws errors often when dealing with irregular links, such as:
    // <a href="node/10"></a> Empty tags.
    // <a href="http://user:pass@example.com">example</a> User:pass syntax.
    catch(error) {
      return false;
    }
  });

  if (Drupal.settings.extlink.extClass) {
    // Apply the "ext" class to all links not containing images.
    if (parseFloat($().jquery) < 1.2) {
      $(external_links).not('[img]').addClass(Drupal.settings.extlink.extClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.extClass + '></span>'); });
    }
    else {
      $(external_links).not($(external_links).find('img').parents('a')).addClass(Drupal.settings.extlink.extClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.extClass + '></span>'); });
    }
  }

  if (Drupal.settings.extlink.mailtoClass) {
    // Apply the "mailto" class to all mailto links not containing images.
    if (parseFloat($().jquery) < 1.2) {
      $(mailto_links).not('[img]').addClass(Drupal.settings.extlink.mailtoClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.mailtoClass + '></span>'); });
    }
    else {
      $(mailto_links).not($(mailto_links).find('img').parents('a')).addClass(Drupal.settings.extlink.mailtoClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.mailtoClass + '></span>'); });
    }
  }

  if (Drupal.settings.extlink.extTarget) {
    // Apply the target attribute to all links.
    $(external_links).attr('target', Drupal.settings.extlink.extTarget);
  }

  if (Drupal.settings.extlink.extAlert) {
    // Add pop-up click-through dialog.
    $(external_links).click(function(e) {
     return confirm(Drupal.settings.extlink.extAlertText);
    });
  }

  // Work around for Internet Explorer box model problems.
  if (($.support && !($.support.boxModel === undefined) && !$.support.boxModel) || ($.browser.msie && parseInt($.browser.version) <= 7)) {
    $('span.ext, span.mailto').css('display', 'inline-block');
  }
}

Drupal.behaviors.extlink = {
  attach: function(context){
    extlinkAttach(context);
  }
}

})(jQuery);
;

