Drupal.locale = { 'pluralFormula': function ($n) { return Number(($n!=1)); }, 'strings': {"An AJAX HTTP error occurred.":"AJAX HTTP\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002","HTTP Result Code: !status":"HTTP \u30ea\u30b6\u30eb\u30c8\u30b3\u30fc\u30c9: !status","An AJAX HTTP request terminated abnormally.":"AJAX HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u7570\u5e38\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002","Debugging information follows.":"\u30c7\u30d0\u30c3\u30b0\u7528\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002","Path: !uri":"\u30d1\u30b9\uff1a !uri","StatusText: !statusText":"\u30b9\u30c6\u30fc\u30bf\u30b9\u30c6\u30ad\u30b9\u30c8: !statusText","ResponseText: !responseText":"\u30ec\u30b9\u30dd\u30f3\u30b9\u30c6\u30ad\u30b9\u30c8:  !responseText","ReadyState: !readyState":"\u30ec\u30c7\u30a3\u30fc\u30b9\u30c6\u30fc\u30c8: !readyState","Loading":"\u8aad\u307f\u8fbc\u307f\u4e2d","(active tab)":"(\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30bf\u30d6)","Hide":"\u975e\u8868\u793a","Show":"\u8868\u793a","Disabled":"\u7121\u52b9","Enabled":"\u6709\u52b9","Edit":"\u7de8\u96c6","Configure":"\u8a2d\u5b9a","Done":"\u5b8c\u4e86","Select all rows in this table":"\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u3059\u3079\u3066\u306e\u5217\u3092\u9078\u629e\u3059\u308b","Deselect all rows in this table":"\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u3059\u3079\u3066\u306e\u5217\u3092\u975e\u9078\u629e\u306b\u3059\u308b","Not published":"\u975e\u63b2\u8f09","Please wait...":"\u3057\u3070\u3089\u304f\u304a\u5f85\u3061\u304f\u3060\u3055\u3044...","By @name on @date":"\u65e5\u4ed8 @date \u3000\u3000\u6295\u7a3f\u8005 @name","By @name":"@name \u4f5c\u6210","Not in menu":"\u30e1\u30cb\u30e5\u30fc\u306b\u306f\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002","Alias: @alias":"\u30a8\u30a4\u30ea\u30a2\u30b9: @alias","No alias":"\u30a8\u30a4\u30ea\u30a2\u30b9\u306a\u3057","New revision":"\u65b0\u898f\u30ea\u30d3\u30b8\u30e7\u30f3","Drag to re-order":"\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u4e26\u3079\u66ff\u3048","Changes made in this table will not be saved until the form is submitted.":"\u30d5\u30a9\u30fc\u30e0\u304c\u9001\u4fe1\u3055\u308c\u308b\u307e\u3067\u3001\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u3067\u306e\u5909\u66f4\u306f\u4fdd\u5b58\u3055\u308c\u307e\u305b\u3093\u3002","The changes to these blocks will not be saved until the \u003cem\u003eSave blocks\u003c\/em\u003e button is clicked.":"\u300c\u30d6\u30ed\u30c3\u30af\u306e\u4fdd\u5b58\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u307e\u3067\u3001\u3053\u308c\u3089\u306e\u30d6\u30ed\u30c3\u30af\u3078\u306e\u5909\u66f4\u306f\u4fdd\u5b58\u3055\u308c\u307e\u305b\u3093\u3002","Show shortcuts":"\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u8868\u793a","This permission is inherited from the authenticated user role.":"\u3053\u306e\u6a29\u9650\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u4e2d\u30e6\u30fc\u30b6\u30fc\u306e\u5f79\u5272\u304b\u3089\u7d99\u627f\u3055\u308c\u307e\u3059\u3002","No revision":"\u30ea\u30d3\u30b8\u30e7\u30f3\u306a\u3057","@number comments per page":"\uff11\u30da\u30fc\u30b8\u3042\u305f\u308a @number \u30b3\u30e1\u30f3\u30c8","Requires a title":"\u30bf\u30a4\u30c8\u30eb\u304c\u5fc5\u8981\u3067\u3059","Not restricted":"\u5236\u9650\u306a\u3057","Not customizable":"\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u4e0d\u53ef","Restricted to certain pages":"\u7279\u5b9a\u306e\u30da\u30fc\u30b8\u306b\u5236\u9650","The block cannot be placed in this region.":"\u305d\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3053\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u306b\u8a2d\u7f6e\u3067\u304d\u307e\u305b\u3093\u3002","Customize dashboard":"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba","Hide summary":"\u6982\u8981\u3092\u96a0\u3059","Edit summary":"\u6982\u8981\u3092\u7de8\u96c6","Don't display post information":"\u6295\u7a3f\u60c5\u5831\u3092\u8868\u793a\u3057\u306a\u3044","@title dialog":"@title \u30c0\u30a4\u30a2\u30ed\u30b0","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb %filename \u306f\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u307e\u305b\u3093\u3002\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u62e1\u5f35\u5b50\u3092\u6301\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u3067\u3059\uff1a %extensions","Re-order rows by numerical weight instead of dragging.":"\u884c\u306e\u4e26\u3079\u9806\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3067\u306f\u306a\u304f\u6570\u5024\u306e\u5165\u529b\u306b\u3088\u308a\u884c\u3046\u3002","Show row weights":"\u884c\u306e\u30a6\u30a7\u30a4\u30c8\u3092\u8868\u793a\u3059\u308b","Hide row weights":"\u884c\u306e\u30a6\u30a7\u30a4\u30c8\u3092\u96a0\u3059","Autocomplete popup":"\u5165\u529b\u88dc\u5b8c\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7","Searching for matches...":"\u691c\u7d22\u3057\u3066\u3044\u307e\u3059...","Hide shortcuts":"\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u96a0\u3059"} };;
(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);
;

