<ul id="sidebar_r">

<?php if ($mytheme['adspot4'] != '') { ?>
<li>
<div class="center">
<?php print $mytheme['adspot4']; ?>
</div>
</li>
<?php } ?>

<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(3)) : else : ?>

<?php endif; ?>

</ul>