Drupal.locale = { 'pluralFormula': function ($n) { return Number(($n>1)); }, 'strings': {"":{"Select all rows in this table":"Seleccionar todas las filas de esta tabla","Deselect all rows in this table":"Quitar la selecci\u00f3n a todas las filas de esta tabla","An HTTP error @status occurred. \n@uri":"Ocurri\u00f3 un error HTTP @status. @uri","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.":"La configuraci\u00f3n de su sistema no soporta actualmente esta caracter\u00edstica. La \u003ca href=\"http:\/\/drupal.org\/node\/15365\"\u003ep\u00e1gina del manual sobre URL limpios\u003c\/a\u003e tiene m\u00e1s informaci\u00f3n sobre posibles problemas.","Testing clean URLs...":"Probando URL limpios...","Only files with the following extensions are allowed: %files-allowed.":"S\u00f3lo se permiten archivos con las siguientes extensiones: %files-allowed.","Your server has been successfully tested to support this feature.":"Su servidor pas\u00f3 con \u00e9xito la prueba sobre soporte de esta caracter\u00edstica.","Disabled":"Desactivado","Enabled":"Activo","Save":"Guardar","Not published":"No publicado","Thursday":"Jueves","Friday":"Viernes","Saturday":"S\u00e1bado","Sunday":"Domingo","Monday":"Lunes","Tuesday":"Martes","Wednesday":"Mi\u00e9rcoles","Settings":"Opciones","Upload":"Upload","Edit":"Editar","May":"Mayo","Close":"Cerrar","Automatic alias":"Alias autom\u00e1tico de ruta","loading":"cargando...","re-check":"re-chequear","availability for selected resources.":"disponibilidad de recursos seleccionados","visualize":"visualizar","availability for (selected) resources.":"disponibilidad de recursos (seleccionados)","Choose":"Escoger","you already chose this resource in another field":"Ya escogiste este recurso en otro campo.","testing availability (wait)":"chequeando disponibilidad (espere)","(not available)":"(no disponible)","(available)":"(disponible)","Add resource to visualization":"A\u00f1adir recurso a la visualizaci\u00f3n","--empty--":"--vacio--","Resources":"Recursos","empty":"vacio","January":"Enero","February":"Febrero","March":"Marzo","April":"Abril","June":"Junio","July":"Julio","August":"Agosto","September":"Septiembre","October":"Octubre","November":"Noviembre","December":"Diciembre","until":"hasta","Dates":"Fechas","Select Dates \u0026amp; Resources":"Fechas y Recursos","open the dates \u0026 resources interface to select the dates and resources for your activity by dragging and clicking.":"abre la interfase de fechas y recursos para elegir las fechas para tu actividad y los recursos que requieres. Si requieres de ayuda, abre la pesta\u00f1a de \"ayuda\" dentro de la interfase. ","Select Dates \u0026 Resources":"Elegir Fechas y Recursos","go to date":"ver fecha","Some resources can't be booked, because of time conflicts.\\r\\nPlease check the red marked dates.\\r\\n\\r\\nYou have to solve the conflicts before beeing able to save your configurations.":"Alg\u00fan recurso no puede ser reservado debido a conflictos con otras reservas.\\r\\n Por favor verifique las fechas marcadas de rojo\\r\\n\\r\\nNo es posible guardar los cambios sin antes resolver los conflictos.","checking availability":"verificando disponibilidad...","saving changes, please wait...":"guardando cambios, por favor esperar...","wait":"espere","Resources to book:":"Recursos a reservar:","Selected dates:":"Fechas elegidas:"}} };;
/**
 * @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);
;

