// $Id$
/**
 * Defines generic items for unims theme.
 * @file
 */

/**
 * Theme an error box.
 */
Drupal.theme.prototype.errorBox = function (text){
  var errorbox = $('<div id="errorbox"></div>').html(text);
  var button = Drupal.theme('button', "OK", 'ok-error');
  var centerWrapper = $('<div id="errorbox-center-wrapper"></div>');
  var boxContent = centerWrapper.append(button);
  
  return errorbox.append(boxContent).parent().html();
};

/**
 * Theme a button.
 */
Drupal.theme.prototype.button = function (text, id){
  var button = $('<div id="' + id + '" class="button"></div>');
  button.append('<span>' + text + '</span>');
  
  return button.parent().html();
};
