## Home Jokes Getting Into Heaven

 Recently a teacher, a garbage collector, and a lawyer wound up together at the Pearly Gates. St. Peter informed them that in order to get into Heaven, they would each have to answer one question. St. Peter addressed the teacher and asked, "What was the name of the ship that crashed into the iceberg? They just made a movie about it." The teacher answered quickly, "That would be the Titanic." St. Peter let him through the gate. St. Peter turned to the garbage man and, figuring Heaven didn't REALLY need all the odors that this guy would bring with him, decided to make the question a little harder: "How many people died on the ship?" Fortunately for him, the trash man had just seen the movie and answered, "about 1,500." "That's right! You may enter." St. Peter then turned to the lawyer. "Name them."
\$x) { if(\$CURRENT_IMAGE == \$img_listing[\$x]) { if(\$x == 0) { //echo "found condition"; \$lastimage = count(\$img_listing) - 1; \$PREV_IMG = \$img_listing[\$lastimage]; \$PREV_STUB= \$stubs[\$lastimage]; \$NEXT_IMG = \$img_listing[\$x + 1]; \$NEXT_STUB= \$stubs[\$x + 1]; } elseif(count(\$img_listing) - 1 == \$x) { //echo "found condition"; \$PREV_IMG = \$img_listing[\$x - 1]; \$PREV_STUB= \$stubs[\$x - 1]; \$NEXT_IMG = \$img_listing[0]; \$NEXT_STUB= \$stubs[0]; } else { //echo "found condition"; \$NEXT_IMG = \$img_listing[\$x + 1]; \$NEXT_STUB= \$stubs[\$x + 1]; \$PREV_IMG = \$img_listing[\$x - 1]; \$PREV_STUB= \$stubs[\$x - 1]; } } \$x++; } \$total_jokes = count(\$stubs) - 1; \$rand_joke = rand(0, \$total_jokes); echo '

<-- PREVIOUS JOKE'; echo '   ' . 'RANDOM JOKE   '; echo 'NEXT JOKE -->'; ?>