/**
  * Flash表示JavaScript(ActiveX仕様変更対応)
  * $Id:$
  * $Revision:$
  * $Date:$
  * $Author:$
  * Copyright J.B.Craft 2007
  */

function DspJanbariFlash(sFileName,iWidth,iHeight,iDispKbn,iMemberNumber,sAreaCd,sPlayMode,sProgramId,sCategoryId,sSeriesId,sJDOpenYM,sHallId,sHallPvId,sXmlVersion){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + iWidth + '" height="' +  iHeight + '" id="' + sFileName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/swf/' + sFileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="flashvars" value="MEMBER_NUMBER=' + iMemberNumber + '&AREA_ID=' + sAreaCd + '&VIEW_TYPE=' + iDispKbn + '&PLAY_MODE=' + sPlayMode + '&FV_PROGRAM_ID=' + sProgramId + '&FV_CATEGORY_ID=' + sCategoryId + '&FV_SERIES_ID=' + sSeriesId + '&FV_JD_OPEN_YM=' + sJDOpenYM + '&FV_HALL_ID=' + sHallId + '&FV_HALL_PV_ID=' + sHallPvId + '&LOAD_XML_VERSION=' + sXmlVersion + '" />');
	document.write('<embed src="/swf/' + sFileName + '" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + ' " name="' + sFileName + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="MEMBER_NUMBER=' + iMemberNumber + '&AREA_ID=' + sAreaCd + '&VIEW_TYPE=' + iDispKbn + '&PLAY_MODE=' + sPlayMode + '&FV_PROGRAM_ID=' + sProgramId + '&FV_CATEGORY_ID=' + sCategoryId + '&FV_SERIES_ID=' + sSeriesId + '&FV_JD_OPEN_YM=' + sJDOpenYM + '&FV_HALL_ID=' + sHallId + '&FV_HALL_PV_ID=' + sHallPvId + '&LOAD_XML_VERSION=' + sXmlVersion + '"/>');
	document.write('</object>');
}

function DspBookFlash(sFileName,iWidth,iHeight,iDispPage,iMemberNumber){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + iWidth + '" height="' +  iHeight + '" id="' + sFileName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/swf/' + sFileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="flashvars" value="MEMBER_NUMBER=' + iMemberNumber + '&START_PAGE=' + iDispPage + '" />');
	document.write('<embed src="/swf/' + sFileName + '" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + ' " name="' + sFileName + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="MEMBER_NUMBER=' + iMemberNumber + '&START_PAGE=' + iDispPage + '"/>');
	document.write('</object>');
}

function DspBannerFlash(sFileName,iWidth,iHeight,sIdName){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + iWidth + '" height="' +  iHeight + '" id="' + sIdName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="' + sFileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="' + sFileName + '" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + ' " name="' + sIdName + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
function DspGameFlash(sFileName,iWidth,iHeight,iMemberNumber,iPlayGame,iCountBJ,iCountHL,iCountRO1){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + iWidth + '" height="' +  iHeight + '" id="' + sFileName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="/swf/game/' + sFileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="flashvars" value="VARS_ID=' + iMemberNumber + '&GAME_NAME=' + iPlayGame + '&FV_COUNT_BJ=' + iCountBJ + '&FV_COUNT_HL=' + iCountHL + '&FV_COUNT_RO1=' + iCountRO1 + '" />');
	document.write('<embed src="/swf/game/' + sFileName + '" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + ' " name="' + sFileName + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="VARS_ID=' + iMemberNumber + '&GAME_NAME=' + iPlayGame + '&FV_COUNT_BJ=' + iCountBJ + '&FV_COUNT_HL=' + iCountHL + '&FV_COUNT_RO1=' + iCountRO1 + '"/>');
	document.write('</object>');
}

function DspNormalFlash(sFileName,iWidth,iHeight,sXmlVersion){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + iWidth + '" height="' +  iHeight + '" id="' + sFileName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/swf/' + sFileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="flashvars" value="LOAD_XML_VERSION=' + sXmlVersion + '" />');
	document.write('<embed src="/swf/' + sFileName + '" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + ' " name="' + sFileName + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="LOAD_XML_VERSION=' + sXmlVersion + '"/>');
	document.write('</object>');
}

function DspPlayFLVFlash(sFileName,iWidth,iHeight,sFlvFileName,bRepeat){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + iWidth + '" height="' +  iHeight + '" id="' + sFileName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + sFileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="flashvars" value="FV_FLVFILE_NAME=' + sFlvFileName + '&FV_REPEAT=' + bRepeat + '" />');
	document.write('<embed src="' + sFileName + '" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + ' " name="' + sFileName + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="FV_FLVFILE_NAME=' + sFlvFileName + '&FV_REPEAT=' + bRepeat + '"/>');
	document.write('</object>');
}
function DspJanbariFlashSys(sFileName,iWidth,iHeight,sFilePath){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + iWidth + '" height="' +  iHeight + '" id="' + sFileName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/swf/' + sFileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="flashvars" value="FILE_NAME=' + sFilePath + '" />');
	document.write('<embed src="/swf/' + sFileName + '" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + ' " name="' + sFileName + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="FILE_NAME=' + sFilePath + '"/>');
	document.write('</object>');
}

function DspProgramPlayFlash(sFileName,iWidth,iHeight,iDispKbn,iMemberNumber,sAreaCd,sPlayMode,sProgramId,sCategoryId,sSeriesId,sJDOpenYM,sHallId,sHallPvId,sXmlVersion,sLoadFile){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + iWidth + '" height="' +  iHeight + '" id="' + sFileName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/swf/' + sFileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="flashvars" value="MEMBER_NUMBER=' + iMemberNumber + '&AREA_ID=' + sAreaCd + '&VIEW_TYPE=' + iDispKbn + '&PLAY_MODE=' + sPlayMode + '&FV_PROGRAM_ID=' + sProgramId + '&FV_CATEGORY_ID=' + sCategoryId + '&FV_SERIES_ID=' + sSeriesId + '&FV_JD_OPEN_YM=' + sJDOpenYM + '&FV_HALL_ID=' + sHallId + '&FV_HALL_PV_ID=' + sHallPvId + '&LOAD_XML_VERSION=' + sXmlVersion + '&LOAD_FILE=' + sLoadFile + '" />');
	document.write('<embed src="/swf/' + sFileName + '" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + ' " name="' + sFileName + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="MEMBER_NUMBER=' + iMemberNumber + '&AREA_ID=' + sAreaCd + '&VIEW_TYPE=' + iDispKbn + '&PLAY_MODE=' + sPlayMode + '&FV_PROGRAM_ID=' + sProgramId + '&FV_CATEGORY_ID=' + sCategoryId + '&FV_SERIES_ID=' + sSeriesId + '&FV_JD_OPEN_YM=' + sJDOpenYM + '&FV_HALL_ID=' + sHallId + '&FV_HALL_PV_ID=' + sHallPvId + '&LOAD_XML_VERSION=' + sXmlVersion + '&LOAD_FILE=' + sLoadFile + '"/>');
	document.write('</object>');
}
