
var _l1 = new String();

var tagString = new String();

var swf = new String();

var paraObj = new String();

var paraEmb = new String();

var bg = new String();

var w = new String();

var h = new String();

var ver = new Number();

var date = new Date();

var year = date.getYear();

var month = date.getMonth();

var day = date.getDate();

var hours = date.getHours();

var minutes = date.getMinutes();

var seconds = date.getSeconds();

var ms = date.getMilliseconds();

var noCache = Date.UTC(year,month,day,hours,minutes,seconds,ms);

var attentionWord = '<div id="flashAttention"><p>最新版のフラッシュプレイヤーをダウンロードしてコンテンツをお楽しみください。</p><p><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" width="88" height="31" alt="get flash player" /></a></p><!--/flashAttention--></div>';





/*

	init

*/



var MM_contentVersion = 8;

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 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');

	document.write('on error resume next \n');

	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');

	document.write('</SCR' + 'IPT\> \n');

}



/*

	myFunc

*/





function $initialize(){

	_l1 = new String();

	tagString = new String();

	paraObj = new String();

	paraEmb = new String();

	noCache = Date.UTC(year,month,day,hours,minutes,seconds,ms);

}

function $area(elementID){

	if(document.getElementById){

		_l1 = document.getElementById(elementID);

	}

}

function $size(widthPX, heightPX){

	w = widthPX;

	h = heightPX;

}

function $swf(swfpass){

	swf = swfpass;

}

function $param(names, vals){

	paraObj += '<param name="'+names+'" value="'+vals+'" />';

	paraEmb += ' ' + names + '="' + vals + '"';

}

function construntTagString(){

	tagString += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+MM_contentVersion+',0,0,0" width="'+w+'" height="'+h+'" align="middle">';

	//tagString += paraObj + '<param name="movie" value="'+swf+'?noCache='+noCache+'" />';

	tagString += paraObj + '<param name="movie" value="'+swf+'" />';

	tagString += '<embed src="'+swf+'"'

	tagString += paraEmb + 'width="'+w+'" height="'+h+'"';

	tagString += ' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';

	tagString += '</object>';

}

function reWriteElement(){

	window.onload = function(){

		if(MM_FlashCanPlay){

			construntTagString();

			_l1.innerHTML = tagString;

		} else {

			document.getElementById('impression').innerHTML = attentionWord;

		}

		$initialize();

	}

}

