	var TopAdd = 55;

	function sb_insert_scrolled_banner( objectName, iWidth, iHeight, percent, msec ) {
		sb_align_left_size( objectName, iWidth );
		if(NS || IE || NS6) window.setTimeout("sb_timer_event('" + objectName + "'," + iWidth + "," + iHeight + "," + percent + "," + msec + ")", msec );
		}
	
	function sb_align_left_size( objectName, iWidth ) {
		designWidth = -485;
		if(NS || NS6) { windowWidth = window.innerWidth; }
		if(IE) {
			windowWidth = document.body.clientWidth;
			windowWidth = document.body.clientWidth;
		}
		if (windowWidth < designWidth) { windowWidth = designWidth; }
		
			fromLeft = iWidth;
			if (fromLeft < 0) {
				fromLeft = 0;
			}
			if(IE) { document.all[objectName].style.pixelLeft = fromLeft + 449; }
			if(NS) { document.layers[objectName].left = fromLeft + 450; }
			if(NS6) { document.getElementById(objectName).style.left = fromLeft + 450; }
		
	}
	
	function sb_timer_event( objectName, iWidth, iHeight, percent, msec) {
		var reserved_space = 162;
		var topOffset = 0;

		if(NS || NS6) {
		var topdod = 230 + TopAdd;
		} else {
		var topdod = 225 + TopAdd;
		}

		if(IE) { topOffset = document.body.scrollTop;}
		if(NS || NS6) { topOffset = self.pageYOffset;}

		if(IE) { windowHeight = document.body.clientHeight; }
		if(NS || NS6) { windowHeight = window.innerHeight; }

			newPositionY = topOffset + topdod;		

		if(newPositionY != lastPositionY) {
			var dy = (percent * (newPositionY - lastPositionY))/100.0;
			if(dy > 0) dy = Math.ceil(dy);
			else dy = Math.floor(dy);
			lastPositionY = lastPositionY + dy;
			if(IE) { document.all[objectName].style.pixelTop = lastPositionY; }
			if(NS) { document.layers[objectName].top += dy; }
			sb_align_left_size( objectName, iWidth );
			if(NS6) { document.getElementById(objectName).style.top = lastPositionY; } 
		}
		if(NS || IE || NS6) window.setTimeout("sb_timer_event('" + objectName + "'," + iWidth + "," + iHeight + "," + percent + "," + msec + ")", msec );
	}
	
	function closeWinda(){
			crossobj=NS6? document.getElementById('reklama') : document.all.reklama
	if (IE||NS6)
			crossobj.style.visibility='hidden'
	else if (NS)
			document.reklama_pasek.visibility='hide'
}


	lastPositionY = 163;
	IE = ((document.all) ? 1: 0);
	NS = ((document.layers) ? 1 : 0);
	NS6 = ((NS==0) && (navigator.appName=='Netscape') ? 1 : 0);

	sb_insert_scrolled_banner('reklama', 95, 119, 5, 10 );