function writeMovieObject(sURL) {
	var objHTML;
//	if (getQuicktimeVersion() == quicktimeVersion_DONTKNOW || getQuicktimeVersion() == 0)
//		objHTML = "Unable to detect your installed version of Quicktime.  Please download the latest from <a href=\"http://www.apple.com/quicktime/download\"><font color=\"#393A93\">Apple Quicktime plugin</font></a> to view this content.";
//	else
		objHTML = "<OBJECT WIDTH=\"320\"HEIGHT=\"255\"><PARAM name=\"SRC\" VALUE=\"" + sURL + "\"><PARAM name=\"AUTOPLAY\" VALUE=\"true\"><PARAM name=\"CONTROLLER\" VALUE=\"true\"><EMBED SRC=\"" + sURL + "\" WIDTH=\"320\" HEIGHT=\"255\" AUTOPLAY=\"true\" CONTROLLER=\"true\"></EMBED></OBJECT>";
	document.write(objHTML);
}

function writeMP3Object(sURL) {
	var objHTML = "<OBJECT WIDTH=\"300\" HEIGHT=\"45\" ALIGN=CENTER><param name=\"src\" value=\"" + sURL + "\" /><param name=\"autoplay\" value=\"true\" /><param name=\"controller\" value=\"true\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\"" + sURL + "\" width=\"300\" palette=\"foreground\" height=\"45\" type=\"audio/x-mpeg\" controller=\"true\" autostart=\"true\" controls=\"smallconsole\" bgcolor=\"#000000\" volume=\"100\"> </embed></object>";
	document.write(objHTML);
}

var quicktimeVersion = 0;
function getQuicktimeVersion() {
   var agent = navigator.userAgent.toLowerCase(); 
   
   // NS3+, Opera3+, IE5+ Mac (support plugin array):  check for Quicktime plugin in plugin array
   if (navigator.plugins != null && navigator.plugins.length > 0) {
      for (i=0; i < navigator.plugins.length; i++ ) {
         var plugin =navigator.plugins[i];
         if (plugin.name.indexOf("QuickTime") > -1) {
            quicktimeVersion = parseFloat(plugin.name.substring(18));
         }
      }
   }
   
   // IE4+ Win32:  attempt to create an ActiveX object using VBScript
   else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
     document.write('<scr' + 'ipt language="VBScript"\> \n');
      document.write('on error resume next \n');
      document.write('dim obQuicktime \n');
      document.write('set obQuicktime = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1") \n');
      document.write('if IsObject(obQuicktime) then \n');
      document.write('   if obQuicktime.IsQuickTimeAvailable(0) then \n');
      document.write('      quicktimeVersion = CInt(Hex(obQuicktime.QuickTimeVersion) / 1000000) \n');
      document.write('   end if \n');
      document.write('end if \n');
      document.write('</scr' + 'ipt\> \n');
  }

   // Can't detect in all other cases
   else {
      quicktimeVersion = quicktimeVersion_DONTKNOW;
   }

   return quicktimeVersion;
}

quicktimeVersion_DONTKNOW = -1;