Drupal.locale = { 'pluralFormula': function ($n) { return Number(($n!=1)); }, 'strings': {"An AJAX HTTP error occurred.":"Esines AJAX HTTP viga.","HTTP Result Code: !status":"HTTP kood: !status","An AJAX HTTP request terminated abnormally.":"AJAX HTTP p\u00e4ring l\u00f5ppes tavatult.","Debugging information follows.":"J\u00e4rgneb silumise teave.","Path: !uri":"Teekond: !uri","StatusText: !statusText":"Staatus: !statusText","ResponseText: !responseText":"VastusTekst: !responseText","ReadyState: !readyState":"ValmisOlek: !readyState","Loading":"Laadimine","(active tab)":"(aktiivne sakk)","Hide":"Peida","Show":"N\u00e4ita","Please wait...":"Palun oota...","Re-order rows by numerical weight instead of dragging.":"Reasta read lohistamise asemel \u00fcmber kaalude numbriliste v\u00e4\u00e4rtuste j\u00e4rgi.","Show row weights":"N\u00e4ita ridade kaalusid","Hide row weights":"Peida ridade kaalud","Drag to re-order":"Lohista j\u00e4rjestuse muutmiseks","Changes made in this table will not be saved until the form is submitted.":"Sellesse tabelisse tehtud muudatusi ei salvestata enne vormi salvestamist.","Edit":"Muuda","Configure":"Seadistus","unlimited":"piiramata","Upload":"\u00dcleslaadimine","Done":"Valmis","Anonymous users":"Anon\u00fc\u00fcmsed kasutajad","Select all rows in this table":"Vali k\u00f5ik read selles tabelis","Deselect all rows in this table":"Eemalda k\u00f5ikide ridade m\u00e4rgistus selles tabelis","Not published":"Pole avaldatud","Only files with the following extensions are allowed: %files-allowed.":"Lubatud on ainult failid j\u00e4rgmiste laienditega: %files-allowed.","By @name on @date":"Autor: @name (@date)","By @name":"Autor: @name","Not in menu":"Pole men\u00fc\u00fcs","Alias: @alias":"Alias: @alias","No alias":"Alias puudub","New revision":"Uus redaktsioon","The changes to these blocks will not be saved until the \u003cem\u003eSave blocks\u003c\/em\u003e button is clicked.":"Plokkides tehtud muudatusi ei salvestata enne \u003cem\u003eSalvesta plokid\u003c\/em\u003e nupule vajutamist.","Show shortcuts":"N\u00e4ita kiirviiteid","This permission is inherited from the authenticated user role.":"See \u00f5igus tuleneb sisseloginud kasutaja rollist.","No revision":"Redaktsioonid puuduvad","@number comments per page":"@number kommentaari iga lehe kohta","Requires a title":"Vajab pealkirja","Not restricted":"Piiranguteta","Not customizable":"Pole seadistatav","Restricted to certain pages":"Piiratud teatud lehtedega.","The block cannot be placed in this region.":"Plokki ei ole v\u00f5imalik sellesse regiooni paigutada.","Customize dashboard":"Kohada t\u00f6\u00f6lauda","Hide summary":"Peida kokkuv\u00f5te","Edit summary":"Muuda kokkuv\u00f5tet","Don't display post information":"\u00c4ra kuva infot sissekande kohta","@title dialog":"@title dialoog","Autocomplete popup":"Automaatl\u00f5petuse h\u00fcpikaken","Searching for matches...":"Vastavuste otsimine...","Hide shortcuts":"Peida kiirviited","Automatic alias":"Automaatne alias","SKU":"Toote ID","Close":"Sulge","Remove group":"Eemalda grupp"} };;
(function ($) {

$(document).ready(function() {

  // Accepts a string; returns the string with regex metacharacters escaped. The returned string
  // can safely be used at any point within a regex to match the provided literal string. Escaped
  // characters are [ ] { } ( ) * + ? - . , \ ^ $ # and whitespace. The character | is excluded
  // in this function as it's used to separate the domains names.
  RegExp.escapeDomains = function(text) {
    return (text) ? text.replace(/[-[\]{}()*+?.,\\^$#\s]/g, "\\$&") : '';
  }

  // Attach onclick event to document only and catch clicks on all elements.
  $(document.body).click(function(event) {
    // Catch the closest surrounding link of a clicked element.
    $(event.target).closest("a,area").each(function() {

      var ga = Drupal.settings.googleanalytics;
      // Expression to check for absolute internal links.
      var isInternal = new RegExp("^(https?):\/\/" + window.location.host, "i");
      // Expression to check for special links like gotwo.module /go/* links.
      var isInternalSpecial = new RegExp("(\/go\/.*)$", "i");
      // Expression to check for download links.
      var isDownload = new RegExp("\\.(" + ga.trackDownloadExtensions + ")$", "i");
      // Expression to check for the sites cross domains.
      var isCrossDomain = new RegExp("^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\/.*(" + RegExp.escapeDomains(ga.trackCrossDomains) + ")", "i");

      // Is the clicked URL internal?
      if (isInternal.test(this.href)) {
        // Is download tracking activated and the file extension configured for download tracking?
        if (ga.trackDownload && isDownload.test(this.href)) {
          // Download link clicked.
          var extension = isDownload.exec(this.href);
          _gaq.push(["_trackEvent", "Downloads", extension[1].toUpperCase(), this.href.replace(isInternal, '')]);
        }
        else if (isInternalSpecial.test(this.href)) {
          // Keep the internal URL for Google Analytics website overlay intact.
          _gaq.push(["_trackPageview", this.href.replace(isInternal, '')]);
        }
      }
      else {
        if (ga.trackMailto && $(this).is("a[href^=mailto:],area[href^=mailto:]")) {
          // Mailto link clicked.
          _gaq.push(["_trackEvent", "Mails", "Click", this.href.substring(7)]);
        }
        else if (ga.trackOutbound && this.href) {
          if (ga.trackDomainMode == 2 && isCrossDomain.test(this.href)) {
            // Top-level cross domain clicked. document.location is handled by _link internally.
            _gaq.push(["_link", this.href]);
          }
          else if (ga.trackOutboundAsPageview) {
            // Track all external links as page views after URL cleanup.
            // Currently required, if click should be tracked as goal.
            _gaq.push(["_trackPageview", '/outbound/' + this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i, '').split('/').join('--')]);
          }
          else {
            // External link clicked.
            _gaq.push(["_trackEvent", "Outbound links", "Click", this.href]);
          }
        }
      }
    });
  });
});

})(jQuery);
;

