/* - - - - - - - - - - - - - - - - - - - - - - -
 JavaScript
 20 grudzień 2006 20:58:55
 - - - - - - - - - - - - - - - - - - - - - - - */

  function flash(contener, src, width, height )
   {
    if( !src ) return false;
    
    HTMLText = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
    HTMLText += 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '; 
    if( width ) HTMLText += 'width="' + width + '" ';
    if( height ) HTMLText += 'height="' + height + '" ';
    HTMLText += '>';
      HTMLText += '<param name="movie" value="' + src + '" />';
    HTMLText += '<param name="menu" value="false" />';
    HTMLText += '<param name="quality" value="high" />';
    HTMLText += '<param name="wmode" value="transparent">';
    HTMLText += '<embed ';
    HTMLText += 'src="' + src + '" '; 
    HTMLText += 'menu="false"  ';
    HTMLText += 'quality="high" ';
    if( width ) HTMLText += 'width="' + width + '" ';
    if( height ) HTMLText += 'height="' + height + '" wmode=transparent ';
    HTMLText += 'type="application/x-shockwave-flash"'; 
    HTMLText += 'pluginspage="http://www.macromedia.com/go/getflashplayer" '; 
    HTMLText += '/>';
      HTMLText += '</object>';

      document.getElementById( contener ).innerHTML = HTMLText;
   }


