// BACKGROUND IMAGE SCROLL			
	   
// speed in milliseconds
var scrollSpeed = 60; 
// speed in milliseconds
var scrollSpeed2 = 1; 
// set the default position
var current = 0;	 
// set the direction
var direction = 'h';	 
function bgscroll(){	 
   	// 1 pixel row at a time
    current -= 1;	   
    // move the background with backgrond-position css properties
    $('body').css("backgroundPosition", (direction == 'h') ? current+"px 0" : "0 " + current+"px");	   
}
	 
//Calls the scrolling function repeatedly
 scrollerID = setInterval("bgscroll()", scrollSpeed);	
 
 // Stop the scroller if any gallery img is clicked (the two effects fight it out a bit)
 $(".gallery").click(function(){
   clearInterval(scrollerID);	
});


