// ブラウザ判別後の処理
if(WIN && IE){
	document.write('<link rel="stylesheet" href="/cmn/css/win_ie.css" type="text/css" media="screen">');
	document.write('<link rel="stylesheet" href="/cmn/css/win_ie_print.css" type="text/css" media="print">');
}

// ロールオーバー
function changeImg (imgId, imgSrc) {
    if (document.getElementById) {
        document.getElementById(imgId).src = imgSrc;
    }
}

// プラグインチェック
var contentVersion = 7;
var FlashCanPlay = false;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if ( plugin ) {
  var words = navigator.plugins["Shockwave Flash"].description.split(" ");
  for (var i = 0; i < words.length; ++i) {
    if (isNaN(parseInt(words[i])))
    continue;
    var PluginVersion = words[i]; 
  }
  var FlashCanPlay = PluginVersion >= contentVersion;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion))) \n');
  document.write('</SCR' + 'IPT\> \n');
}

// ポップアップウィンドウ
function popWin (f,w,h,n,s,pos) {
  nw = window.open(f, "pop" + n, "width=" + w + ", height=" + h + ", toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=" + s + ", resizable=no");
  
  if (pos != "0") {
    if (pos == "center") {
      wx = w;
      wy = h;
      x  = (screen.availWidth  - wx) / 2;
      y  = (screen.availHeight - wy) / 2;
    }
    nw.moveTo(x,y);
  }
}

