Drupal.locale = { 'pluralFormula': function ($n) { return Number(($n!=1)); }, 'strings': {"":{"An AJAX HTTP error occurred.":"Er is een AJAX HTTP fout opgetreden.","HTTP Result Code: !status":"HTTP-resultaatcode: !status","An AJAX HTTP request terminated abnormally.":"Een AJAX HTTP-aanvraag is onverwacht afgebroken","Debugging information follows.":"Debug informatie volgt.","Path: !uri":"Pad: !uri","StatusText: !statusText":"Statustekst: !statusText","ResponseText: !responseText":"Antwoordtekst: !responseText","ReadyState: !readyState":"ReadyState: !readyState","(active tab)":"(actieve tabblad)","Hide":"Verbergen","Configure":"Instellen","Show shortcuts":"Snelkoppelingen weergeven","Hide shortcuts":"Snelkoppelingen verbergen","Re-order rows by numerical weight instead of dragging.":"Herschik de rijen op basis van gewicht, in plaats van slepen.","Show row weights":"Gewicht van rijen tonen","Hide row weights":"Gewicht van rij verbergen","Drag to re-order":"Slepen om de volgorde te wijzigen","Changes made in this table will not be saved until the form is submitted.":"Wijzigingen in deze tabel worden pas opgeslagen wanneer het formulier wordt ingediend.","Loading...":"Bezig met laden...","Select":"Selecteer","Requires a title":"Een titel is verplicht","Don't display post information":"Geen berichtinformatie weergeven","Hide summary":"Samenvatting verbergen","Edit summary":"Samenvatting bewerken","Automatic alias":"Automatische alias","Alias: @alias":"Alias: @alias","No alias":"Geen alias","Please wait...":"Even geduld...","New revision":"Nieuwe revisie","No revision":"Geen revisie","By @name on @date":"Door @name op @date","By @name":"Door @name","Autocomplete popup":"Popup voor automatisch aanvullen","Searching for matches...":"Zoeken naar overeenkomsten...","Select all rows in this table":"Selecteer alle regels van deze tabel","Deselect all rows in this table":"De-selecteer alle regels van deze tabel","all":"alle","none":"geen","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Het bestand %filename kan niet ge\u00fcpload worden. Alleen bestanden met de volgende extensies zijn toegestaan: %extensions","Submit":"Indienen","Not restricted":"Geen beperking","Restricted to certain pages":"Beperkt tot bepaalde pagina's","Not customizable":"Niet aanpasbaar","The changes to these blocks will not be saved until the \u003cem\u003eSave blocks\u003c\/em\u003e button is clicked.":"Wijzigingen aan de blokken worden pas opgeslagen wanneer u de knop \u003cem\u003eBlokken opslaan\u003c\/em\u003e aanklikt.","The block cannot be placed in this region.":"Het blok kan niet worden geplaatst in dit gebied.","Not in menu":"Niet in een menu","Add file":"Voeg bestand toe","Translate Text":"Tekst vertalen","An HTTP error @status occured.":"Een HTTP-fout @status is opgetreden."}} };;
(function ($) { $(document).ready(function() {

  // Check if there's a loader present.
  if ($('#iframeloader').size() > 0) {
	    // Hide the load if it was visible.
	    //$("#iframeloader").hide();
      //$(this).show();
      setTimeout("window.location.replace($('#iframeresults').attr('src'))", 3000);  
  }
  
  // Hide the 'one-too-many' advanced search link
  $(".not-front p.advanced-search-front, .front p.advanced-search-flights").hide();
  
}); }) (jQuery);;
(function ($) { $(document).ready(function() {

  // Submit the sort form when changing the sort value.
  $("#joker-search-facet-sort-form .form-submit").hide();
	$("#edit-sort").change(function () {
    $("#joker-search-facet-sort-form").submit();   
	});
	
	// Price range slider.
	$('input#inpPriceRange').mouseup(function (i) {
	 $('div#price-slider-display p').text($(this).val());
	 $('input#inpPriceHidden').val($(this).val());
	});
	
	/**
	 * Limit the number of taxonomy terms, starting at level 1, 
	 * to (limit) and show a 'more' link, which slides out all the terms.
	 */
	var limit = 3;
	$('ul.term-facet-list ul').each(function () {
	  // Only go through all this when we actually have more than (limit) list-items.
	  if ($('li', this).size() > limit) {
	    // First hide all list-items. 
	    $('li', this).hide();
	    // Then show the first (limit).
	    for (var i = 1; i <= limit; i++) {
        $('li:nth-child(' + i + ')', this).show();
	    }
	    // Add a more link after the item nr. (limit).
	    $('li:nth-child(3)', this).append('<div class="term-facet-list-more"><a href="#">meer</a></div>');
	    // Show all the items when clicking on the more link.
	    $('.term-facet-list-more a', this).click(function () {
	      // Get the parent ul of this link.
	      var parentList = $(this).closest('ul');
	      $('li', parentList).slideDown('slow');
	      $(this).hide();
	      return false;
	    });
	  }
	});
  
}); }) (jQuery);;

/**
 * Attaches the calendar behavior to all required fields
 */
(function ($) {
Drupal.behaviors.date_popup = {
  attach: function (context) {
  for (var id in Drupal.settings.datePopup) {
    $('#'+ id).bind('focus', Drupal.settings.datePopup[id], function(e) {
      if (!$(this).hasClass('date-popup-init')) {
        var datePopup = e.data;
        // Explicitely filter the methods we accept.
        switch (datePopup.func) {
          case 'datepicker':
            $(this)
              .datepicker(datePopup.settings)
              .addClass('date-popup-init')
            $(this).click(function(){
              $(this).focus();
            });
            break;

          case 'timeEntry':
            $(this)
              .timeEntry(datePopup.settings)
              .addClass('date-popup-init')
            $(this).click(function(){
              $(this).focus();
            });
            break;
          case 'timepicker':
            // Translate the PHP date format into the style the timepicker uses.
            datePopup.settings.timeFormat = datePopup.settings.timeFormat
              .replace('h', 'hh')  // 12-hour, leading zero
              .replace('g', 'h')   // 12-hour, no leading zero
              .replace('H', 'HH')  // 24-hour, leading zero
              .replace('G', 'H')   // 24-hour, no leading zero
              .replace('A', 'p')   // AM/PM
              .replace('i', 'mm')  // minutes with leading zero
              .replace('s', 'ss'); // seconds with leading zero

            datePopup.settings.startTime = new Date(datePopup.settings.startTime);
            $(this)
              .timepicker(datePopup.settings)
              .addClass('date-popup-init');
            $(this).click(function(){
              $(this).focus();
            });
            break;
        }
      }
    });
  }
  }
};
})(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);
;

