<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" class="videolist" width="<?php echo $width?>" height="<?php echo $height?>" id="<?php echo (isset($flash_name))?$flash_name:'my_flash'?>" align="center" >
    <param name="movie" value="<?php echo main_url('assets/swf/' . $swf)?>" />
    <?php if (sizeof($params) > 0) :?>
    	<param name="flashvars" value="<?php echo implode_string($params) ?>" />
    <?php endif?>
    <?php if(isset($allow_fullscreen)):?>
   		<param name="allowfullscreen" value="true">   		  
    <?php endif?>
     <?php if (isset($wmode)):?>
		<param name="WMode" value="<?=$wmode?>">
     <?php elseif ($this->agent->is_browser('Safari')):?>
			 <param name="WMode" value="window">
		<?php else:?>
			<param name="WMode" value="Transparent">
		<?php endif?>
	   <?php if (isset($scale)):?>
          <param name="scale" value="<?php echo $scale ;?>">  
        <?php else: ?>
            <param name="scale" value="noscale">  
        <?php endif;?>
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="<?php echo main_url('assets/swf/' . $swf )?>" width="<?php echo $width?>" height="<?php echo $height?>" align="center"  wmode="transparent">
        <param name="movie" value="<?php echo main_url('assets/swf/' . $swf)?>" />
	    <?php if (sizeof($params) > 0) :?>
	    	<param name="flashvars" value="<?php echo implode_string($params) ?>" />
	    <?php endif?>
	    <?php if(isset($allow_fullscreen)):?>	    
	   		<param name="allowfullscreen" value="true">    
	    <?php endif?>	 
		 <?php if (isset($wmode)):?>
			<param name="WMode" value="<?=$wmode?>">
		<?php elseif ($this->agent->is_browser('Safari')):?>
			 <param name="WMode" value="window">
		<?php else:?>
			<param name="WMode" value="Transparent">
		<?php endif?>
        <?php if (isset($scale)):?>
		  <param name="scale" value="<?php echo $scale ;?>">  
        <?php else: ?>
            <param name="scale" value="noscale">  
        <?php endif;?>
    <!--<![endif]-->
        <a href="http://www.adobe.com/go/getflash">
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
        </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
</object>