Drupal.locale = { 'pluralFormula': function ($n) { return Number(($n!=1)); }, 'strings': {"Edit":"Modifier","An AJAX HTTP error occurred.":"Une erreur HTTP AJAX s'est produite.","HTTP Result Code: !status":"Code de statut HTTP : !status","An AJAX HTTP request terminated abnormally.":"Une requ\u00eate HTTP AJAX s'est termin\u00e9e anormalement.","Debugging information follows.":"Informations de d\u00e9bogage ci-dessous.","Path: !uri":"Chemin: !uri","StatusText: !statusText":"StatutTexte: !statusText","ResponseText: !responseText":"ReponseTexte: !responseText","ReadyState: !readyState":"ReadyState: !readyState","Cancel":"Annuler","Disabled":"D\u00e9sactiv\u00e9","Enabled":"Activ\u00e9","none":"aucun(e)","Configure":"Configurer","Show":"Afficher","Select all rows in this table":"S\u00e9lectionner toutes les lignes du tableau","Deselect all rows in this table":"D\u00e9s\u00e9lectionner toutes les lignes du tableau","Not published":"Non publi\u00e9","Please wait...":"Veuillez patienter...","Hide":"Masquer","Loading":"En cours de chargement","By @name on @date":"Par @name le @date","By @name":"Par @name","Not in menu":"Pas dans le menu","Alias: @alias":"Alias : @alias","No alias":"Aucun alias","New revision":"Nouvelle r\u00e9vision","Drag to re-order":"Cliquer-d\u00e9poser pour r\u00e9-organiser","Changes made in this table will not be saved until the form is submitted.":"Les changements effectu\u00e9s dans ce tableau ne seront pris en compte que lorsque la configuration aura \u00e9t\u00e9 enregistr\u00e9e.","The changes to these blocks will not be saved until the \u003cem\u003eSave blocks\u003c\/em\u003e button is clicked.":"N'oubliez pas de cliquer sur \u003cem\u003eEnregistrer les blocs\u003c\/em\u003e pour confirmer les modifications apport\u00e9es ici.","Show shortcuts":"Afficher les raccourcis","This permission is inherited from the authenticated user role.":"Ce droit est h\u00e9rit\u00e9e du r\u00f4le de l'utilisateur authentifi\u00e9.","No revision":"Aucune r\u00e9vision","@number comments per page":"@number commentaires par page","Requires a title":"Titre obligatoire","Not restricted":"Non restreint","(active tab)":"(onglet actif)","Not customizable":"Non personnalisable","Restricted to certain pages":"R\u00e9serv\u00e9 \u00e0 certaines pages","The block cannot be placed in this region.":"Le bloc ne peut pas \u00eatre plac\u00e9 dans cette r\u00e9gion.","Hide summary":"Masquer le r\u00e9sum\u00e9","Edit summary":"Modifier le r\u00e9sum\u00e9","Don't display post information":"Ne pas afficher les information de la contribution","@title dialog":"dialogue de @title","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Le fichier s\u00e9lectionn\u00e9 %filename ne peut pas \u00eatre transf\u00e9r\u00e9. Seulement les fichiers avec les extensions suivantes sont permis : %extensions.","Re-order rows by numerical weight instead of dragging.":"R\u00e9-ordonner les lignes avec des poids num\u00e9riques plut\u00f4t qu'en les d\u00e9placant.","Show row weights":"Afficher les poids des lignes","Hide row weights":"Cacher le poids des lignes","Autocomplete popup":"Popup d'auto-compl\u00e9tion","Searching for matches...":"Recherche de correspondances...","Hide shortcuts":"Cacher les raccourcis"} };;
(function ($) {
  Drupal.behaviors.login_drawer = {
    attach: function (context, settings) {
      $("#block-user-login").hide();
      $(".links a[href='/user/login']:not(.login-drawer-processed)", context).addClass('login-drawer-processed').click(function() {
        $("#block-user-login").fadeToggle('fast');
        $(this).toggleClass('login-drawer-opened');
        return false;
      });
    } // attach
  }; // Drupal.behaviors
})(jQuery);
;
(function ($) {
  Drupal.behaviors.menu_drawer = {
    attach: function (context, settings) {
      menuSelector = settings.menuDrawer.menu;
      
      $(".menu-drawer-block:not(.menu-drawer-processed)", context).addClass('menu-drawer-processed').hide();
    	  
      $(menuSelector + ":not(.menu-drawer-processed)", context).addClass('menu-drawer-processed').each(function() {
        var menu_id = -1;
        var classes = $(this).parent().attr('class');
        classes = classes.split(" ");
        for (var i in classes) {
          if (classes[i].substr(0, 5) == "menu-") {
            menu_id = classes[i].substr(5);
            break;
          }
        }
        
        if ($("#menu-drawer-block-" + menu_id, context).size() > 0) {
          $(this).click(function() {
            $(menuSelector, context).removeClass('menu-drawer-opened');  
            $(this).toggleClass('menu-drawer-opened');
            // Hide other main menu blocks
            $(".menu-drawer-block:not(#menu-drawer-block-" + menu_id +")", context).slideUp('fast', 'linear');
            // Toggle current main menu block
            $("#menu-drawer-block-" + menu_id, context).slideToggle('fast', 'linear');
            return false;
          });
        }
      });
      
      $('#search-block-form .form-text:not(.menu-drawer-processed)', context).addClass('menu-drawer-processed').addClass('defaultTextActive').focus(function() {
        if ($(this).hasClass('defaultTextActive')) {
          $(this).removeClass('defaultTextActive');
          $(this).val('');
        }
      }).blur(function() {
        if ($(this).hasClass('defaultTextActive')) {
          $(this).val($(this).attr('title'));
        }
      }).blur();
      
      $('#search-form .form-text:not(.menu-drawer-processed)', context).addClass('menu-drawer-processed').addClass('defaultTextActive').focus(function() {
        if ($(this).hasClass('defaultTextActive')) {
          $(this).removeClass('defaultTextActive');
          $(this).val('');
        }
      }).blur(function() {
        if ($(this).hasClass('defaultTextActive')) {
          $(this).val($('label', $(this).parent()).html());
        }
      }).blur();
    }
  };
})(jQuery);
;
(function ($) {

Drupal.behaviors.rotatingBanner = {
  attach : function(context) {
    $('.view-banners .view-content', context)
      .before('<div class="banner-pager">')
      .cycle({
        fx: 'fade',
        speed: 600,
        timeout: 5500,
        pager: '.banner-pager',
        pagerEvent: 'mouseover',
        pause: 1,
        pauseOnPagerHover: 1,
        pagerAnchorBuilder: function(i,el) { return '<a href="#" class="item-'+(i+1)+'"><span class="text">'+(i+1)+'<\/span><span class="replacement"><\/span><\/a>'; },
        cleartype: true, /* IE issue with bg */
        cleartypeNoBg: true
      });
  }
};

})(jQuery);;
/**
 * @file base.js
 *
 * Some basic behaviors and utility functions for Views.
 */
(function ($) {

Drupal.Views = {};

/**
 * jQuery UI tabs, Views integration component
 */
Drupal.behaviors.viewsTabs = {
  attach: function (context) {
    if ($.viewsUi && $.viewsUi.tabs) {
      $('#views-tabset').once('views-processed').viewsTabs({
        selectedClass: 'active'
      });
    }

    $('a.views-remove-link').once('views-processed').click(function(event) {
      var id = $(this).attr('id').replace('views-remove-link-', '');
      $('#views-row-' + id).hide();
      $('#views-removed-' + id).attr('checked', true);
      event.preventDefault();
   });
  /**
    * Here is to handle display deletion 
    * (checking in the hidden checkbox and hiding out the row) 
    */
  $('a.display-remove-link')
    .addClass('display-processed')
    .click(function() {
      var id = $(this).attr('id').replace('display-remove-link-', '');
      $('#display-row-' + id).hide();
      $('#display-removed-' + id).attr('checked', true);
      return false;
  });
  }
};

/**
 * Helper function to parse a querystring.
 */
Drupal.Views.parseQueryString = function (query) {
  var args = {};
  var pos = query.indexOf('?');
  if (pos != -1) {
    query = query.substring(pos + 1);
  }
  var pairs = query.split('&');
  for(var i in pairs) {
    if (typeof(pairs[i]) == 'string') {
      var pair = pairs[i].split('=');
      // Ignore the 'q' path argument, if present.
      if (pair[0] != 'q' && pair[1]) {
        args[decodeURIComponent(pair[0].replace(/\+/g, ' '))] = decodeURIComponent(pair[1].replace(/\+/g, ' '));
      }
    }
  }
  return args;
};

/**
 * Helper function to return a view's arguments based on a path.
 */
Drupal.Views.parseViewArgs = function (href, viewPath) {
  var returnObj = {};
  var path = Drupal.Views.getPath(href);
  // Ensure we have a correct path.
  if (viewPath && path.substring(0, viewPath.length + 1) == viewPath + '/') {
    var args = decodeURIComponent(path.substring(viewPath.length + 1, path.length));
    returnObj.view_args = args;
    returnObj.view_path = path;
  }
  return returnObj;
};

/**
 * Strip off the protocol plus domain from an href.
 */
Drupal.Views.pathPortion = function (href) {
  // Remove e.g. http://example.com if present.
  var protocol = window.location.protocol;
  if (href.substring(0, protocol.length) == protocol) {
    // 2 is the length of the '//' that normally follows the protocol
    href = href.substring(href.indexOf('/', protocol.length + 2));
  }
  return href;
};

/**
 * Return the Drupal path portion of an href.
 */
Drupal.Views.getPath = function (href) {
  href = Drupal.Views.pathPortion(href);
  href = href.substring(Drupal.settings.basePath.length, href.length);
  // 3 is the length of the '?q=' added to the url without clean urls.
  if (href.substring(0, 3) == '?q=') {
    href = href.substring(3, href.length);
  }
  var chars = ['#', '?', '&'];
  for (i in chars) {
    if (href.indexOf(chars[i]) > -1) {
      href = href.substr(0, href.indexOf(chars[i]));
    }
  }
  return href;
};

})(jQuery);
;

