System.out.println("using page");
	public int initScrollBar( int screenWidth, int screenAvailableHeight, int screenContentHeight, int contentYOffset, int selectionStart, int selectionHeight, int focusedIndex, int numberOfItems ) {		//#debug		System.out.println("initScrollBar( screenWidth=" + screenWidth + ", screenAvailableHeight=" + screenAvailableHeight + ", screenContentHeight=" + screenContentHeight + ", contentYOffset=" + contentYOffset + ", selectionStart=" + selectionStart + ", selectionHeight=" + selectionHeight + ", focusedIndex=" + focusedIndex + ", numberOfItems=" + numberOfItems + ")");				if ( screenAvailableHeight >= screenContentHeight ) {			this.isVisible = false;			return 0;		}		this.isVisible = true;		this.scrollBarHeight = screenAvailableHeight;		//#if polish.css.scrollbar-slider-mode			if ( this.sliderMode == MODE_ITEM && focusedIndex != -1) {				System.out.println("using item");				int chunkPerSlider = (screenAvailableHeight << 8) / numberOfItems; 				this.sliderY = (chunkPerSlider * focusedIndex) >>> 8;				this.sliderHeight = chunkPerSlider >>> 8;			} else if ( this.sliderMode == MODE_AREA && selectionHeight != 0 ) {		//#else				//# if (selectionHeight != 0) {		//#endif			// take the currently selected area			System.out.println("using area");			this.sliderY = (selectionStart * screenAvailableHeight) / screenContentHeight;			this.sliderHeight = (selectionHeight * screenAvailableHeight) / screenContentHeight;							} else {			// use the page dimensions:			System.out.println("using page");			this.sliderY = (-contentYOffset  * screenAvailableHeight) / screenContentHeight;			this.sliderHeight = (screenAvailableHeight * screenAvailableHeight) / screenContentHeight;		}		//#if polish.css.scrollbar-slider-image && polish.css.scrollbar-slider-image-repeat			if (this.repeatSliderImage && this.sliderImage != null ) {				if (this.sliderHeight > this.sliderImage.getHeight()) {					this.repeatSliderNumber = this.sliderHeight / this.sliderImage.getHeight(); 				} else {					this.repeatSliderNumber = 1;				}			}		//#endif		//#debug		System.out.println("sliderY=" + this.sliderY + ", sliderHeight=" + this.sliderHeight);		if (!this.isInitialised) {				init( screenWidth, screenWidth );		}		return this.itemWidth;	}