if ($rdata['Style']) {
	$variant_classes = sc_query('
		SELECT 
			 Variant_Classes
		FROM
			Slideshow_Styles
		WHERE
			record_number = "'.$rdata['Style'].'"
	');

	if (!empty($variant_classes)) {
		$classes = convert_linebreaks($variant_classes);		// grab clases, and make sure line endings match

		$classes = explode("\r\n",$variant_classes);				// turn into an array
		if (!empty($classes)) {
			foreach($classes as $class) {
				$class_pieces = explode("^^",$class);
				$options[htmlspecialchars($class_pieces[1])] = htmlspecialchars($class_pieces[0]);
			}	
		}
	}
}