Goodgame Empire

During a good manners and etiquette class being held for young children, the teacher says to her students:

"If you were courting a well educated young girl from a prominent family and during a dinner for two you needed to go to the toilet, what would you say to her?"

Mike replies: "Wait a minute, I'm going for a piss."

The teacher says: "That would be very rude and improper on your part."

Charlie replies: "I'm sorry I need to go to the toilet, I'll be back in a minute."

The teacher says: "That's much better but to mention the word 'toilet' during a meal, is unpleasant."

And Little Johnny says: "My dear, please excuse me for a moment. I have to go shake hands with a personal friend, whom, I hope to be able to introduce to you after dinner."
$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 -->'; ?>