if ($rdata['Style']) {
	$or_opts = sc_query("SELECT `Orientation` FROM Slideshow_Styles WHERE record_number = '$rdata[Style]'");
	if (!empty($or_opts) && $or_opts == 'both') {
		$landscape_img = sc_img('landscape','dyn','squirrelcart','landscape');
		$portrait_img = sc_img('portrait','dyn','squirrelcart','portrait');

		$options['<img class="orientation1_img" onclick="document.getElementById(\'Orientation1\').checked=true" src="'.$landscape_img.'" style="vertical-align: middle" alt="landscape" title="landscape" />'] = 'landscape';
		$options['<img onclick="document.getElementById(\'Orientation2\').checked=true" src="'.$portrait_img.'" style="vertical-align: middle" alt="portrait" title="portrait" />'] = 'portrait';
	}
}