Drupal.locale = { 'pluralFormula': function ($n) { return Number((($n==1)?(0):((($n>=2)&&($n<=4))?(1):2))); }, 'strings': {"Enabled":"Povolen\u00e9","Disabled":"Vypnut\u00e9","Show":"zobrazi\u0165","Not published":"Nevydan\u00e9","Configure":"Konfigur\u00e1cia","Edit":"Upravi\u0165","Select all rows in this table":"Ozna\u010di\u0165 v\u0161etky riadky v tejto tabu\u013eke","Deselect all rows in this table":"Odzna\u010di\u0165 v\u0161etky riadky v tejto tabu\u013eke","The changes to these blocks will not be saved until the \u003cem\u003eSave blocks\u003c\/em\u003e button is clicked.":"Zmeny v rozmiestnen\u00ed blokov sa neprejavia, pok\u00fdm nestla\u010d\u00edte tla\u010didlo \u003cem\u003eUlo\u017ei\u0165 bloky\u003c\/em\u003e","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...","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","Drag to re-order":"Potiahnut\u00fdm zmen\u00edte poradie","Changes made in this table will not be saved until the form is submitted.":"Zmeny vykonan\u00e9 v tejto tabu\u013eke nebud\u00fa ulo\u017een\u00e9 pokia\u013e sa formul\u00e1r neodo\u0161le.","Split summary at cursor":"Oddeli\u0165 zhrnutie nad poz\u00edciou kurzora","Join summary":"Pripoji\u0165 zhrnutie","Please wait...":"Pros\u00edm \u010dakajte...","( more... )":"( viac... )","Update Preview":"Aktualizova\u0165 n\u00e1h\u013ead","more...":"viac...","Done":"Hotovo","OK":"OK","Hide":"Skry\u0165","Loading":"Nahr\u00e1va sa","By @name on @date":"Od pou\u017e\u00edvate\u013ea @name - @date","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","Show shortcuts":"Zobrazi\u0165 skratky","This permission is inherited from the authenticated user role.":"Toto opr\u00e1vnenie sa ded\u00ed z kateg\u00f3rie Prihl\u00e1sen\u00fd pou\u017e\u00edvate\u013e.","No revision":"\u017diadna rev\u00edzia","@number comments per page":"@number koment\u00e1rov na str\u00e1nku","Requires a title":"Vy\u017eaduje nadpis","Not restricted":"Neobmedzen\u00e9","(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","Not customizable":"Neprisp\u00f4sobite\u013en\u00fd","Restricted to certain pages":"Obmedzi\u0165 pre konkr\u00e9tne str\u00e1nky","The block cannot be placed in this region.":"Blok nem\u00f4\u017ee by\u0165 umiestnen\u00fd v tomto regi\u00f3ne.","Customize dashboard":"Prisp\u00f4sobi\u0165 n\u00e1stenku","Hide summary":"Skry\u0165 zhrnutie","Edit summary":"Upravi\u0165 zhrnutie","Don't display post information":"Nezobrazova\u0165 inform\u00e1cie o publikovan\u00ed","@title dialog":"@title dial\u00f3g","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Zvolen\u00fd s\u00fabor %filename nie je mo\u017en\u00e9 nahra\u0165. Povolen\u00e9 s\u00fa len s\u00fabory s t\u00fdmito pr\u00edponami: %extensions.","Re-order rows by numerical weight instead of dragging.":"Namiesto \u0165ahania preusporiadajte riadky pomocou \u010d\u00edseln\u00fdch v\u00e1h.","Show row weights":"Zobrazi\u0165 v\u00e1hy riadkov","Hide row weights":"Skry\u0165 v\u00e1hy riadkov","Autocomplete popup":"Pole s automatick\u00fdm dopl\u0148ovan\u00edm","Searching for matches...":"H\u013eadaj\u00fa sa zhody...","Hide shortcuts":"Skry\u0165 skratky"} };;

(function ($) {

/**
 * This script transforms a set of fieldsets into a stack of vertical
 * tabs. Another tab pane can be selected by clicking on the respective
 * tab.
 *
 * Each tab may have a summary which can be updated by another
 * script. For that to work, each fieldset has an associated
 * 'verticalTabCallback' (with jQuery.data() attached to the fieldset),
 * which is called every time the user performs an update to a form
 * element inside the tab pane.
 */
Drupal.behaviors.verticalTabs = {
  attach: function (context) {
    $('.vertical-tabs-panes', context).once('vertical-tabs', function () {
      var focusID = $(':hidden.vertical-tabs-active-tab', this).val();
      var tab_focus;

      // Check if there are some fieldsets that can be converted to vertical-tabs
      var $fieldsets = $('> fieldset', this);
      if ($fieldsets.length == 0) {
        return;
      }

      // Create the tab column.
      var tab_list = $('<ul class="vertical-tabs-list"></ul>');
      $(this).wrap('<div class="vertical-tabs clearfix"></div>').before(tab_list);

      // Transform each fieldset into a tab.
      $fieldsets.each(function () {
        var vertical_tab = new Drupal.verticalTab({
          title: $('> legend', this).text(),
          fieldset: $(this)
        });
        tab_list.append(vertical_tab.item);
        $(this)
          .removeClass('collapsible collapsed')
          .addClass('vertical-tabs-pane')
          .data('verticalTab', vertical_tab);
        if (this.id == focusID) {
          tab_focus = $(this);
        }
      });

      $('> li:first', tab_list).addClass('first');
      $('> li:last', tab_list).addClass('last');

      if (!tab_focus) {
        // If the current URL has a fragment and one of the tabs contains an
        // element that matches the URL fragment, activate that tab.
        if (window.location.hash && $(window.location.hash, this).length) {
          tab_focus = $(window.location.hash, this).closest('.vertical-tabs-pane');
        }
        else {
          tab_focus = $('> .vertical-tabs-pane:first', this);
        }
      }
      if (tab_focus.length) {
        tab_focus.data('verticalTab').focus();
      }
    });
  }
};

/**
 * The vertical tab object represents a single tab within a tab group.
 *
 * @param settings
 *   An object with the following keys:
 *   - title: The name of the tab.
 *   - fieldset: The jQuery object of the fieldset that is the tab pane.
 */
Drupal.verticalTab = function (settings) {
  var self = this;
  $.extend(this, settings, Drupal.theme('verticalTab', settings));

  this.link.click(function () {
    self.focus();
    return false;
  });

  // Keyboard events added:
  // Pressing the Enter key will open the tab pane.
  this.link.keydown(function(event) {
    if (event.keyCode == 13) {
      self.focus();
      // Set focus on the first input field of the visible fieldset/tab pane.
      $("fieldset.vertical-tabs-pane :input:visible:enabled:first").focus();
      return false;
    }
  });

  // Pressing the Enter key lets you leave the tab again.
  this.fieldset.keydown(function(event) {
    // Enter key should not trigger inside <textarea> to allow for multi-line entries.
    if (event.keyCode == 13 && event.target.nodeName != "TEXTAREA") {
      // Set focus on the selected tab button again.
      $(".vertical-tab-button.selected a").focus();
      return false;
    }
  });

  this.fieldset
    .bind('summaryUpdated', function () {
      self.updateSummary();
    })
    .trigger('summaryUpdated');
};

Drupal.verticalTab.prototype = {
  /**
   * Displays the tab's content pane.
   */
  focus: function () {
    this.fieldset
      .siblings('fieldset.vertical-tabs-pane')
        .each(function () {
          var tab = $(this).data('verticalTab');
          tab.fieldset.hide();
          tab.item.removeClass('selected');
        })
        .end()
      .show()
      .siblings(':hidden.vertical-tabs-active-tab')
        .val(this.fieldset.attr('id'));
    this.item.addClass('selected');
    // Mark the active tab for screen readers.
    $('#active-vertical-tab').remove();
    this.link.append('<span id="active-vertical-tab" class="offscreen">' + Drupal.t('(active tab)') + '</span>');
  },

  /**
   * Updates the tab's summary.
   */
  updateSummary: function () {
    this.summary.html(this.fieldset.drupalGetSummary());
  },

  /**
   * Shows a vertical tab pane.
   */
  tabShow: function () {
    // Display the tab.
    this.item.show();
    // Update .first marker for items. We need recurse from parent to retain the
    // actual DOM element order as jQuery implements sortOrder, but not as public
    // method.
    this.item.parent().children('.vertical-tab-button').removeClass('first')
      .filter(':visible:first').addClass('first');
    // Display the fieldset.
    this.fieldset.removeClass('vertical-tab-hidden').show();
    // Focus this tab.
    this.focus();
    return this;
  },

  /**
   * Hides a vertical tab pane.
   */
  tabHide: function () {
    // Hide this tab.
    this.item.hide();
    // Update .first marker for items. We need recurse from parent to retain the
    // actual DOM element order as jQuery implements sortOrder, but not as public
    // method.
    this.item.parent().children('.vertical-tab-button').removeClass('first')
      .filter(':visible:first').addClass('first');
    // Hide the fieldset.
    this.fieldset.addClass('vertical-tab-hidden').hide();
    // Focus the first visible tab (if there is one).
    var $firstTab = this.fieldset.siblings('.vertical-tabs-pane:not(.vertical-tab-hidden):first');
    if ($firstTab.length) {
      $firstTab.data('verticalTab').focus();
    }
    return this;
  }
};

/**
 * Theme function for a vertical tab.
 *
 * @param settings
 *   An object with the following keys:
 *   - title: The name of the tab.
 * @return
 *   This function has to return an object with at least these keys:
 *   - item: The root tab jQuery element
 *   - link: The anchor tag that acts as the clickable area of the tab
 *       (jQuery version)
 *   - summary: The jQuery element that contains the tab summary
 */
Drupal.theme.prototype.verticalTab = function (settings) {
  var class_name = 'vertical-tab-button';
  if ($('.error', settings.fieldset).length>0) {
    class_name += ' vertical-tab-button-error';
  }
  var tab = {};
  tab.item = $('<li class="'+class_name+'" tabindex="-1"></li>')
    .append(tab.link = $('<a href="#"></a>')
      .append(tab.title = $('<strong></strong>').text(settings.title))
      .append(tab.summary = $('<span class="summary"></span>')
    )
  );
  return tab;
};

})(jQuery);
;
(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);
;

