function CreateWindowsMediaPlayerObj(fpass,width,height,f_controll,f_auto,f_status){
  htm="";
  if(f_controll=="true"){ // コントロール表示の場合はコントロールの高さ(45px)をプラス
    height=eval(height+45);
  }
  if(f_status=="true"){ // ステータスバー表示の場合はステータスバーの高さ(24px)をプラス
    height=eval(height+24);
  }
  //OBJECT TAG
  htm+="<object";
  htm+=" id='WMP'";
  htm+=" width='"+width+"' height='"+height+"'";
  htm+=" classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'";
  htm+=" codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715'";
  htm+=" standby='Loading MicrosoftR WindowsR Media Player components...'";
  htm+=" type='application/x-oleobject'>\n";
  htm+="<param name='FileName' value='"+fpass+"'>\n";
  htm+="<param name='ShowControls' value='"+f_controll+"'>\n";
  htm+="<param name='AutoStart' value='"+f_auto+"'>\n";
  htm+="<param name='ShowStatusBar' value='"+f_status+"'>\n";
  //EMBED TAG
  htm+="<embed name='WMP' type='application/x-mplayer2'";
  htm+=" pluginspage='http://www.microsoft.com/Windows/MediaPlayer/'";
  htm+=" src='"+fpass+"'";
  htm+=" width='"+width+"' height='"+height+"'";
  htm+=" showcontrols='"+((f_controll=="true")?1:0)+"'";
  htm+=" autostart='"+((f_auto=="true")?1:0)+"'";
  htm+=" showstatusbar='"+((f_status=="true")?1:0)+"'>\n";
  htm+="</embed>\n";
  htm+="</object>\n";
  document.write(htm);
}

