			var scrollSpeed = 1; 		// Speed in milliseconds
			var step = 5; 				// How many pixels to move per step
			var current = 0;			// The current pixel row
			var imageHeight = 4800;		// Background image height
			var headerHeight = 400;		// How tall the header is.
			
			//The pixel row where to start a new loop
			var restartPosition = -(imageHeight - headerHeight);
			
			function scrollBg(){
				
				//Go to next pixel row.
				current -= step;
				
				//If at the end of the image, then go to the top.
				if (current == restartPosition){
					current = 0;
				}
				
				//Set the CSS of the header.
				//$('#header').css("background-position","0 "+current+"px");
				$('#top_prawa').css("background-position",+current+"px 0");
				
				
			}
			
			//Calls the scrolling function repeatedly
			var init = setInterval("scrollBg()", scrollSpeed);





$.fn.cycle.defaults.timeout = 3500;
$('#content_gora_prawa').cycle({
	fx:    'fade',
	delay: 500,
    animOut: { top: -200, left: -300 }
});




