
//固定サイズ別ウィンドウを開く
function winOpen(adress,xSize,ySize)
{
	var fWidth = (screen.availWidth - xSize)/2;
	var fHeight =(screen.availHeight - ySize)/2;
	var position = (navigator.appName.indexOf("Netscape") != -1) ? ",screenX="+fWidth+",screenY="+fHeight : ",left="+fWidth+",top="+fHeight;	
	var option = "width=" + xSize + ",height=" + ySize + position + ",scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no";
	winImageField = window.open(adress, "loft", option);
	winImageField.focus() ;
}




//Flashを表示
function run()
{

//初期設定
var hasProductInstall = DetectFlashVer(6, 0, 65);
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
var MMredirectURL = window.location;
var bgColor = "#0000000";

if ( hasProductInstall && !hasReqestedVersion) {

document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;
    var productInstallOETags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="100%" height="100%"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="autouploader.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=ActiveX&MMdoctitle='+MMdoctitle+'" />'
    + '<param name="quality" value="high" /><param name="bgcolor" value="'+bgColor+'" />'
    + '<embed src="autouploader.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=PlugIn" quality="high" bgcolor="'+bgColor+'" '
    + 'width="100%" height="100%" name="detectiontest" aligh="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(productInstallOETags);

} else if (hasReqestedVersion) {

    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="100%" height="100%"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="index.swf" /><param name="quality" value="high" /><param name="bgcolor" value="'+bgColor+'" /><param name="wmode" value="opaque" />'
    + '<embed src="index.swf" quality="high" bgcolor="'+bgColor+'" '
    + 'width="100%" height="100%" name="loft" aligh="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);

} else {
    location.href="noplugin.html"
}
}