﻿<!--
// modified: 06/03/2003   (mm/dd/yyyy)


  /*
  ' function  : insertHTMLForFlashMovie
  ' overview  : use this function in the body of an html document to insert HTML on the fly that will insert a flash movie. 
  ' arguments : [in] sFlashMovieURL, the URL of the Flash movie
  '             [in] sQuality, i.e. 'high' or 'low'
  '             [in] sBackgroundColor, i.e. '#FFFFFF'
  '             [in] sWidth, sHeight ; the proportions of the movie
  ' returns   : 
  ' example   : Within the body of a document insert a script block with the following code:
                insertHTMLForFlashMovie('/flash/myflashmovie.swf', 'high', '#D8D8D8', '400', '300');
  */
  function insertHTMLForFlashMovie(sFlashMovieURL, sQuality, sBackgroundColor, sWidth, sHeight)
  {
    var sWidthNameValuePair, sHeightNameValuePair
    if ((sWidth != null) && (sWidth != ''))
      sWidthNameValuePair = 'width="' + sWidth + '"'
    else
      sWidthNameValuePair = ''

    if ((sHeight != null) && (sHeight != ''))
      sHeightNameValuePair = 'height="' + sHeight + '"'
    else
      sHeightNameValuePair = ''

    // make a unique id  
    if (typeof iID == 'undefined')
      iID = 1
    else 
      iID += 1

    document.write('<object id="flashmovie' + iID + '" name="flashmovie' + iID + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ' + sHeightNameValuePair + ' ' + sWidthNameValuePair + ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">');    
    document.write('<param name=wmode value=transparent>');
    document.write('<param name="movie" value="' + sFlashMovieURL + '">');    
    document.write('<param name="quality" value="' + sQuality + '">');    
    document.write('<param name="bgcolor" value="' + sBackgroundColor + '">');    
    document.write('<embed src="' + sFlashMovieURL + '" quality="' + sQuality + '" bgcolor="' + sBackgroundColor + '" ' + sWidthNameValuePair + ' ' + sHeightNameValuePair + ' align="" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');    
    document.write('</embed>');    
    document.write('</object>');
    
    
    
/* probeersel    
    document.write('<!-- Flash movie --><OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="' + sHeight + '" width="' + sWidth + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">');
//    document.write('  <PARAM NAME="_cx" VALUE="7541">');
//    document.write('  <PARAM NAME="_cy" VALUE="8731">');
//    document.write('  <PARAM NAME="FlashVars" VALUE="7541">');
    document.write('  <PARAM NAME="movie" VALUE="' + sFlashMovieURL + '">');
    document.write('  <PARAM NAME="src" VALUE="' + sFlashMovieURL + '">');
    document.write('  <PARAM NAME="wmode" VALUE="Window">');
    document.write('  <PARAM NAME="autoplay" VALUE="1">');
    document.write('  <PARAM NAME="loop" VALUE="-1">');
    document.write('  <PARAM NAME="quality" VALUE="' + sQuality + '">');
    document.write('  <PARAM NAME="salign" VALUE="">');
    document.write('  <PARAM NAME="menu" VALUE="-1">');
    document.write('  <PARAM NAME="base" VALUE="">');
    document.write('  <PARAM NAME="allowscriptaccess" VALUE="always">');
    document.write('  <PARAM NAME="scale" VALUE="ShowAll">');
    document.write('  <PARAM NAME="devicefont" VALUE="0">');
    document.write('  <PARAM NAME="embedmovie" VALUE="0">');
    document.write('  <PARAM NAME="bgcolor" VALUE="' + sBackgroundColor + '">');
    document.write('  <PARAM NAME="swremote" VALUE="">');
    document.write('  <embed src="' + sFlashMovieURL + '" quality="' + sQuality + '" bgcolor="' + sBackgroundColor + '" width="' + sWidth + '" height="' + sHeight + '" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
    document.write('</OBJECT>');
*/        
  } 

//-->
