﻿/**
* ver_ch.js
*
* @version	1.3.0.0
* @update	10:46 2008/09/26
*
*/

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Set Up


var swfURI = './f/index.swf';
var swfWid = '906';
var swfHei = '224';
var swfBgc = '#fbfaf0';
var swfId  = 'swf';
var swfTgt = 'mainImage';

var MM_contentVersion = 9;

// var lowerPlugIn = '<p id="lowerPlugIn">このコンテンツをご覧いただくにはAdobe Flash Player ' + MM_contentVersion + 'が必要です。お使いのブラウザには最新のFlash Playerがインストールされていません。<a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Adobeのウェブサイト</a>から最新のフラッシュプレイヤーをインストールした後、このページをリロード(更新)してください。</p>';
var lowerPlugIn = '<h2>住み慣れた地域で輝いた“生”を送る―そんな願いを結ぶお手伝いが私達の喜びです。</h2>';

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: End of Set Up


var swf_obj = '';

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 ) {
    swf_obj += '<div id="' + swfId + '">';
    swf_obj += '<object type="application/x-shockwave-flash" data="' + swfURI + '" width="' + swfWid + '" height="' + swfHei + '">';
    swf_obj += '<param name="movie" value="' + swfURI + '" />';
    swf_obj += '<param name="allowScriptAccess" value="always" />';
    swf_obj += '<param name="quality" value="best" />';
    swf_obj += '<param name="bgcolor" value="' + swfBgc + '" />';
    swf_obj += '<param name="scale" value="noScale" />';
    swf_obj += '<param name="salign" value="TL" />';
    swf_obj += '<param name="quality" value="high" />';
    swf_obj += '<param name="menu" value="false" />';
    swf_obj += '<param name="base" value="." />';
    //swf_obj += '<param name="wmode" value="transparent" />';
    swf_obj += '<param name="FlashVars" value="playerMode=embedded" />';
    swf_obj += '</object>';
    swf_obj += '</div>';
	removeWrapperBg();
} else {
    swf_obj += lowerPlugIn;
}

var s = document.getElementById(swfTgt);
s.innerHTML = swf_obj;

function removeWrapperBg() {
	document.getElementById('wrapper').style.backgroundImage = 'none';
}
