//active.js

function CreateFlash(divID, objectID, movieURL, width, height)
{
    var d = document.getElementById(divID);
    d.innerHTML = "<object id=" + objectID + " classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'" +
        " codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0'" +
        " width=" + width + " height=" + height + ">" +
        "<param name=allowScriptAccess value=sameDomain >" +
        "<param name=movie value=" + movieURL + "><param name=quality value=high><param name=wmode value=transparent />" +
        "<embed src=" + movieURL + " allowScriptAccess=sameDomain wmode=transparent quality=high swliveconnect=true pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'" +
        " name=" + objectID + " width=" + width + " height=" + height + "></embed></object>";
}

function CreateMedia(divID, objectID, movieURL, width, height)
{
    var d = document.getElementById(divID);
    d.innerHTML = "<object id=" + objectID + " classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'" +
        " TYPE='application/x-oleobject' " +
        " width=" + width + " height=" + height + ">" +
        "<param name='autoreplay' value='true'><param name='balance' value='0'><param name='playCount' value='99'> " +
        "<param name='autoStart' value='1'><param name='volume' value='100'><param name='enableContextMenu' value='0'> " +
        "<param name='URL' value=" + movieURL + "> " +        
    	"<embed type='application/x-mplayer2' src='" + movieURL + "' width='" + width + 
    	    "' height='" + height + "' autostart=1 stretchToFit=true></embed></object>";
}

