/* for topic horizontal slider */
/* ashley holtgraver */

// Get the width of the outermost container div.
var getWidth = $j('#topic_container').width();

// Set a global variable to keep track of how far
// the "shifter" should be moved.
var setWidth = 0;

// Subtract the pane width from the amount by which
// the "shifter" has already been moved.
$j('a.shiftleft').click(function(){
	setWidth = setWidth - getWidth;
	$j('#shifter').animate({left: setWidth}, 500);
	return false;
});

// Same thing in reverse.
$j('a.shiftright').click(function(){
	setWidth = setWidth + getWidth;
	$j('#shifter').animate({left: setWidth}, 500);
	return false;
});
