
<!-- // detection for netscape
var isQuickTime = navigator.mimeTypes && navigator.mimeTypes["video/quicktime"];

// detection for explorer

if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1))
{
 document.writeln('<script language="VBscript">');
 document.writeln(' on error resume next    ');
 document.writeln(' isQuickTime = not IsNull(CreateObject("QuickTimeCheckObject.QuickTimeCheck.1"))');
 document.writeln('</scr' + 'ipt>'); 
}

function PlayMovie (src, width, height)
{
 this.src = src;
 this.width = width;
 this.height = height;
 this.type = "video/mov";
 this.movie_enabled = 0;
 this.plugin_enabled = 0;
 this.pluginUrl = "http://www.apple.com/quicktime/download/";
 this.NS = (document.layers) ? 1 : 0;
 this.IE = (document.all)    ? 1 : 0;
 this.Mac = ((navigator.userAgent.toLowerCase()).indexOf("mac")!=-1);
 this.Win = ((navigator.userAgent.toLowerCase()).indexOf("win") != -1);
 this.useQuickTime = isQuickTime;

 this.Check ();
 this.Write ();
}

function WriteMovieHTML ()
{
 var IE, NS, Win, Mac;
 IE = (document.all) ? 1 : 0;
 NS = (document.layers) ? 1 : 0;
 Mac = ((navigator.userAgent.toLowerCase()).indexOf("mac")!=-1); 

 with (document)
 {
  if (this.movie_enabled && (Mac || (this.useQuickTime)))
  {
   write ('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"  WIDTH="' + (this.width) + '" HEIGHT="' + (this.height - 14) + '">\n');
   write (' <PARAM NAME="SRC" VALUE="' + this.src + '">\n');
   write (' <PARAM NAME="CONTROLLER" VALUE="TRUE">\n');
   write (' <PARAM NAME="AUTOPLAY" VALUE="FALSE">\n');
   write (' <PARAM NAME="LOOP" VALUE="FALSE">\n');
   write (' <EMBED SRC="' + this.src + '" WIDTH="' + this.width + '" HEIGHT="' + this.height + '" CONTROLLER=TRUE AUTOPLAY=TRUE LOOP=FALSE PLUGINSPAGE="' + this.pluginUrl + '" TYPE="' + this.type + '"></EMBED>\n');
   write ('</OBJECT>\n');
  }
  else if (this.movie_enabled && NS)
  {
   write (' <EMBED SRC="' + this.src + '" WIDTH="' + this.width + '" HEIGHT="' + this.height + '" CONTROLLER=TRUE AUTOPLAY=TRUE LOOP=FALSE PLUGINSPAGE="' + this.pluginUrl + '" TYPE="' + this.type + '"></EMBED>\n');
  }
  else
  {
   write ('Error\n');
  }
 }
}

function checkMovieType (s)
{
 var i;
 var MoviePlugin;
 var enabledPlugin, mimetype;

 if (navigator.plugins && navigator.plugins.length > 0)
 {
  var numPlugins = navigator.plugins.length;
  
  for (i = 0; i < numPlugins; i++)
  {
   var plugin = navigator.plugins[i];
   var numTypes = plugin.length;

   for (j = 0; j < numTypes; j++)
   {
    mimetype = plugin[j];
    if (mimetype)
    {
     if (mimetype.suffixes.indexOf (s) != -1)
     {
      enabledPlugin = mimetype.enabledPlugin;
      if (enabledPlugin && (enabledPlugin.name == plugin.name))
      {
       return 1;
      }
     }
    }
   }
  }
 }

 return 0;
}

function CheckEnable ()
{
 var IE, NS;
 IE = (document.all) ? 1 : 0;
 NS = (document.layers) ? 1 : 0;

 this.plugin_enabled = (navigator.plugins) ? 1 : 0;

 this.movie_enabled  = checkMovieType ('mov');
 if (IE)
 {
  this.movie_enabled = (IE && this.plugin_enabled);
 }

}

PlayMovie.prototype.Write = WriteMovieHTML;
PlayMovie.prototype.Check = CheckEnable;

// -->

