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

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

{-elseif:3==$_ASI['as_type']-}
document.write('<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']-}
document.write('<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']-}">');
document.write('	<param name="movie" value="{-:$_ASI['ad'][0]['a_file']-}" />');
document.write('	<param name="quality" value="high" />');
document.write('	<param name="wmode" value="transparent">');
document.write('	<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>');
document.write('</object>');

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