<div class="content_right_dianpugonggao"><ul><li class="gonggao_right_bg" style="background-color: <tpl>$arrBlog.blocktitlecolor</tpl>; background-image: url(<tpl>$arrBlog.blocktitleimage</tpl>); color: <tpl>$arrBlog.blocktitletextcolor</tpl>; background-repeat: <tpl>$arrBlog.blocktitlerepeat</tpl>;"><tpl> $langStoreShopClass </tpl></li></ul>
	<ul>
	<tpl> section name=loop loop=$shop_category </tpl>
		<li class="gonggao_right_content">
			<tpl> if $shop_category[loop].child[0].class_id neq '' </tpl>
				<tpl> if $shop_category[loop].class_if_open eq '0' </tpl>
					<a class="close" id="a_category_<tpl> $shop_category[loop].class_id </tpl>" href="javascript:;" onclick="a_category_sign(<tpl> $shop_category[loop].class_id </tpl>);"></a><!--html('+');-->
				<tpl> /if </tpl>
				<tpl> if $shop_category[loop].class_if_open eq '1' </tpl>
					<a class="splay" id="a_category_<tpl> $shop_category[loop].class_id </tpl>" href="javascript:;" onclick="a_category_sign(<tpl> $shop_category[loop].class_id </tpl>);"></a>
				<tpl> /if </tpl>
			<tpl> else </tpl>
				<span class="splay"></span>
			<tpl> /if </tpl>
			<tpl> if $shop_category[loop].class_pic neq '' </tpl>
				<a class="left-interval" href="product.php?userid=<tpl> $frame_user_id </tpl>&classid=<tpl> $shop_category[loop].class_id </tpl>"><img class="img_width" src="<tpl> $shop_category[loop].class_pic </tpl>" title="<tpl> $shop_category[loop].class_name </tpl>" /></a>
			<tpl> else </tpl>
				<a class="left-interval" href="product.php?userid=<tpl> $frame_user_id </tpl>&classid=<tpl> $shop_category[loop].class_id </tpl>"><tpl> $shop_category[loop].class_name </tpl></a>
			<tpl> /if </tpl>
		</li>
		<span class="subroutine" id="span_category_<tpl> $shop_category[loop].class_id </tpl>" <tpl> if $shop_category[loop].class_if_open eq '1' </tpl>style="display:none"<tpl> /if </tpl>>
			<tpl> foreach from=$shop_category[loop].child item=one </tpl>
				<li class="gonggao_right_content">
					<tpl> if $one.class_pic neq '' </tpl>
						<a class="bg_style" href="product.php?userid=<tpl> $frame_user_id </tpl>&classid=<tpl> $one.class_id </tpl>"><img class="img_width" src="<tpl> $one.class_pic </tpl>" title="<tpl> $one.class_name </tpl>" /></a>
					<tpl> else </tpl>
						<a class="bg_style" href="product.php?userid=<tpl> $frame_user_id </tpl>&classid=<tpl> $one.class_id </tpl>"><tpl> $one.class_name </tpl></a>
					<tpl> /if </tpl>
				</li>
			<tpl> /foreach </tpl>
		</span>
		<p></p>
	<tpl> /section </tpl>
	</ul>
</div>
<script>
function a_category_sign(id){
	$('#span_category_'+id).toggle();
	$('#a_category_'+id).removeClass();
	if($('#span_category_'+id).css('display') == 'none'){
		$('#a_category_'+id).addClass('splay');
	}else{
		$('#a_category_'+id).addClass('close');
	}
}
</script>