{-if:1==$_ASI['as_type']-}
{-:$_ASI['ad'][0]['a_content']-}

{-elseif:2==$_ASI['as_type']-}
	{-foreach:$_ASI['ad'],$ad-}
<a href="{-:$ad['a_link']-}" title="{-:$ad['a_name']-}" target="_blank">{-:$ad['a_name']-}</a>
	{-:/foreach-}

{-elseif:3==$_ASI['as_type']-}
<a href="{-:$_ASI['ad'][0]['a_link']-}" target="_blank">
	<img src="{-:$_ASI['ad'][0]['a_file']-}" width="{-:$_ASI['as_width']-}" height="{-:$_ASI['as_height']-}" alt="{-:$_ASI['ad'][0]['a_name']-}"/>
</a>

{-elseif:4==$_ASI['as_type']-}
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="{-:$_ASI['as_width']-}" height="{-:$_ASI['as_height']-}">
	<param name="movie" value="{-:$_ASI['ad'][0]['a_file']-}" />
	<param name="quality" value="high" />
	<param name="wmode" value="transparent">
	<embed src="{-:$_ASI['ad'][0]['a_file']-}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="{-:$_ASI['as_width']-}" height="{-:$_ASI['as_height']-}" wmode="transparent"></embed>
</object>

{-elseif:5==$_ASI['as_type']-}
<object type="application/x-shockwave-flash" data="{-:*APP_ROOT-}/public/flash/slide.swf?xml=
	<data>
		<channel>
				{-foreach:$_ASI['ad'],$ad-}
			<item>
				<link>{-:$ad['a_link']-}</link>
				<image>{-if:!empty($ad['a_file'])-}{-:$ad['a_file']-}{-else:-}{-:*APP_ROOT-}/u/site/no_thumb.png{-:/if-}</image>
				<title>{-:$ad['a_name']-}</title>
			</item>
				{-:/foreach-}
		</channel>
		<config>
			<roundCorner>5</roundCorner>
			<autoPlayTime>5</autoPlayTime>
			<isHeightQuality>false</isHeightQuality>
			<blendMode>normal</blendMode>
			<transDuration>1</transDuration>
			<windowOpen>_self</windowOpen>
			<btnSetMargin>auto 5 5 auto</btnSetMargin>
			<btnDistance>20</btnDistance>
			<titleBgColor>0x000000</titleBgColor>
			<titleTextColor>0xffffff</titleTextColor>
			<titleBgAlpha>0.2</titleBgAlpha>
			<titleMoveDuration>1</titleMoveDuration>
			<btnAlpha>.5</btnAlpha>
			<btnTextColor>0xffffff</btnTextColor>
			<btnDefaultColor>0x000000</btnDefaultColor>
			<btnHoverColor>0x0066ff</btnHoverColor>
			<btnFocusColor>0x0066ff</btnFocusColor>
			<changImageMode>hover</changImageMode>
			<isShowBtn>true</isShowBtn>
			<isShowTitle>false</isShowTitle>
			<scaleMode>noBorder</scaleMode>
			<transform>breatheBlur</transform>
			<isShowAbout>false</isShowAbout>
			<titleFont>微软雅黑</titleFont>
		</config>
	</data>"
	width="{-:$_ASI['as_width']-}" height="{-:$_ASI['as_height']-}" id="ad_slide_{-:$_ASI['ad_space_id']-}" wmode="transparent">
	<param name="wmode" value="transparent">
	<param name="movie" value="{-:*APP_ROOT-}/public/flash/slide.swf?xml=
	<data>
		<channel>
				{-foreach:$_ASI['ad'],$ad-}
			<item>
				<link>{-:$ad['a_link']-}</link>
				<image>{-if:!empty($ad['a_file'])-}{-:$ad['a_file']-}{-else:-}{-:*APP_ROOT-}/u/site/no_thumb.png{-:/if-}</image>
				<title>{-:$ad['a_name']-}</title>
			</item>
				{-:/foreach-}
		</channel>
		<config>
			<roundCorner>5</roundCorner>
			<autoPlayTime>5</autoPlayTime>
			<isHeightQuality>false</isHeightQuality>
			<blendMode>normal</blendMode>
			<transDuration>1</transDuration>
			<windowOpen>_self</windowOpen>
			<btnSetMargin>auto 5 5 auto</btnSetMargin>
			<btnDistance>20</btnDistance>
			<titleBgColor>0x000000</titleBgColor>
			<titleTextColor>0xffffff</titleTextColor>
			<titleBgAlpha>0.2</titleBgAlpha>
			<titleMoveDuration>1</titleMoveDuration>
			<btnAlpha>.5</btnAlpha>
			<btnTextColor>0xffffff</btnTextColor>
			<btnDefaultColor>0x000000</btnDefaultColor>
			<btnHoverColor>0x0066ff</btnHoverColor>
			<btnFocusColor>0x0066ff</btnFocusColor>
			<changImageMode>hover</changImageMode>
			<isShowBtn>true</isShowBtn>
			<isShowTitle>false</isShowTitle>
			<scaleMode>noBorder</scaleMode>
			<transform>breatheBlur</transform>
			<isShowAbout>false</isShowAbout>
			<titleFont>微软雅黑</titleFont>
		</config>
	</data>" />
</object>

{-:/if-}
