// insert flash object with script to work around IE
// requirement that users click to activate control
//
// see http://www.amarasoftware.com/flash-problem.htm
// and http://www.adobe.com/devnet/activecontent/articles/devletter.html
//

function insertFlashMovie()
{
  if( (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) )
  {
    document.write('<img src="/images/home.jpg" id="home" usemap="#home_flash_replacement" width="750" height="440" style="border: none">');
  }
  else
  {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" align="middle" height="440" width="750">\n');
    document.write('<param name="movie" value="/flash/home.swf">\n');
    document.write('<param name="quality" value="high">\n');
    document.write('<param name="bgcolor" value="#ffffff">\n');
    document.write('<param name="menu" value="true">\n');
    document.write('<param name="scale" value="noscale">\n');
    document.write('<embed src="/flash/home.swf" quality="high" menu="true" bgcolor="#ffffff" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="noscale" align="middle" height="440" width="750">\n');
    document.write('</object>\n');
  }
}

