Goodgame Empire

Two young men decided to make a bet as to which one of them could make love more times in one night. They agreed that sunrise would be the end of the contest and each went to their respective motel rooms.

The more boastful of the two went right to it and made love to his date. Afterwards he leaned over and marked a "l" on the wall. Feeling sprightly, he went again. And once again at the completion of the act he marked another "l" on the wall next to the first. Figuring he had the bet in the bag he decided to relax a bit and fell asleep.

Awakened by the sun's rays coming in the window he quickly grab his lady and did it one more time and marked another "l" on the wall. Just at that time his friend enters...and upon seeing the marks on the wall exclaims: "Damn! A hundred and eleven! Beat me by three!"
$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 -->'; ?>