
<div id="cycleimage" >
  <?php if ($this->_var['editing']): ?>
  <div class="colboxcontent" style="width:450px;height:200px;background:#FFF;">
  <h3>cycleimage</h3>
  </div>
  <?php else: ?>
  <script type="text/javascript">
  //<![CDATA[
    var swf_width=500;
    var swf_height=200;
    var swf_config = "<config>" +
                "<roundCorner>0</roundCorner>" +
                "<autoPlayTime>8</autoPlayTime>" +
                "<isHeightQuality>false</isHeightQuality>" +
                "<blendMode>normal</blendMode>" +
                "<transDuration>1</transDuration>" +
                "<windowOpen>_blank</windowOpen>" +
                "<btnSetMargin>auto 5 5 auto</btnSetMargin>" +
                "<btnDistance>20</btnDistance>" +
                "<titleBgColor>0xff6600</titleBgColor>" +
                "<titleBgAlpha>.75</titleBgAlpha>" +
                "<titleMoveDuration>1</titleMoveDuration>" +
                "<btnAlpha>.7</btnAlpha>" +
                "<btnDefaultColor>0xB3433</btnDefaultColor>" +
                "<btnHoverColor>0xff9900</btnHoverColor>" +
                "<btnFocusColor>0xff6600</btnFocusColor>" +
                "<changImageMode>click</changImageMode>" +
                "<isShowBtn>true</isShowBtn>" +
                "<isShowTitle>true</isShowTitle>" +
                "<scaleMode>noBorder</scaleMode>" +
                "<transform>blur</transform>" +
                "<isShowAbout>true</isShowAbout>" +
                "</config>";
    var data = '<?php echo $this->_var['cycle_image']; ?>';
    
    data = data.replace("</data>", swf_config + "</data>")
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
    document.write('<param name="movie" value="data/images/bcastr.swf?xml='+ data +'">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
    document.write('<param name="FlashVars" value="bcastr_config='+swf_config+'">');
    document.write('<embed src="data/images/bcastr.swf?xml='+data+'" wmode="opaque" FlashVars="bcastr_config='+swf_config+'" menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('<\/object>');
  //]]>
  </script>
  <?php endif; ?>
</div>