Reading a Slide Potentiometer for RGB Values

I have only a little experience with arduino, and none with resistance value reading. I am pretty sure this is possible, but have no way to wire it, or write code...

I am trying to use 3 slide potentiometers (Slide Pot - X-Large (10k Linear Taper) - COM-09119 - SparkFun Electronics) to control the rgb values of some rgb leds... How would I wire this up to the arduino?

Wire one end of the pot to 5V, the other end to 0V and the slider to one of the analogue inputs.
Have a look in the tutorials for details on how to dim a LED.

how do i wire it up? there is for some reason 4 pins on the bottom... you can see them on the datasheet and even in the sparkfun pic

2 of those pins are marked pin 2, they are connected together

they often times add an extra pin for mounting stability (it would wiggle if it only had 3 pins soldered onto a board)

get a multimeter and verify but I bet pin 1 is one end, pin 3 is the other and pin 2 is the wiper (as it has to slide along a track inside the pot for the entire length of the device it also makes the most since to have 2 pins)

so if you ^^^ are right, then i connect 5v to 1, analog to 2, and ground to 3?