{include file="$gentemplates/$header_tpl"}
<h2 class="float_left">{$lang.section.blog}</h2>
<div class="float_right">		
	<!-- AddThis Button BEGIN -->
	<div class="addthis_toolbox addthis_default_style">
	<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4b69d5eb1f2c8cb0" class="addthis_button_compact">Share</a>
	<span class="addthis_separator">|</span>
	<a class="addthis_button_facebook"></a>
	<a class="addthis_button_myspace"></a>
	<a class="addthis_button_google"></a>
	<a class="addthis_button_twitter"></a>
	</div>
	<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b69d5eb1f2c8cb0"></script>
	<!-- AddThis Button END -->
</div>					
{include file="$gentemplates/blog_menu.tpl"}
<div style="display: table; width: 100%; margin-top: 20px;">
{if $blog_categories}
<div class="blog_category_table">		
{section name=s loop=$blog_categories start=0 max=$half_num_cat}
	<dl>
		<dt>{if $blog_categories[s].link}<a href="{$blog_categories[s].link}">{/if}{$blog_categories[s].name}{if $blog_categories[s].link}</a>{/if}</dt>
		<dd>{$blog_categories[s].blogs_count}&nbsp;{$lang.blog.blogs}</dd>
	</dl>
{/section}
</div>
{/if}
{if $$blog_categories}
<div class="blog_category_table">
	{section name=s loop=$blog_categories start=$half_num_cat}
	<dl>
		<dt>{if $blog_categories[s].link}<a href="{$blog_categories[s].link}">{/if}{$blog_categories[s].name}{if $blog_categories[s].link}</a>{/if}</dt>
		<dd>{$blog_categories[s].blogs_count}&nbsp;{$lang.blog.blogs}</dd>
	</dl>
	{/section}
</div>
{/if}
</div>
{if $tags && $use_tags}
		<h3 class="p-b5">{$lang.blog.tags_clouds}</h3>
		<div style="display: table; width: 100%;">
        {section name=s loop=$tags}
				<a onclick="Show('{$tags[s].tag}');" style="cursor:pointer; font-size:{$tags[s].size}px; vertical-align: baseline;">{$tags[s].tag}</a>&nbsp;
        {/section}
        </div>
		<div id="tags">
		</div>
{/if}
{* {if $banner.right}<div style="float: left;">{$banner.right}</div>{/if}	*}	  					

<script language="JavaScript" type="text/javascript">
{literal}
function Show(tag) {
	$.post(SITE_ROOT+"/{/literal}{$seo.blog}{literal}?sel=view_tags",{tag: tag},
		function(data){$("#tags").html(data)}
	);
}
{/literal}
</script>
{include file="$gentemplates/$footer_tpl"}