Leave the negative and positive cables stretched out so you reach in and get them with the limited access you have with the trailer down. Then pull a vehicle up near the batterey compartment and use jumper cables and attach them to the battery cables. Make sure you leave you engine running and shield the whole arrangement from metal- like the top of the batterey compartment.
Rick