$screen_max) { $screen_next = 1; } if ($screen_prev < 1) { $screen_prev = $screen_max; } ?>