// JavaScript Document

function DetectQuickTime()
{
  var haveqt = false;
  
  if (navigator.plugins)
  {
    for (i=0; i < navigator.plugins.length; i++ )
    {
      if (navigator.plugins[i].name.indexOf("QuickTime") >= 0)
      {
        haveqt = true;
      }
    }
  }
  
  return haveqt;
}

function DetectIE()
{
 if (navigator.appName.substring(0,9) == "Microsoft") return true;
}

function qt_player(file, width, height)
{
    document.write('<embed src="' + file + '" width="' + width + '" height="' + height + '" bgcolor="black" autoplay="true" loop="false" controller="true" pluginspage="http://www.apple.com/quicktime/"></embed>');
}

function wm_player(file, width, height)
{
  document.write('<OBJECT id="VIDEO" width="' + width +'" height="' + height + '" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">');
	document.write('<PARAM NAME="URL" VALUE="' + file + '">');
	document.write('<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">');
	document.write('<PARAM NAME="AutoStart" VALUE="True">');
	document.write('<PARAM name="uiMode" value="full">');
	document.write('</OBJECT>');
}

