// JavaScript Document

//For Background animationa

 // speed in milliseconds
	var scrollSpeed = 70;
	
	// 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
	    $('div#wrapper').css("backgroundPosition", (direction == 'h') ? current+"px " + current+"px" : "0 " + current+"px");
   
	}

	//Calls the scrolling function repeatedly
	 setInterval("bgscroll()", scrollSpeed);	

