if (!parsedByIE)
{
  //loop through all the plugins installed
  for (i=0; i < navigator.plugins.length; i++)
  {
       //put the plugin string in a variable
       var pluginIdent = navigator.plugins[i].description.split(" ");
       //The Flash Player identification string is ([] = the array index) [0]Shockwave [1]Flash [2]6.0 [3]r21

       //if less than Flash Player 6 is detected, run this code.
       if(pluginIdent[0] == "Shockwave" && pluginIdent[1] == "Flash")
       {
          //an array of the Flash version number (major.minor)
          var versionArray = pluginIdent[2].split(".");

          (versionArray[0] > 6) ? checkForFlash7 = true : checkForFlash7 = false;

       //need to break this loop as some browsers may have two versions installed
       break;
       }//end if pluginIdent
  }//end for
 }

function writeFlashLink(oArg) {

if (checkForFlash7 != true)
{
document.write("<br><div style='width:" + oArg.width + "px;background-color:#ffffff;padding-top:.2em;border-bottom:0.05em solid #bebebe;'>You need to update your flash player to view this Flash Video presentation. You can download the latest Adobe Flash Player <a href='http://www.macromedia.com/go/getflashplayer' title='Download the Adobe Flash Player' target='_blank'>here</a>.</div>");
} else {
document.write('<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="' + oArg.id + '" width="' + oArg.width + '" height="' + oArg.height +'"><param name="movie" value="' + oArg.url + '"><param name="quality" value="high"><param name="bgcolor" value="#cccccc"><!--[if !IE]> <--><object data="' + oArg.url + '" width="' + oArg.width + '" height="' + oArg.height + '" type="application/x-shockwave-flash" id="' + oArg.id + '"><param name="quality" value="high"><param name="bgcolor" value="#cccccc"><param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer"><!--> <![endif]--><div style="width:320px; height: 220px; overflow;border:1px solid #cccccc"><p>Flash Video presentation. You can download the Adobe Flash Player <a href="http://www.macromedia.com/go/getflashplayer" title="Download the Adobe Flash Player" target="_blank">here</a>.</p></div><!--[if !IE]> <--></object><!--> <![endif]--></object></div>');
// this was just a test. We may need to alter the way this nested object stuff works for IE7
//document.write('<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + oArg.width + '" height="' + oArg.height +'" id="flash_video_player_version2" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + oArg.url + '" /><param name="quality" value="high" /><param name="bgcolor" value="#cccccc" /><embed src="' + oArg.url + '" quality="high" bgcolor="#cccccc" width="' + oArg.width + '" height="' + oArg.height +'" name="flash_video_player_version2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>');
}
}