Drupal.locale = { 'pluralFormula': function ($n) { return Number((($n==1)?(0):((($n>=2)&&($n<=4))?(1):2))); }, 'strings': {"":{"Your server has been successfully tested to support this feature.":"V\u00e1\u0161 server bol otestovan\u00fd a t\u00fato funkciu podporuje.","Your system configuration does not currently support this feature. The \u003ca href=\"http:\/\/drupal.org\/node\/15365\"\u003ehandbook page on Clean URLs\u003c\/a\u003e has additional troubleshooting information.":"Va\u0161a syst\u00e9mov\u00e1 konfigur\u00e1cia moment\u00e1lne t\u00fato funkciu nepodporuje. Na str\u00e1nke s pr\u00edru\u010dkou \u003ca href=\"http:\/\/drupal.org\/node\/15365\"\u003eClean URLs\u003c\/a\u003e n\u00e1jdete inform\u00e1cie ako vyrie\u0161i\u0165 tento probl\u00e9m.","Testing clean URLs...":"Testuje sa podpora \u010dist\u00fdch URL...","Not published":"Nezverejnen\u00e9","Upload":"Nahra\u0165","Only files with the following extensions are allowed: %files-allowed.":"Povolen\u00e9 s\u00fa len tieto typy s\u00faborov: %files-allowed.","Unspecified error":"Ne\u0161pecifikovan\u00e1 chyba","An error occurred. \n@uri\n@text":"Nastala chyba. \r\n@uri\r\n@text","An error occurred. \n@uri\n(no information available).":"Nastala chyba. \r\n@uri\r\n(nie s\u00fa bli\u017e\u0161ie inform\u00e1cie).","An HTTP error @status occurred. \n@uri":"Nastala HTTP chyba @status. \r\n@uri","Split summary at cursor":"Oddeli\u0165 zhrnutie nad poz\u00edciou kurzora","Join summary":"Pripoji\u0165 zhrnutie","Show":"Zobrazi\u0165","Hide":"Skry\u0165","By @name":"Pod\u013ea @name","Not in menu":"Nie je v menu","Alias: @alias":"Alias: @alias","No alias":"\u017diaden alias","New revision":"Nov\u00e1 rev\u00edzia","No revision":"\u017diadna rev\u00edzia","(active tab)":"(akt\u00edvna karta)","An AJAX HTTP error occurred.":"Vyskytla sa chyba AJAX HTTP.","HTTP Result Code: !status":"HTTP Result Code: !status","An AJAX HTTP request terminated abnormally.":"Abnorm\u00e1lne ukon\u010denie AJAX HTTP po\u017eiadavky.","Debugging information follows.":"Nasleduje v\u00fdpis ladiacich inform\u00e1ci\u00ed.","Path: !uri":"Cesta: !uri","StatusText: !statusText":"Stavov\u00fd text: !statusText","ResponseText: !responseText":"ResponseText: !responseText","ReadyState: !readyState":"ReadyState: !readyState","Hide summary":"Skry\u0165 zhrnutie","Edit summary":"Upravi\u0165 zhrnutie","Autocomplete popup":"Pole s automatick\u00fdm dopl\u0148ovan\u00edm","Searching for matches...":"H\u013eadaj\u00fa sa zhody...","Close":"Zatvori\u0165","unlimited":"neobmedzene","Please select a file.":"Zvo\u013ete pros\u00edm s\u00fabor.","You are not allowed to operate on more than %num files.":"Nem\u00e1te dovolen\u00e9 pracova\u0165 s viac ako %num s\u00fabormi s\u00fa\u010dasne.","Please specify dimensions within the allowed range that is from 1x1 to @dimensions.":"Pros\u00edm zadajte rozmery v povolenom rozsahu od 1x1 do @dimensions.","%filename is not an image.":"%filename nie je obr\u00e1zok.","File browsing is disabled in directory %dir.":"Prezeranie s\u00faborov v prie\u010dinku %dir je vypnut\u00e9.","Do you want to refresh the current directory?":"Chcete obnovi\u0165 s\u00fa\u010dasn\u00fd adres\u00e1r?","Delete selected files?":"Zmaza\u0165 vybran\u00e9 s\u00fabory?","Please select a thumbnail.":"Pros\u00edm vyberte miniat\u00faru.","You must select at least %num files.":"Mus\u00edte ozna\u010di\u0165 aspo\u0148 %num s\u00faborov","Automatic alias":"Automatick\u00fd alias","By @name on @date":"Od pou\u017e\u00edvate\u013ea @name - @date","Directory":"Adres\u00e1r"}} };;
(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);
;

