/*
 * [�֐���] CreateWindowsMediaPlayerObj
 * [�@�@�\] Windows Media Player �̃E�F�u���ߍ��݃^�O����
 * [��@��] JavaScript��OBJECT�^�O�AEMBED�^�O�𐶐����A�����������ߍ��݃^�O���o��
 *�@�@�@�@�@���[�r�[�T�C�Y�A�����Đ��̗L���A�R���g���[���\���E��\����w���
 * [��@��]
 * @param fpas ���[�r�[�ւ̃p�X�i���΃p�X�j
 * @param width ���[�r�[�̕�
 * @param height ���[�r�[�̍���
 * @param f_controll �R���g���[���\���̗L�� "true" | "false"
 * @param f_auto �����Đ��̗L�� "true" | "false"
 * @param f_status �X�e�[�^�X�o�[�\���̗L�� "true" | "false"
*/
function CreateWindowsMediaPlayerObj(fpass,width,height,f_controll,f_auto,f_status){
  htm="";
  if(f_controll=="true"){ // �R���g���[���\���̏ꍇ�̓R���g���[���̍���(45px)��v���X
    height=eval(height+45);
  }
  if(f_status=="true"){ // �X�e�[�^�X�o�[�\���̏ꍇ�̓X�e�[�^�X�o�[�̍���(24px)��v���X
    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);
}