
function mm_display(user_id, mm_id, status, width, height)
{
  $la = $('loading_animation');
  $mmc = $('mm_current');

  $la_d = $la.getDimensions();
  $mmc_d = $mmc.getDimensions();

  $off_l = ($mmc_d.width / 2) - ($la_d.width / 2);
  $off_t = ($mmc_d.height / 2) - ($la_d.height / 2);
  
  var size = '';
  if (width != 0 && height != 0)
  {
  	size = '&width=' + width + '&height=' + height;
  }
  
  $la.clonePosition('mm_current', {offsetLeft: $off_l, offsetTop: $off_t, setWidth: false, setHeight: false}).show();
  new Ajax.Updater('mm_current', '?page_id=124&user_id=' + user_id +
                   '&multimedia_id=' + mm_id + '&multimedia_status=' + status + '&ajax' + size,
                   { method: 'get',
                       onComplete: function() {
                           setTimeout(function() {$('loading_animation').hide();}, 500);
                     }});
}
