/*=============================================================================
  Asset-embedding functions
------------------------------------------------------------------------------*/
function insertQTMovie(loc, width, height) {
  if (!width) { width = "400"; }
  if (!height) { height = "240"; }

  document.write(
    '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ' +
      'width="'+width+'" height="'+height+'" ' +
      'codebase="http://www.apple.com/qtactivex/qtplugin.cab"' +
    '>\n' +
      '<param name="src" value="'+loc+'">\n' + 
      '<param name="autoplay" value="true">\n' +
      '<param name="controller" value="true">\n' +
      '<embed src="'+loc+'" autoplay="true" controller="true" ' +
        'width="'+width+'" height="'+height+'" ' +
        'pluginspage="http://www.apple.com/quicktime/download/">' +
      '</embed>\n' +
    '</object>\n'
  );
}

function insertFlashMovie(loc, width, height) {
  if (!width) { width = "400"; }
  if (!height) { height = "240"; }

  document.write(
    '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' +
      'width="'+width+'" height="'+height+'" ' +
      'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/'+
        'swflash.cab#version=6,0,0,0" ' + 
      'id="movie" align=""' + 
    '>\n' + 
      '<param name="movie" value="'+loc+'">\n' +
      '<embed src="'+loc+'" quality="high" name="movie" align="" ' + 
        'type="application/x-shockwave-flash" ' + 
        'width="'+width+'" height="'+height+'" ' +
        'pluginspage="http://www.macromedia.com/go/getflashplayer">' +
      '</embed>\n' +
    '</object>\n'
  );
}

// Obsolete: remove once the equinox page is updated
function InsertEquinoxMovie()
{
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="400" height="240" codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n');
document.write('<param name="src" value="../equinox.mov">\n');
document.write('<param name="autoplay" value="true">\n');
document.write('<param name="controller" value="true">\n');
document.write('<embed src="../equinox.mov" width="400" height="240" autoplay="true" controller="true" pluginspage="http://www.apple.com/quicktime/download/">\n'); 
document.write('</embed>\n');
document.write('</object>\n');
}
