/* --------------------------------------------------------------- */
/* WebEasy v:8.0 Embedded Multimedia for IE6,7     11/6/2006       */
/* --------------------------------------------------------------- */

function JpAddFlash91(url,dmx,dmy,ply,lop,qua,sca,mnu,vmod)
{
    document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+dmx+'" height="'+dmy+'"');
    document.writeln(' codebase="http://active.macromedia.com/flash7/cabs/swflash.cab#version=9,0,0,0" align="middle" viewastext>');
    document.writeln('<param name="allowscriptaccess"  value="samedomain" />');
    document.writeln('<param name="src" value="'+url+'">');
    document.writeln('<param name="play" VALUE="'+ply+'">');
    document.writeln('<param name="loop" value="'+lop+'">');
    document.writeln('<param name="quality" value="'+qua+'">');
    document.writeln('<param name="scale" VALUE="'+sca+'">');
    document.writeln('<param name="menu" value="'+mnu+'">');
    document.writeln('<param name="wmode" value="'+vmod+'">');
    document.writeln('<embed type="application/x-shockwave-flash"');
    document.writeln(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' play="'+ply+'"');
    document.writeln(' loop="'+lop+'"');
    document.writeln(' quality="'+qua+'"');
    document.writeln(' scale="'+sca+'"');
    document.writeln(' menu="'+mnu+'"');
    document.writeln(' wmode="'+vmod+'"');
    document.writeln(' allowScriptAccess="sameDomain"');
    document.writeln(' align="middle"');
    document.writeln('></embed>');
    document.writeln('</object>');
}

function JpAddFlash92(url,dmx,dmy,ply,lop,qua,sca,mnu,bgc)
{
    document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+dmx+'" height="'+dmy+'"');
    document.writeln(' codebase="http://active.macromedia.com/flash7/cabs/swflash.cab#version=9,0,0,0" viewastext>');
    document.writeln('<param name="src" value="'+url+'">');
    document.writeln('<param name="play" VALUE="'+ply+'">');
    document.writeln('<param name="loop" value="'+lop+'">');
    document.writeln('<param name="quality" value="'+qua+'">');
    document.writeln('<param name="scale" VALUE="'+sca+'">');
    document.writeln('<param name="menu" value="'+mnu+'">');
    document.writeln('<param name="bgcolor" value="'+bgc+'">');
    document.writeln('<embed type="application/x-shockwave-flash"');
    document.writeln(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' play="'+ply+'"');
    document.writeln(' loop="'+lop+'"');
    document.writeln(' quality="'+qua+'"');
    document.writeln(' scale="'+sca+'"');
    document.writeln(' menu="'+mnu+'"');
    document.writeln(' bgcolor="'+bgc+'"');
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddFlash9(url,dmx,dmy,ply,lop,qua,sca,mnu,bgc,prog,logo)
{
    document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+dmx+'" height="'+dmy+'"');
    document.writeln(' codebase="http://active.macromedia.com/flash7/cabs/swflash.cab#version=9,0,0,0">');
    document.writeln('<param name="src" VALUE="'+url+'">');
    document.writeln('<param name="play" VALUE="'+ply+'">');
    document.writeln('<param name="loop" VALUE="'+lop+'">');
    document.writeln('<param name="quality" VALUE="'+qua+'">');
    document.writeln('<param name="scale" VALUE="'+sca+'">');
    document.writeln('<param name="menu" VALUE="'+mnu+'">');
    document.writeln('<param name="bgcolor" VALUE="'+bgc+'">');
    document.writeln('<param name="progress" VALUE="'+prog+'">');
    document.writeln('<param name="logo" VALUE="'+logo+'">');    
    document.writeln('<embed type="application/x-shockwave-flash"');
    document.writeln(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' play="'+ply+'"');
    document.writeln(' loop="'+lop+'"');
    document.writeln(' quality="'+qua+'"');
    document.writeln(' scale="'+sca+'"');
    document.writeln(' menu="'+mnu+'"');
    document.writeln(' bgcolor="'+bgc+'"');
    document.writeln(' progress="'+prog+'"');
    document.writeln(' logo="'+logo+'"');    
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddFlash8(url,dmx,dmy,ply,lop,qua,sca,mnu,bgc,prog,logo)
{
    document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+dmx+'" height="'+dmy+'"');
    document.writeln(' codebase="http://active.macromedia.com/flash7/cabs/swflash.cab#version=8,0,22,0">');
    document.writeln('<param name="src" VALUE="'+url+'">');
    document.writeln('<param name="play" VALUE="'+ply+'">');
    document.writeln('<param name="loop" VALUE="'+lop+'">');
    document.writeln('<param name="quality" VALUE="'+qua+'">');
    document.writeln('<param name="scale" VALUE="'+sca+'">');
    document.writeln('<param name="menu" VALUE="'+mnu+'">');
    document.writeln('<param name="bgcolor" VALUE="'+bgc+'">');
    document.writeln('<param name="progress" VALUE="'+prog+'">');
    document.writeln('<param name="logo" VALUE="'+logo+'">');    
    document.writeln('<embed type="application/x-shockwave-flash"');
    document.writeln(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' play="'+ply+'"');
    document.writeln(' loop="'+lop+'"');
    document.writeln(' quality="'+qua+'"');
    document.writeln(' scale="'+sca+'"');
    document.writeln(' menu="'+mnu+'"');
    document.writeln(' bgcolor="'+bgc+'"');
    document.writeln(' progress="'+prog+'"');
    document.writeln(' logo="'+logo+'"');    
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddFlash7(url,dmx,dmy,ply,lop,qua,sca,mnu,bgc,prog,logo)
{
    document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+dmx+'" height="'+dmy+'"');
    document.writeln(' codebase="http://active.macromedia.com/flash7/cabs/swflash.cab#version=7,0,0,0">');
    document.writeln('<param name="src" VALUE="'+url+'">');
    document.writeln('<param name="play" VALUE="'+ply+'">');
    document.writeln('<param name="loop" VALUE="'+lop+'">');
    document.writeln('<param name="quality" VALUE="'+qua+'">');
    document.writeln('<param name="scale" VALUE="'+sca+'">');
    document.writeln('<param name="menu" VALUE="'+mnu+'">');
    document.writeln('<param name="bgcolor" VALUE="'+bgc+'">');
    document.writeln('<param name="progress" VALUE="'+prog+'">');
    document.writeln('<param name="logo" VALUE="'+logo+'">');    
    document.writeln('<embed type="application/x-shockwave-flash"');
    document.writeln(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' play="'+ply+'"');
    document.writeln(' loop="'+lop+'"');
    document.writeln(' quality="'+qua+'"');
    document.writeln(' scale="'+sca+'"');
    document.writeln(' menu="'+mnu+'"');
    document.writeln(' bgcolor="'+bgc+'"');
    document.writeln(' progress="'+prog+'"');
    document.writeln(' logo="'+logo+'"');    
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddQTime(url,dmx,dmy,ply,lop,ctr)
{
    document.writeln('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="'+dmx+'" height="'+dmy+'"');
    document.writeln(' codebase="http://www.apple.com/qtactivex/qtplugin.cab">');
    document.writeln('<param name="src" VALUE="'+url+'">');
    document.writeln('<param name="autoplay" VALUE="'+ply+'">');
    document.writeln('<param name="loop" VALUE="'+lop+'">');
    document.writeln('<param name="controller" VALUE="'+ctr+'">');
    document.writeln('<embed pluginspage="http://www.apple.com/quicktime/download/"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' autoplay="'+ply+'"');
    document.writeln(' loop="'+lop+'"');	
    document.writeln(' controller="'+ctr+'"');	
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddRealPlay(url,dmx,dmy,ctr,ply)
{
    document.writeln('<object classid="clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa" width="'+dmx+'" height="'+dmy+'">');
    document.writeln('<param name="src" VALUE="'+url+'">');
    document.writeln('<param name="autostart" VALUE="'+ply+'">');
    document.writeln('<param name="controls" VALUE="imagewindow">');
    document.writeln('<param name="console" VALUE="1">');
    document.writeln('<embed pluginspage="http://www.real.com/realone/index.html?lang=jp"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' autostart="'+ply+'"');
    document.writeln(' controls="imagewindow"');	
    document.writeln(' console="1"');	
    document.writeln('type="audio/x-pn-realaudio-plugin"');	
    document.writeln('></embed>');
    document.writeln('</object>');
    document.writeln('<br>');
    document.writeln('<object classid="clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa" width="'+dmx+'" height="'+dmy+'">');
    document.writeln('<param name="src" VALUE="'+url+'">');
    document.writeln('<param name="autostart" VALUE="'+ply+'">');
    document.writeln('<param name="controls" value="controlpanel,positionfield">');
    document.writeln('<param name="console" VALUE="1">');
    document.writeln('<embed pluginspage="http://www.real.com/realone/index.html?lang=jp"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' autostart="'+ply+'"');
    document.writeln(' controls="controlpanel,positionfield"');	
    document.writeln(' console="1"');	
    document.writeln('type="audio/x-pn-realaudio-plugin"');	
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddWinMedia7(url,dmx,dmy,ply,lop,scn,sdi,stb,anm)
{
    document.writeln('<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="'+dmx+'" height="'+dmy+'"');
    document.writeln(' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"');
    document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
    document.writeln(' type=""application/x-oleobject">');
    document.writeln('<param name="FileName" VALUE="'+url+'">');
    document.writeln('<param name="AutoStart" VALUE="'+ply+'">');
    document.writeln('<param name="Loop" VALUE="'+lop+'">');
    document.writeln('<param name="ShowControls" VALUE="'+scn+'">');
    document.writeln('<param name="ShowDisplay" VALUE="'+sdi+'">');
    document.writeln('<param name="ShowStatusBar" VALUE="'+stb+'">');
    document.writeln('<param name="AnimationAtStart" VALUE="'+anm+'">');
    document.writeln('<embed type="application/x-mplayer2"');
    document.writeln(' pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' AutoStart="'+ply+'"');
    document.writeln(' loop="'+lop+'"');
    document.writeln(' ShowControls="'+scn+'"');
    document.writeln(' ShowDisplay="'+sdi+'"');
    document.writeln(' ShowStatusBar="'+stb+'"');
    document.writeln(' AnimationAtStart="'+anm+'"');
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddWinMediaAudio7(url,dmx,dmy,ply,lop,scn,asz,dsz,anm,trn,stb,sdi)
{
    document.writeln('<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="'+dmx+'" height="'+dmy+'"');
    document.writeln(' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"');
    document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
    document.writeln(' type=""application/x-oleobject">');
    document.writeln('<param name="FileName" VALUE="'+url+'">');
    document.writeln('<param name="AutoStart" VALUE="'+ply+'">');
    document.writeln('<param name="Loop" VALUE="'+lop+'">');
    document.writeln('<param name="ShowControls" VALUE="'+scn+'">');
    document.writeln('<param name="AutoSize" VALUE="'+asz+'">');
    document.writeln('<param name="DisplaySize" VALUE="'+dsz+'">');
    document.writeln('<param name="AnimationAtStart" VALUE="'+anm+'">');
    document.writeln('<param name="TransparentAtStart" VALUE="'+trn+'">');
    document.writeln('<param name="ShowStatusBar" VALUE="'+stb+'">');
    document.writeln('<param name="ShowDisplay" VALUE="'+sdi+'">');
    document.writeln('<embed type="application/x-mplayer2"');
    document.writeln(' pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"');
    document.writeln(' src="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' AutoStart="'+ply+'"');
    document.writeln(' loop="'+lop+'"');
    document.writeln(' ShowControls="'+scn+'"');
    document.writeln(' AutoSize="'+asz+'"');
    document.writeln(' DisplaySize="'+dsz+'"');
    document.writeln(' AnimationAtStart="'+anm+'"');
    document.writeln(' TransparentAtStart="'+trn+'"');
    document.writeln(' ShowStatusBar="'+stb+'"');
    document.writeln(' ShowDisplay="'+sdi+'"');
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddWinMedia9(url,dmx,dmy,ply,uim,fsc,stf,mut,plc,rat,mnu,ena)
{
    document.writeln('<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" width="'+dmx+'" height="'+dmy+'">');
    document.writeln('<param name="URL" VALUE="'+url+'">');
    document.writeln('<param name="autoStart" VALUE="'+ply+'">');
    document.writeln('<param name="uiMode" VALUE="'+uim+'">');
    document.writeln('<param name="fullScreen" VALUE="'+fsc+'">');
    document.writeln('<param name="stretchToFit" VALUE="'+stf+'">');
    document.writeln('<param name="mute" VALUE="'+mut+'">');
    document.writeln('<param name="playCount" VALUE="'+plc+'">');
    document.writeln('<param name="rate" VALUE="'+rat+'">');
    document.writeln('<param name="enableContextMenu" VALUE="'+mnu+'">');
    document.writeln('<param name="enabled" VALUE="'+ena+'">');
    document.writeln('<embed type="application/x-mplayer2"');
    document.writeln(' pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"');
    document.writeln(' URL="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' AutoStart="'+ply+'"');
    document.writeln(' uiMode="'+uim+'"');
    document.writeln(' fullScreen="'+fsc+'"');
    document.writeln(' stretchToFit="'+stf+'"');
    document.writeln(' mute="'+mut+'"');
    document.writeln(' playCount="'+plc+'"');
    document.writeln(' rate="'+rat+'"');
    document.writeln(' enableContextMenu="'+mnu+'"');
    document.writeln(' enabled="'+ena+'"');
    document.writeln('></embed>');
    document.writeln('</object>');
}

function weAddWinMediaAudio9(url,dmx,dmy,ply,plc,uim,mnu,ena)
{
    document.writeln('<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" width="'+dmx+'" height="'+dmy+'">');
    document.writeln('<param name="URL" VALUE="'+url+'">');
    document.writeln('<param name="autoStart" VALUE="'+ply+'">');
    document.writeln('<param name="playCount" VALUE="'+plc+'">');
    document.writeln('<param name="uiMode" VALUE="'+uim+'">');
    document.writeln('<param name="enableContextMenu" VALUE="'+mnu+'">');
    document.writeln('<param name="enabled" VALUE="'+ena+'">');
    document.writeln('<embed type="application/x-mplayer2"');
    document.writeln(' pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"');
    document.writeln(' URL="'+url+'"');
    document.writeln(' width="'+dmx+'"');
    document.writeln(' height="'+dmy+'"');
    document.writeln(' AutoStart="'+ply+'"');
    document.writeln(' playCount="'+plc+'"'); 
    document.writeln(' uiMode="'+uim+'"');
    document.writeln(' enableContextMenu="'+mnu+'"');
    document.writeln(' enabled="'+ena+'"');
    document.writeln('></embed>');
    document.writeln('</object>');
}


