
function EmbedSWFObject(path, container, width, height, version, flashvars)
{
    document.write( "<script language=\"JavaScript\" type=\"text/javascript\">\r\n" );
    document.write( "swfobject.embedSWF(\"" + path + "\", \"" + container + "\", \"" + width + "\", \"" + height + "\", \"" + version + "\", \"http://localhost:49448/resources/flash/expressInstall.swf\", flashvars);\r\n" );
    document.write( "</script>\r\n" );
    document.write( "<div id=\"" + container + "\" style=\"padding: 10px\">\r\n" );
    document.write( "<p><a href=\"http://www.adobe.com/go/getflashplayer\"><img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash player\" /></a></p>\r\n" );
    document.write( "</div>\r\n" );
		
}

function EmbedFlash(path, height, width, wmode, flashvars, bgColor)
{
  var obj = "<object codeBase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" quality=\"high\" ";
  if(height.length > 0)
      obj += "height=\"" + height + "\" ";
  
  if(width.length > 0)
      obj += "width=\""+ width + "\" ";
  
  obj += "classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" VIEWASTEXT>\r\n";

  document.write( obj)
  if(typeof(bgColor) != 'undefined')
  {
      document.write( "<param name=\"bgcolor\" value=\"" + bgColor + "\" />\r\n" );
  }
  document.write( "<param name=\"flashvars\" value=\"" + flashvars + "\" />\r\n" );
  document.write( "<param name=\"movie\" value=\"" + path + "\" />\r\n" );
  document.write( "<param name=\"src\" value=\"" + path + "\" />\r\n" );
  document.write( "<param name=\"wmode\" value=\"" + wmode + "\" />\r\n" );
  document.write( "<param name=\"quality\" value=\"high\" />\r\n" );
  if(typeof(bgColor) != 'undefined')
  {
      document.write( "<embed bgcolor=\"" + bgColor + "\" src=\"" + path + "\" quality=\"high\" wmode=\"" + wmode + "\" flashvars=\"" + flashvars + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" height=\"" + height + "\" width=\"" + width + "\" />\r\n" );
  }
  else
  {
      document.write( "<embed src=\"" + path + "\" quality=\"high\" wmode=\"" + wmode + "\" flashvars=\"" + flashvars + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" height=\"" + height + "\" width=\"" + width + "\" />\r\n" );
  
  }
  document.write( "</object>" );
}

function EmbedFlash9(path, height, width, wmode, flashvars)
{
  var obj = "<object codeBase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" quality=\"high\" ";
  if(height.length > 0)
      obj += "height=\"" + height + "\" ";
  
  if(width.length > 0)
      obj += "width=\""+ width + "\" ";
  
  obj += "classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" VIEWASTEXT>\r\n";
    
  document.write( obj)
  document.write( "<param name=\"bgcolor\" value=\"#f4f1ea\" />\r\n" );
  document.write( "<param name=\"flashvars\" value=\"" + flashvars + "\" />\r\n" );
  document.write( "<param name=\"movie\" value=\"" + path + "\" />\r\n" );
  document.write( "<param name=\"src\" value=\"" + path + "\" />\r\n" );
  document.write( "<param name=\"wmode\" value=\"" + wmode + "\" />\r\n" );
  document.write( "<param name=\"quality\" value=\"high\" />\r\n" );
  document.write( "<embed src=\"" + path + "\" quality=\"high\" wmode=\"" + wmode + "\" flashvars=\"" + flashvars + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" height=\"" + height + "\" width=\"" + width + "\" />\r\n" );
  document.write( "</object>\r\n" );
}

function EmbedFlash8(path, height, width, wmode, flashvars)
{
  var obj = "<object codeBase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" quality=\"high\" ";
  if(height.length > 0)
      obj += "height=\"" + height + "\" ";
  
  if(width.length > 0)
      obj += "width=\""+ width + "\" ";
  
  obj += "classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" VIEWASTEXT>\r\n";
    
  document.write( obj)
  document.write( "<param name=\"flashvars\" value=\"" + flashvars + "\" />\r\n" );
  document.write( "<param name=\"movie\" value=\"" + path + "\" />\r\n" );
  document.write( "<param name=\"src\" value=\"" + path + "\" />\r\n" );
  document.write( "<param name=\"wmode\" value=\"" + wmode + "\" />\r\n" );
  document.write( "<param name=\"quality\" value=\"high\" />\r\n" );
  document.write( "<embed src=\"" + path + "\" quality=\"high\" wmode=\"" + wmode + "\" flashvars=\"" + flashvars + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" height=\"" + height + "\" width=\"" + width + "\" />\r\n" );
  document.write( "</object>\r\n" );
}

function PopupFlash(path, height, width, wmode, tagId)
{
  var obj = "<object codeBase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" quality=\"high\" ";
  if(height.length > 0)
      obj += "height=\"" + height + "\" ";
  
  if(width.length > 0)
      obj += "width=\""+ width + "\" ";
  
  obj += "classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" VIEWASTEXT>\r\n";
  
  obj += "<param name=\"movie\" value=\"" + path + "\" />\r\n";
  obj += "<param name=\"src\" value=\"" + path + "\" />\r\n";
  obj += "<param name=\"wmode\" value=\"" + wmode + "\" />\r\n";
  obj += "<param name=\"quality\" value=\"high\" />\r\n";
  obj += "<embed src=\"" + path + "\" wmode=\"" + wmode + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" height=\"" + height + "\" width=\"" + width + "\" />\r\n";
  obj += "</object>\r\n"
          
  width = parseInt(width)+5;
  height = parseInt(height)+5;
  _Flash = window.open('','_Flash','width='+ width.toString() +',height='+ height.toString() +',toolbar=no,location=no,status=yes,scrollbars=no,resizable=no')
  _Flash.document.write(obj);
  _Flash.document.write('<script src="/resources/js/ieupdate.js" language="JavaScript" type="text/javascript"></script>');
  
  document.getElementById(tagId).href = window.location;
        
}

