With those wire colors, it looks like these spots were set up to work with either DC or AC current and has a bridge rectifier to make the conversion to DC which is required by the LED's. Most DC only devices use Red and Black to identify the correct polarity. The bridge doesn't care which way you connect it to DC because either way, it sends the output in the required polarity. As long as you are not exceeding the expected voltage, you should be fine.