scrollValue = 0;
scrollCounter = 0;
clipWidth = 20;
clipHeight = 135;
clipTop = -clipHeight;
layerX = 50
layerY = 230
layerWidth = 900;
layerHeight = 350;
layerTop = 320;

function init(value) {
	if (document.layers) {
		layerWidth = document.layers['KutilScroller'].document.width;
		layerHeight = document.layers['KutilScroller'].document.height;

		document.layers['KutilScroller'].top = layerY + layerHeight;
		document.layers['KutilScroller'].clip.top = clipTop;
		document.layers['KutilScroller'].clip.bottom = document.layers['KutilScroller'].clip.top + clipHeight;
	}
	else {
		document.all['KutilScroller'].style.top = layerTop;
		document.all['KutilScroller'].style.clip = "rect(" + clipTop + " " + (layerWidth) + " " + (clipTop+clipHeight) + " 0)";
	}

	scrollValue = value;
	setTimeout('scrollLayer();', 50);
}

function scrollLayer() {
	scrollCounter += scrollValue;

	if (layerTop <= layerY-layerHeight) {
		layerTop -= scrollCounter;
		clipTop += scrollCounter;
		scrollCounter = 0;
	}
	layerTop += scrollValue;
	clipTop -= scrollValue;

	if (document.layers) {
		document.layers['KutilScroller'].visibility = 'show';
		document.layers['KutilScroller'].top = layerTop;
		document.layers['KutilScroller'].clip.top = clipTop;
		document.layers['KutilScroller'].clip.bottom = clipTop+clipHeight;
	}
	else {
		document.all['KutilScroller'].style.visibility = 'visible';
		document.all['KutilScroller'].style.top = layerTop;
		document.all['KutilScroller'].style.clip = "rect(" + clipTop + " " + (layerWidth) + " " + (clipTop+clipHeight) + " 0)";
	}

	setTimeout('scrollLayer();', 30);
}

function vs_ein(nam,bild,besch) {document.images[nam].src = bild; window.status=besch;}
function vs_aus(nam,bild) {document.images[nam].src = bild; window.status='';}




function waprunner(url) {
        url = "http://waprunner.wap3.net/wap.php3?file=" + url;
        window.open(url, 'noscroll', 'width=245,height=495');
    }



