Click Power options. Under Advanced (I'm doing this from memory), find the option for "When I close the lid . . ." and set it to do nothing.