﻿// ----------------------------------------------------------------------------------------
//
//	Mini Player v1.0
//	by Mark Riethmuller - http://www.ipinternet.com.au
//	Last Modification: 13/08/08
//      Description: Player functions and initialisation
//
// ----------------------------------------------------------------------------------------
 
function getMiniPlayerHTML(file, autoStart)
{
  if(-1 != navigator.userAgent.indexOf("MSIE"))
  {
    return '<OBJECT ID="mediaplayer" class="ieUpdateExclude" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="250" height="64">'+    
           '<param name="url" value="' + file + '">\n'+
           '<param name="AutoStart" value="' + (autoStart==1) + '">\n'+
           '<param name="type" value="application/x-ms-wmp">\n'+
           '<param name="ShowControls" value="true">\n'+
           '<param name="ShowStatusBar" value="false">\n'+
           '<param name="uiMode" value="mini">\n'+
           '</OBJECT>'
  }
  else if(-1 != navigator.userAgent.indexOf("Firefox"))
  {
    return '<object type="application/x-ms-wmp" id="mediaplayer" class="ieUpdateExclude" width="580" height="64">'+
    '<param name="URL" value="' + file + '">'+
    '<param name="AutoStart" value="false">'+
    '<param name="ShowTracker" value="true">'+
    '<param name="ShowControls" value="true">'+
    '<param name="ShowGotoBar" value="false">'+
    '<param name="ShowDisplay" value="false">'+
    '<param name="ShowStatusBar" value="false">'+
    '<param name="AutoSize" value="false">'+
    '<param name="StretchToFit" value="true">'+
    '<a href="https://addons.mozilla.org/en-US/firefox/browse/type:7">Get the plugin Media Player for Firefox Plugin. (Plugin can be found at the bottom of the Plugins page)</a> <!--MSIE workaround-->'+
    '</object>';
  }         
}    
 