function autoScroller(contentDiv, isScrolling, scrollSpeed, scrollSpeedFast)
{
	if (!isScrolling) isScrolling = 1;
	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')) + 3;
	});
	$(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);
	
	// On hover of the container remove the txt
	$(contentDivClass + "Item").hover(function(){
		$(this).children(contentDivClass + "ItemContent").children(contentDivClass + "ItemContentTxt").fadeOut(100);
	}, function(){
		$(this).children(contentDivClass + "ItemContent").children(contentDivClass + "ItemContentTxt").fadeIn(100);
	});
	
	// If the scroller isnt wide enough to actually scroll then stop;
	if ( divWidthDiff >= 0 ) return;
	
	// animate to the left initially;
	if (isScrolling == 1) {
		scrollToLeft ( contentDiv, scrollSpeed, 1 ); 
		
		// on mouse over event, pause the scroller
		$(contentDiv).hover(function () {
			$(this).stop();    
		},function () {
			if ( $(this).data("scroll") == "left" ) scrollToLeft ( contentDiv, scrollSpeed, 1 );
			else scrollRight (contentDiv, scrollSpeed, 1);
		});
	}
	
	//Move Fast to Left
	$(contentDiv + "Left").hover(function () {
		scrollRight ( contentDiv, scrollSpeedFast, 2 );
	},function () {
		$(contentDiv).stop();
		
		if (isScrolling == 1) {
			scrollToLeft ( contentDiv, scrollSpeed, 1 );
		}
	});
	
	//Move Fast to Right
	$(contentDiv + "Right").hover(function () {
		scrollToLeft ( contentDiv, scrollSpeedFast, 2 );
	},function () {
		$(contentDiv).stop();
		
		if (isScrolling == 1) {
			scrollRight ( contentDiv, scrollSpeed, 1 );
		}
	});
	
	//Move Fast up
	$(contentDiv + "Up").hover(function () {
		scrollUp ( contentDiv, scrollSpeedFast, 2 );
	},function () {
		$(contentDiv).stop();
		
		if (isScrolling == 1) {
			scrollDown( contentDiv, scrollSpeed, 1 );
		}
	});
	
	//Move Fast down
	$(contentDiv + "Down").hover(function () {
		scrollDown ( contentDiv, scrollSpeedFast, 2 );
	},function () {
		$(contentDiv).stop();
		
		if (isScrolling == 1) {
			scrollUp ( contentDiv, scrollSpeed, 1 );
		}
	});
}

function scrollToLeft ( 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(){scrollToLeft ( contentDiv, scrollSpeed, 1 )});
	else $(contentDiv).stop(true).animate({'marginLeft':'0'}, movementSpeed, "linear");
}

function scrollUp ( contentDiv, scrollSpeed, cont)
{
	// Set scrolling to be going upwards;
	$(contentDiv).data("scroll","up");
	
	divHeight = $(contentDiv).css('height');
	divParentHeight = $(contentDiv).parent().css('height');
	divHeightDiff = parseInt(divParentHeight) - parseInt(divHeight);
	movementSpeed = (parseInt($(contentDiv).css('marginTop')) - divHeightDiff )*scrollSpeed;
	
	if (cont == 1) $(contentDiv).animate({'marginTop':divHeightDiff}, movementSpeed, "linear", function(){scrollDown ( contentDiv, scrollSpeed, 1 )});
	else $(contentDiv).stop(true).animate({'marginTop':divHeightDiff}, movementSpeed, "linear");
}

function scrollDown ( contentDiv, scrollSpeed, cont )
{
	// Set scrolling to be going downwards;
	$(contentDiv).data("scroll","down");
	
	divHeight = $(contentDiv).css('height');
	divParentHeight = $(contentDiv).parent().css('height');
	divHeightDiff = parseInt(divParentHeight) - parseInt(divHeight);
	movementSpeed = (parseInt($(contentDiv).css('marginTop')))*scrollSpeed;
	
	if (cont == 1) $(contentDiv).animate({'marginTop':'0'}, movementSpeed, "linear", function(){scrollUp ( contentDiv, scrollSpeed, 1 )});
	else $(contentDiv).stop(true).animate({'marginTop':'0'}, movementSpeed, "linear");
}