Bumcake, use this script:
<?php
$images = array(
"http://img.photobucket.com/albums/v451/leatrix/ImageMaps/mapbumcake.jpg",
"http://img.photobucket.com/albums/v451/leatrix/pets/ryukogrown1.jpg",
"http://img.photobucket.com/albums/v679/Gauze-Mizin/Tagged/kyrik.jpg",
"http://img.photobucket.com/albums/v679/Gauze-Mizin/Tagged/mitrik.jpg"
)
header("Location: ".$images[array_rand($images)])
?>
It's simpler, and, I think a tiny bit quicker. Also, you left the comma out at the end of the line that had the third image and broke the script, and the script was messed up anyway. This one will work fine. Remember, when adding a new image, put a comma on the end of the line before.
Using it with an image map won't really work right, since the map would be active for every image in the script, not just the image you intended it to be used for....