Drupal.locale = { 'pluralFormula': function ($n) { return Number(($n!=1)); }, 'strings': {"Split summary at cursor":"Avdela sammanfattning vid mark\u00f6ren","Join summary":"L\u00e4gg ihop sammanfattning","Select all rows in this table":"Markera alla rader i tabellen","Deselect all rows in this table":"Avmarkera alla rader i tabellen","Drag to re-order":"Drag f\u00f6r att ordna om","Changes made in this table will not be saved until the form is submitted.":"\u00c4ndringar som g\u00f6rs i denna tabell sparas inte f\u00f6rr\u00e4n formul\u00e4ret skickas.","The changes to these blocks will not be saved until the \u003cem\u003eSave blocks\u003c\/em\u003e button is clicked.":"\u00c4ndringarna i dessa block kommer inte att sparas f\u00f6rr\u00e4n knappen \u003cem\u003eSpara block\u003c\/em\u003e klickas p\u00e5.","Automatic alias":"Automatiskt alias","Alias: @alias":"Alias: @alias","No alias":"Inga alias","jQuery UI Tabs: Mismatching fragment identifier.":"jQuery UI Tabs: Identifieraren f\u00f6r fragment st\u00e4mmer inte \u00f6verens.","jQuery UI Tabs: Not enough arguments to add tab.":"jQuery UI Tabs: Inte tillr\u00e4ckligt med argument f\u00f6r att l\u00e4gga till flik.","None":"Inget","Disabled":"Ej aktiverad","Enabled":"Aktiverad","Upload":"Ladda upp","Only files with the following extensions are allowed: %files-allowed.":"Endast filer med f\u00f6ljande \u00e4ndelser till\u00e5ts: %files-allowed.","The selected file %filename cannot not be uploaded. Only files with the following extensions are allowed: %extensions.":"Den valda filen %filename kan inte laddas upp. Endast filer med f\u00f6ljande \u00e4ndelser \u00e4r till\u00e5tna: %extensions.","Edit":"Redigera","Please select a file.":"Var v\u00e4nlig v\u00e4lj en fil.","You are not allowed to operate on more than %num files.":"Du har inte till\u00e5telse att hantera mer \u00e4n %num filer i taget.","Please specify dimensions within the allowed range that is from 1x1 to @dimensions.":"Var v\u00e4nlig ange m\u00e5tt inom det till\u00e5tna omr\u00e5det som \u00e4r fr\u00e5n 1x1 till @dimensions.","unlimited":"o\u00e4ndlig","%filename is not an image.":"%filename \u00e4r inte en bild.","Directory %dir is loaded.":"Katalogen %dir \u00e4r laddad.","Directory %dir is empty.":"Katalogen %dir \u00e4r tom.","File browsing is disabled in directory %dir.":"Filhantering \u00e4r avaktiverad i katalogen %dir.","You can't perform this operation.":"Du kan inte genomf\u00f6ra denna handling.","Do you want to refresh the current directory?":"Vill du uppdatera visningen av nuvarande katalog?","Uploading %filename...":"Laddar upp %filename...","Delete selected files?":"Avmarkera valda filer?","Please select a thumbnail.":"Var v\u00e4nlig v\u00e4lj en miniatyrbild.","Please select a single file.":"Var v\u00e4nlig v\u00e4lj en fil.","You must select at least %num files.":"Du m\u00e5ste v\u00e4lja \u00e5tminstone %num filer.","Send to @app":"Skicka till @app","textarea":"textomr\u00e5de","Hide":"G\u00f6m","An error occurred at @path.":"Ett fel har uppst\u00e5tt p\u00e5 @path.","Show":"Visa","An AJAX HTTP error occurred.":"Ett AJAX HTTP-fel intr\u00e4ffade","HTTP Result Code: !status":"Resultatkod f\u00f6r HTTP: !status","An AJAX HTTP request terminated abnormally.":"Ett AJAX HTTP-anrop avslutades ov\u00e4ntat.","Debugging information follows.":"Fels\u00f6kningsinformation f\u00f6ljer.","Path: !uri":"S\u00f6kv\u00e4g: !uri","StatusText: !statusText":"Statustext: !statusText","ResponseText: !responseText":"Svarstext: !responseText","ReadyState: !readyState":"Tillst\u00e5nd: !readyState","(active tab)":"(aktiv flik)","Re-order rows by numerical weight instead of dragging.":"Sortera om rader efter numerisk vikt ist\u00e4llet f\u00f6r drag-och-sl\u00e4pp.","Show row weights":"Visa radernas vikt","Hide row weights":"D\u00f6lj radernas vikt","Hide summary":"D\u00f6lj sammanfattning","Edit summary":"Redigera sammanfattning","Autocomplete popup":"Popup med automatisk komplettering","Searching for matches...":"S\u00f6ker efter tr\u00e4ffar...","New revision":"Ny version","No revision":"Inga versioner","By @name on @date":"Av @name @date","By @name":"Av @name","Not published":"Inte publicerad","@number comments per page":"@number kommentarer per sida","Requires a title":"Kr\u00e4ver en titel","Don't display post information":"Visa inte information om inl\u00e4gg","Please wait...":"V\u00e4nligen v\u00e4nta...","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Den valda filen %filename kan inte laddas upp. Endast filer med f\u00f6ljande \u00e4ndelser \u00e4r till\u00e5tna: %extensions.","Not restricted":"Ej begr\u00e4nsad","Restricted to certain pages":"Begr\u00e4nsad till vissa sidor","Not customizable":"Ej anpassningsbart","The block cannot be placed in this region.":"Blocket kan inte placeras i denna region.","Not in menu":"Ej i meny","This permission is inherited from the authenticated user role.":"Denna beh\u00f6righet \u00e4rvs fr\u00e5n rollen verifierad anv\u00e4ndare."} };;
// $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);
;

