// Using multiple unit types within one animation.
function swap() {

  $("#imagex").animate({ 
    width: 279,
    height: 186
  }, 1500, 'swing', complete );

}

function complete() {

}