## Home Jokes Who's An Idiot?

 "If there are any idiots in the classroom, will they please stand up," said the sarcastic teacher. After a long silence, one freshman rose to his feet."Now then, why do you consider yourself an idiot?" inquired the teacher with a sneer."Well, actually I don't," said the student, "but I hate to see you standing up there all by yourself."
\$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 -->'; ?>