int animationCounter = 0;
	public void run() {		long sleeptime = ANIMATION_INTERVAL;		int animationCounter = 0;		while ( true ) {			try {				Thread.sleep(sleeptime);				Screen screen = StyleSheet.currentScreen;				if (screen != null ) {					if (screen.animate()) {						//#if polish.Bugs.displaySetCurrentFlickers							if ( MasterCanvas.instance != null ) {								MasterCanvas.instance.repaint();							}						//#else							screen.repaint();											//#endif												sleeptime = ANIMATION_INTERVAL;						animationCounter = 0;					} else {						animationCounter++;						if (animationCounter > 10) {							sleeptime = SLEEP_INTERVAL;							animationCounter = 0;						}					}				} else {					sleeptime = SLEEP_INTERVAL;				}			} catch (InterruptedException e) {				// ignore			} catch (Exception e) {				//#debug error				System.out.println("unable to animate screen" + e );			}		}	}