function setFlash(url,xmlPath,cssFile,defEntryID,elementHeight){
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // 使用可能なバージョンが検出された場合
	    var defEntryIDPath = '';
	    if(defEntryID != null){ defEntryIDPath = '&defEntryID='+defEntryID; }
	        height = elementHeight ? elementHeight.toString() : "446";
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
        + 'id="timeline"' + 'width="100%" height="' + height + '" style="z-index:-1;"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="'+url+'" /><param name=FlashVars value="xmlPath='+xmlPath+'&cssfile='+cssFile+defEntryIDPath+'" /><param name="quality" value="autolow" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="bgcolor" value="#ffffff" />'
		+ '<embed src="'+url+'" flashvars="xmlPath='+xmlPath+'&cssfile='+cssFile+defEntryIDPath+'" quality="autolow" scale="noscale" salign="l" bgcolor="#ffffff" '
		+ 'width="100%" height="' + height + '" name="timeline" align="middle"'
		+ 'play="true"'
		+ 'loop="false"'
		+ 'quality="high"'
		+ 'style="z-index:-1;"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		$('flashTL').innerHTML = oeTags;
		//document.write(oeTags);   // Flash ムービーの埋め込み
		//$('flashTL').innerHTML = oeTags;
		//return oeTags;
 	} else {  // Flash が古すぎるか、プラグインを検出できません
		var alternateContent = ''
		+ 'このコンテンツには Adobe Flash Player が必要です。'
		+ '<a href=http://www.macromedia.com/go/getflash/>Flash を取得</a>';
		$('flashTL').innerHTML = alternateContent;
		//return alternateContent;
	}
}
function writeFlash(bpcode) { document.write(bpcode); }
function setFlashWithArticle(url,xmlPath,cssFile,defEntryID){
	setFlash(url,xmlPath,cssFile,defEntryID);
	Element.scrollTo($('flashTL'));
}
function setMiniFlash(url,xmlPath,cssFile){ setFlash(url,xmlPath,cssFile,null,280); }

function getTimeline(){ return browserType.IE ? window["timeline"] : document["timeline"]; }
function changeFlashMode(str){ getTimeline().flashChangeMode(str); }
function setColor(id, color){ getTimeline().setColor(id, color); }
function reloadImage(){ getTimeline().reloadImage(); }
function setImageProperty(opacity, align){ getTimeline().setImageProperty(opacity, align); }
function setPanelDisplay(value){ getTimeline().setPanelDisplay(value); }
function flashShowDetail(article_id){ getTimeline().flashShowDetail(article_id); }
