{if $CFG.html.template.is_template_support and $show_stylesheet}
	<!-- Start of Stylesheet switcher -->
	<div id="selStyle" lang="en" class="clsLangSwitcher">
	    <table>
	    	<tr>
	        	<td><h3>{$LANG.header_theme}: </h3></td>
	            <td>
		            {assign var="smarty_default_template" value="`$CFG.html.template.default`__`$CFG.html.stylesheet.screen.default`"}
		            {foreach key=template item=css_arr from=$template_arr}
			            {foreach key=css_key item=css from=$css_arr}
				            {assign var="smarty_current_template" value="`$template`__`$css`"}
				            {if $smarty_default_template == $smarty_current_template}
				    			<a class="language" onClick="showHideDiv('showhidetheme')" id="show_hide_theme_anchor" title="{$css}"><img src="{$CFG.site.url}design/css/themes/{$css}.gif" /></a>
							{/if}
			            {/foreach}
		            {/foreach}
		    		<div class="clsLanguageThemePopup clsCornerPopUp" style="display:none" id="showhidetheme">
		                <ul id="themelist">
		                	{assign var=template_inc value=1}
		                	{foreach key=template item=css_arr from=$template_arr}
		                        {assign var=template_inc value=$template_inc+1}
		                        {assign var=css_inc value=1}
		                        {foreach key=css_key item=css from=$css_arr}
		                            {assign var="smarty_current_template" value="`$template`__`$css`"}
		                            {if $smarty_default_template != $smarty_current_template}
										{if $css_inc == 1}
			                                <li class="clsThemeHeading">{$template|ucfirst}</li>
		                                {/if}
		                                <li class="clsStyleHeading"><a href="{$header->chooseStyle($smarty_current_template)}"><img src="{$CFG.site.url}design/css/themes/{$css}.gif" />&nbsp; {$css}</a></li>
			                            {assign var=css_inc value=$css_inc+1}
		                            {/if}
		                        {/foreach}
		                    {/foreach}
		                </ul>
		            </div>
	            </td>
	       </tr>
	   </table>
	</div>
	<!-- End of Stylesheet switcher -->
{/if}