﻿// Write out the object using javascript in this external script file so the flash opens instantly without
// ActiveX activation and without the border
//this is for flash in the content.
function CreateFlashContentControl(CmsFileObjectPath, width, height){
    var strOutput = '';
    strOutput += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="'+ width +'" height="'+ height +'" >'
    strOutput += '	<param name="movie" value="' + CmsFileObjectPath +'">';
    strOutput += '	<param name="quality" value="high">';
    strOutput += '	<param name="wmode" value="transparent">';
    strOutput += '	<embed wmode="transparent" src="' + CmsFileObjectPath + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'" ></embed>';
    strOutput += '</object>';
    document.write(strOutput);
}

// Write out the object using javascript in this external script file so the flash opens instantly without
// ActiveX activation and without the border
//this is for top level banners
function CreateFlashControl(CmsFileObjectPath){
    var strOutput = '';
    strOutput += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="569" height="240">'
    strOutput += '	<param name="movie" value="' + CmsFileObjectPath +'">';
    strOutput += '	<param name="quality" value="high">';
    strOutput += '	<param name="wmode" value="transparent">';
    strOutput += '	<embed wmode="transparent" src="' + CmsFileObjectPath + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="569" height="240"></embed>';
    strOutput += '</object>';
    document.write(strOutput);
}

