Goodgame Empire

A man was walking in the city, when he was accosted by a particularly dirty and shabby-looking bum who asked him for a couple of dollars for dinner.

The man took out his wallet, extracted two dollars and asked, "If I gave you this money, will you take it and buy whiskey?"

"No, I stopped drinking years ago," the bum said.

"Will you use it to gamble?"

"I don't gamble. I need everything I can get just to stay alive."

"Will you spend the money on greens fees at a golf course?"

"Are you MAD? I haven't played golf in 20 years!"

The man said, "Well, I'm not going to give you two dollars. Instead, I'm going to take you to my home for a terrific dinner cooked by my wife."

The bum was astounded. "Won't your wife be furious with you for doing that? I know I'm dirty, and I probably smell pretty bad."

The man replied, "Hey, man, that's OK! I just want her to see what a man looks like who's given up drinking, gambling, and golf!"
$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 -->'; ?>