// -------------------------------------
//   ###### Background Animation  ######
// -------------------------------------

// speed in milliseconds
	var scrollSpeed = 100;
	
	// 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
	$('#container').css("backgroundPosition", (direction == 'h') ? current+"px 0" : "0 " + current+"px");
    // $('#container').animate({backgroundPosition: '340px 0'},60000);
	}

	//Calls the scrolling function repeatedly
	 setInterval("bgscroll()", scrollSpeed);	
	
