// JavaScript Document

function headerSlider()
{
	var headerWidth			= 560;
	var sliderWidth			= parseInt($('#slider').width());
	var sliderMarginLeft 	= parseInt($('#slider').css('marginLeft'));
	var returnSpeed			= ((sliderWidth / headerWidth) * 175);
	setTimeout(function()
	{
		if(sliderMarginLeft == -(sliderWidth - headerWidth))
		{
			$('#slider').css({marginLeft : 0});
			setTimeout(function()
			{
				headerSlider();
			}, 1200);
		}
		else
		{
			$('#slider').animate({marginLeft : '-=' + headerWidth}, 900, function()
			{
				setTimeout(function()
				{
					headerSlider();
				}, 1200);
			});
		}
	}, 1500);
	
	
}
