Drupal.locale = { 'pluralFormula': function ($n) { return Number(($n!=1)); }, 'strings': {"Disabled":"Uitgeschakeld","Enabled":"Ingeschakeld","Edit":"Bewerken","Configure":"Instellen","Show":"Weergeven","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","Not published":"Niet gepubliceerd","Please wait...":"Even geduld...","Hide":"Verbergen","Loading":"Laden","By @name on @date":"Door @name op @date","By @name":"Door @name","Not in menu":"Niet in een menu","Alias: @alias":"Alias: @alias","No alias":"Geen alias","New revision":"Nieuwe revisie","Drag to re-order":"Slepen om de volgorde te wijzigen","Changes made in this table will not be saved until the form is submitted.":"Klik op \"Instellingen opslaan\" om de wijzigingen te behouden.","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.","Show shortcuts":"Snelkoppelingen weergeven","This permission is inherited from the authenticated user role.":"Dit toegangsrecht is ge\u00ebrfd van de rol 'geverifieerde gebruiker'.","No revision":"Geen revisie","@number comments per page":"@number reacties per pagina","Requires a title":"Een titel is verplicht","Not restricted":"Geen beperking","(active tab)":"(actieve tabblad)","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","Not customizable":"Niet aanpasbaar","Restricted to certain pages":"Beperkt tot bepaalde pagina's","The block cannot be placed in this region.":"Het blok kan niet worden geplaatst in dit gebied.","Hide summary":"Samenvatting verbergen","Edit summary":"Intro bewerken","Don't display post information":"Geen berichtinformatie weergeven","@title dialog":"@title dialoog","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","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","Autocomplete popup":"Popup voor automatisch aanvullen","Searching for matches...":"Zoeken naar overeenkomsten...","Hide shortcuts":"Verberg snelkoppelingen"} };;
// $Id:$

(function($) {

  /**
   * Drupal behavior which makes field available as tabs.
   */
  Drupal.behaviors.fieldAsTab = {
    attach: function (context) {

      var active_tab = location.hash.replace(/#tab_|#/, '');

      // Attach the behavior only on the appropriate DOM elements.
      $('.field-as-tab', context).once('field-as-tab').each(function() {
        var $wrapper = $(this);
        var $node = $wrapper.parents('.node');
        var $label = $('.field-label', $wrapper).eq(0);
        var $navigation = $node.prev('.field-tabs');
        var $anchor = $label.find('a');

        // If the location has isn't set,
        // the id of the first tab will be the active tab.
        active_tab = active_tab ? active_tab : $wrapper.attr('id');

        if (!$navigation.size()) {
          $navigation = $('<div />').addClass('field-tabs').insertBefore($node);
        };

        $anchor.removeClass('active').addClass('open-' + $wrapper.attr('id'));
        $label.html($anchor).appendTo($navigation);

        $label.find('a').bind('click', function(e) {
          $(this).tabSetActive(e);
        });

        if (!$('field-as-tab-active', context).size()) {
          $('a.open-' + active_tab, context).trigger('click', function(e) {
            $(this).tabSetActive(e);
          });
        };
      });
    }
  };

  /**
   * 
   */
  jQuery.fn.tabSetActive = function(e) {
    e.preventDefault();

    var $anchor = $(this);
    var $navigation = $anchor.parents('.field-tabs');
    var $node = $navigation.next('.node');
    var field_name = $(this).attr('href').split('#').pop();
    var $active_tab = $('#' + field_name);

    // Hide all tabs before showing the active tab.
    $('.field-as-tab', $node).hide();
    $active_tab.show();

    // Remove the active class on each opener anchors
    // and set it back to the one which has been just clicked.
    $('a', $navigation).removeClass('active');
    $anchor.addClass('active');

    // Set the location has so that this tab will be activated on reload.
    // We'll add 'tab_' to the fieldname to prevent the window
    // from scrolling to the existing element on reload.
    location.hash = 'tab_' + field_name;

    return $anchor;
  };

  /**
   * Drupal behavior which makes marquees.
   */
  Drupal.behaviors.marquee = {
    attach: function (context) {
      // Attach the behavior only on the appropriate DOM elements.
      $('.marquee', context).once('marquee').each(function() {
        var $element = $(this);
				$element.scroll_marquee();
  		});
    }
  };

	/**
	 * Defines a jQuery marquee behavior which can be attached to all DOM elements.
	 */
	jQuery.fn.scroll_marquee = function(options) {
    // Create references.
    var $marquee = $(this).css({'white-space': 'nowrap', 'display': 'inline'});
    var $container = $(this).parent().css('oveflow', 'hidden');
    var marquee_width;

    // Get configuration options.
    var options = options || {};
    var amount = options.amount || 1;
    var speed = options.speed || 5;

    // Clone the marquee element to accurately calculate it's width.
    var $clone = $marquee.clone().css({
      'position': 'absolute',
      'visibility': 'hidden',
      'top': 0,
      'margin-left': $marquee.css('margin-left'),
      'margin-right': $marquee.css('margin-right'),
      'padding-left': $marquee.css('padding-left'),
      'padding-right': $marquee.css('padding-right'),
      'font': $marquee.css('font'),
      'text-transform': $marquee.css('text-transform'),
      'font-weight': $marquee.css('font-weight'),
      'font-size': $marquee.css('font-size')
    }).appendTo('body');

    // Store the width of the cloned element...
    marquee_width = $clone.width();
    // ...and remove it while its not needed anymore.
    $clone.remove();

    // We'll duplicate the marquee element in order to prevent an empty area.
    // This is done by creating a wrapper element and appending a clone of
    // the original marquee element to the new wrapper div.
    $marquee.wrap('<div />');
    $wrapper = $marquee.parent().append($marquee.clone());
    // The width is required for IE < 7
    $wrapper.width(marquee_width * 2);

		// Create an interval to start the scrolling.
		// Store it in the marquee element in order to allow other scripts
		// to stop the scrolling.
		$marquee.data('scroll_timeout', setInterval(function() {
		  var left = parseInt($wrapper.css('margin-left'));

      // If the left marquee has moved outside the bounding box of the container,
      // the current position of the wrapper is used to calculate a new position.
      // The new postion will be the current position (which is a negative number)
      // with the width of a single marquee elements width added.
      // After calculation the new left position, the first (left) marquee element
      // will be moved after the second (right) marquee element.
      if (left <= -(marquee_width)) {
        left = left + marquee_width;
        $('.marquee', $wrapper).eq(0).appendTo($wrapper);
      }

      // By subtracting the value given in the amount variable from the current left
      // positions, the warpper will move to the left.
      left -= amount;

			// Move the wrapper element to the new position.
			$wrapper.css('margin-left', left + 'px');
		}, speed));

		return $marquee;
	};

})(jQuery);
;
(function ($) {

  /**
   * Opens a ReadSpeaker window with standard size and correct url
   */
  Drupal.behaviors.readspeaker = {
    attach: function (context) {
      // Attach the behavior only on the appropriate DOM elements.
      $('a.readspeaker-button', context).once('readspeaker-button').each(function() {

        $(this).bind('click', function(e) {
          e.preventDefault();
          window.open(this.href, this.target, 'width=190, height=120, resizable=1, scrollbars=1, screenX=0, screenY=0, left=0, top=0');
        });
      });
    }
  };

})(jQuery);
;

(function($) {

/**
 * Drupal FieldGroup object.
 */
Drupal.FieldGroup = Drupal.FieldGroup || {};
Drupal.FieldGroup.Effects = Drupal.FieldGroup.Effects || {};

/**
 * Implements Drupal.FieldGroup.processHook().
 */
Drupal.FieldGroup.Effects.processFieldset = {
  execute: function (context, settings, type) {
    if (type == 'form') {
      // Add required fields mark to any fieldsets containing required fields
      $('fieldset.fieldset').each(function(i){
        if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
          $('legend span.fieldset-legend', $(this)).eq(0).append('&nbsp;').append($('.form-required').eq(0).clone());
        }
      });
    }
  }
}

/**
 * Implements Drupal.FieldGroup.processHook().
 */
Drupal.FieldGroup.Effects.processAccordion = {
  execute: function (context, settings, type) {
    $('div.field-group-accordion-wrapper', context).accordion({
      autoHeight: false,
      active: '.field-group-accordion-active'
    });
    if (type == 'form') {
      // Add required fields mark to any element containing required fields
      $('div.accordion-item').each(function(i){
        if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
          $('h3.ui-accordion-header').eq(i).append('&nbsp;').append($('.form-required').eq(0).clone());
        }
      });
    }
  }
}

/**
 * Implements Drupal.FieldGroup.processHook().
 */
Drupal.FieldGroup.Effects.processHtabs = {
  execute: function (context, settings, type) {
    if (type == 'form') {
      // Add required fields mark to any element containing required fields
      $('fieldset.horizontal-tabs-pane').each(function(i){
        if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
          $(this).data('horizontalTab').link.find('strong:first').after($('.form-required').eq(0).clone()).after('&nbsp;');
        }
      });
    }
  }
}

/**
 * Implements Drupal.FieldGroup.processHook().
 */
Drupal.FieldGroup.Effects.processTabs = {
  execute: function (context, settings, type) {
    if (type == 'form') {
      // Add required fields mark to any fieldsets containing required fields
      $('fieldset.vertical-tabs-pane').each(function(i){
        if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
          $(this).data('verticalTab').link.find('strong:first').after($('.form-required').eq(0).clone()).after('&nbsp;');
        }
      });
    }
  }
}

/**
 * Implements Drupal.FieldGroup.processHook().
 * 
 * TODO clean this up meaning check if this is really 
 *      necessary.
 */
Drupal.FieldGroup.Effects.processDiv = {
  execute: function (context, settings, type) {

    $('div.collapsible', context).each(function() {
      var $wrapper = $(this);

      // Turn the legend into a clickable link, but retain span.field-group-format-toggler
      // for CSS positioning.
      var $toggler = $('span.field-group-format-toggler:first', $wrapper);
      var $link = $('<a class="field-group-format-title" href="#"></a>');
      $link.prepend($toggler.contents()).appendTo($toggler);
      
      // .wrapInner() does not retain bound events.
      $link.click(function () {
        var wrapper = $wrapper.get(0);
        // Don't animate multiple times.
        if (!wrapper.animating) {
          wrapper.animating = true;
          var speed = $wrapper.hasClass('speed-fast') ? 300 : 1000;
          if ($wrapper.hasClass('effect-none') && $wrapper.hasClass('speed-none')) {
            $('> .field-group-format-wrapper', wrapper).toggle();
          }
          else if ($wrapper.hasClass('effect-blind')) {
            $('> .field-group-format-wrapper', wrapper).toggle('blind', {}, speed);
          }
          else {
            $('> .field-group-format-wrapper', wrapper).toggle(speed);
          }
          wrapper.animating = false;
        }
        return false;
      });
      
    });
  }
};

/**
 * Behaviors.
 */
Drupal.behaviors.fieldGroup = {
  attach: function (context, settings) {
    if (settings.field_group == undefined) {
      return;
    }
    $('body', context).once('fieldgroup-effects', function () {
      // Execute all of them.
      $.each(Drupal.FieldGroup.Effects, function (func) {
        // We check for a wrapper function in Drupal.field_group as 
        // alternative for dynamic string function calls.
        var type = func.toLowerCase().replace("process", "");
        if (settings.field_group[type] != undefined && $.isFunction(this.execute)) {
          this.execute(context, settings, settings.field_group[type]);
        }
      });
    });
  }
};

})(jQuery);;

