﻿/**
* ver_ch.js
*
* @version	1.1.2.0
* @update	19:25 2008/02/07
*
*/

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Set Up

var swf_array = new Array('top');
var swfURI = 'f/yesno.swf';
var swfWid = '555';
var swfHei = '296';
var swfBgc = '#ffffff';
var swfId  = 'flash';

var MM_contentVersion = 8;

var lowerPlugIn = '<p id="lowerPlugIn">このコンテンツをご覧いただくにはAdobe Flash Player ' + MM_contentVersion + 'が必要です。お使いのブラウザには最新のFlash Playerがインストールされていません。<a href="http://www.adobe.com/shockwave/download/index.cgi?Lang=Japanese&P5_Language=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese" target="_blank">Adobeのウェブサイト</a>から最新のフラッシュプレイヤーをインストールした後、このページをリロード(更新)して下さい。</p>';

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: End of Set Up

var $id = function(eId) {
	if (document.getElementById(eId)) return document.getElementById(eId);
};

var $c = function (_class) {
    var classes = document.getElementsByTagName('body')[0].className.split(' ');
    for (var i = 0, c = classes.length; i < c; i++) {
        if (classes[i] == _class) return true;
        else return false;
    }
};

var relPath = function () {
    var $r = false;
    for (var s = 0, l = swf_array.length; s < l; s++) {
        if ($c(swf_array[s])) $r = true;
    }
    return ($r)? './' : '../';
};
swfURI = relPath() + swfURI;

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, w = words.length; i < w; ++i) {
        if (isNaN(parseInt(words[i]))) {
            continue;
        }
        var MM_PluginVersion = words[i]; 
    }
    var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
    document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
    document.write('on error resume next \n');
    document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
    document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
    document.write('<div id="' + swfId + '">');
    document.write('<object type="application/x-shockwave-flash" data="' + swfURI + '" width="' + swfWid + '" height="' + swfHei + '">');
    document.write('<param name="movie" value="' + swfURI + '" />');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="quality" value="best" />');
    document.write('<param name="bgcolor" value="' + swfBgc + '" />');
    document.write('<param name="scale" value="noScale" />');
    document.write('<param name="salign" value="TL" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="menu" value="false" />');
    //document.write('<param name="base" value="." />');
    //document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="FlashVars" value="playerMode=embedded" />');
    document.write('</object>');
    document.write('</div>');
} else{
    document.write(lowerPlugIn);
}
