page = (PlaylistPage)ScreenRunner.playlist.getPagesModel().getElementAt(idx);
if(page == null) {
disp.prepareNextBackground(style, "default");
disp.prepareNextSlide(null, 0, style);
} else {
disp.prepareNextBackground(style, page.getItem().getStyleType());
disp.prepareNextSlide(page.getItem(), page.getPage(), style);
}
} else {
disp.prepareNextBackground(style, "default");
disp.prepareNextSlide(null, 0, style);