<?php
	$map_url = 'http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q='.urlencode($rdata['Street']).','.urlencode($rdata['City']).','.urlencode($rdata['State_Abbreviation']).','.urlencode($rdata['Postal_Code']).','.urldecode($rdata['Country_Name']).'&amp;z=13';

if ($SC['settings']['CP_Maps_Enabled'] == 1) {
?>
	<div class="google_map">
		<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?php print $map_url ?>&amp;output=embed"></iframe><br />
		<a class="larger_map" href="<?php print $map_url ?>">View Larger Map</a>
	</div>

<?php } ?>