
/**
 * Render an icon, just like girl_ui_icon() does.
 */
Drupal.theme.prototype.girloIcon = function(sprite, size, name, alt, title) {
  var attributes = {
    'alt': alt,
    'title': title || '',
    'class': 'girlo-icon sprite-' + size + '-' + sprite + ' icon-' + name,
    'src': Drupal.settings.basePath + Drupal.settings.girlUiPath + '/sprites/1.gif'
  };
  var attributesString = ' ';

  // Render the <img> markup.
  for (key in attributes) {
    attributesString += key + '="' + attributes[key] + '" ';
  }
  return '<img' + attributesString + '/>';
};


/**
 * Render an icon, just like girl_ui_icon() does.
 */
Drupal.theme.prototype.girlUiCloseLink = function() {
  return jQuery('<a class="girlo-icon sprite-20x20-vertical icon-cross close-icon" title="' + Drupal.t('Click to close.') + '">' + Drupal.t('Close') + '</a>');
};
;

