var scrollSpeed = 70;       // Speed in milliseconds
var step = 1;               // How many pixels to move per step
var current = 0;            // The current pixel row
var imageHeight = 2262;     // Background image height
var headerHeight = 275;     // How tall the header is.
var direction = 'v';		// set the direction
var restartPosition = -(imageHeight - headerHeight);




	function bgscroll(){

    	// 1 pixel row at a time
	    current -= 1;
		
    //If at the end of the image, then go to the top.
    if (current == restartPosition){
        current = 0;
    }   
	    // move the background with backgrond-position css properties
	    $('div.clouds').css("backgroundPosition", (direction == 'h') ? current+"px 0" : "0 " + current+"px");
   
	}

	//Calls the scrolling function repeatedly
	 setInterval("bgscroll()", scrollSpeed);	
