﻿

function EmbedFlash(sElementId, sMovie, sBgColor, iWidth, iHeight){
    //  Mike Zieman  //
    //  mzieman@digitalengineeringsolutions.com  //
    //  This function writes a Flash Object (OBJECT and EMBED) tags and properties to the document in the current location //

    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" id="' + sElementId + '" width="' + iWidth + '" height="' + iHeight + '">');
    document.write('<param name="movie" value="' + sMovie + '">');
    document.write('<param name="bgcolor" value="' +  sBgColor + '>');
    document.write('<param name="quality" value="high">');
    document.write('<param name="allowscriptaccess" value="samedomain">');
    document.write('<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="' + sElementId + '" width="' + iWidth + '" height="' + iHeight + '" src="' + sMovie + '" bgcolor="' +  sBgColor + '" quality="high" swliveconnect="true" allowscriptaccess="samedomain">');
    document.write('<noembed></noembed></embed>');
    document.write('</object>');
}

