function autoScroller(contentDiv, scrollSpeed, scrollSpeedFast)
{
	if (!scrollSpeed) scrollSpeed = 50;
	if (!scrollSpeedFast) scrollSpeedFast = 3;
	contentDivClass = "." + contentDiv.substring(1);
	
	totalWidth = 0;
	$(contentDiv).children().each(function() {
		totalWidth = totalWidth + parseInt($(this).width()) + parseInt($(this).css('marginLeft')) + parseInt($(this).css('marginRight'));
	});
	$(contentDiv).width(totalWidth); // set the width equal to all of the elements below it + there margins;
	
	divWidth = $(contentDiv).css('width');
	divParentWidth = $(contentDiv).parent().css('width');
	divWidthDiff = parseInt(divParentWidth) - parseInt(divWidth);

	
	// If the scroller isnt wide enough to actually scroll then stop;
	if ( divWidthDiff >= 0 ) return;
	
	// animate to the left initially;
	scrollLeft ( contentDiv, scrollSpeed, 1 ); 
	
	// on mouse over event, pause the scroller
	$(contentDiv).hover(function () {
		$(this).stop();    
	},function () {
		if ( $(this).data("scroll") == "left" ) scrollLeft ( contentDiv, scrollSpeed, 1 );
		else scrollRight (contentDiv, scrollSpeed, 1);
	});
	
	//Move Fast to Left
	$(contentDiv + "Left").hover(function () {
		scrollRight ( contentDiv, scrollSpeedFast, 2 );
	},function () {
		$(contentDiv).stop();
		$(contentDiv).animate({opacity: 1.0}, 500, function(){ scrollLeft ( contentDiv, scrollSpeed, 1 )});
	});
	
	//Move Fast to Right
	$(contentDiv + "Right").hover(function () {
		scrollLeft ( contentDiv, scrollSpeedFast, 2 );
	},function () {
		$(contentDiv).stop();
		$(contentDiv).animate({opacity: 1.0}, 500, function(){ scrollRight ( contentDiv, scrollSpeed, 1 )});
	});
}

function scrollLeft ( contentDiv, scrollSpeed, cont)
{
	// Set scrolling to be going towards the left;
	$(contentDiv).data("scroll","left");
	
	divWidth = $(contentDiv).css('width');
	divParentWidth = $(contentDiv).parent().css('width');
	divWidthDiff = parseInt(divParentWidth) - parseInt(divWidth);
	movementSpeed = (parseInt($(contentDiv).css('marginLeft')) - divWidthDiff )*scrollSpeed;
	
	if (cont == 1) $(contentDiv).animate({'marginLeft':divWidthDiff}, movementSpeed, "linear", function(){scrollRight ( contentDiv, scrollSpeed, 1 )});
	else $(contentDiv).stop(true).animate({'marginLeft':divWidthDiff}, movementSpeed, "linear");
}

function scrollRight ( contentDiv, scrollSpeed, cont )
{
	// Set scrolling to be going towards the right;
	$(contentDiv).data("scroll","right");
	
	divWidth = $(contentDiv).css('width');
	divParentWidth = $(contentDiv).parent().css('width');
	divWidthDiff = parseInt(divParentWidth) - parseInt(divWidth);
	movementSpeed = (-parseInt($(contentDiv).css('marginLeft')))*scrollSpeed;
	
	if (cont == 1) $(contentDiv).animate({'marginLeft':'0'}, movementSpeed, "linear", function(){scrollLeft ( contentDiv, scrollSpeed, 1 )});
	else $(contentDiv).stop(true).animate({'marginLeft':'0'}, movementSpeed, "linear");
}