function setSWFTag( swfFilePath , swfWidth , swfHeight , swfAlign , Bgcolor , movieName , FlashVars ){
	_swf_tagcore( swfFilePath , swfWidth , swfHeight , swfAlign , Bgcolor , movieName , FlashVars );
}

// ---------------------------------------------------------------------


function _swf_tagcore( swfFilePath , swfWidth , swfHeight , swfAlign , Bgcolor , movieName , FlashVars ){

	var htmltxt = '';
	
	htmltxt += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	htmltxt += 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
	htmltxt += 'width="' + swfWidth + '" height="' + swfHeight + '" align="' + swfAlign + '" id="' + movieName + '">';
	htmltxt += '<param name="allowScriptAccess" value="sameDomain" />';
	htmltxt += '<param name="movie" value="' + swfFilePath + '" />';
	htmltxt += '<param name="quality" value="high" />';
	htmltxt += '<param name="bgcolor" value="' + Bgcolor + '" />';
	htmltxt += '<param name="menu" value="false" />';
	htmltxt += '<param name="FlashVars" value="' + FlashVars + '" />';
	htmltxt += '<embed FlashVars="' + FlashVars + '" src="' + swfFilePath + '" width="' + swfWidth + '" height="' + swfHeight + '" ';
	htmltxt += 'align="' + swfAlign + '" name="' + movieName +'" quality="high" bgcolor="' + Bgcolor + '" ';
	htmltxt += 'menu="false" swLiveConnect="true" allowScriptAccess="sameDomain" ';
	htmltxt += 'type="application/x-shockwave-flash" ';
	htmltxt += 'pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	htmltxt += '</object>';
	
	document.write( htmltxt );
	
}

/*


*/
function setSWFFunc( movieName , funcName , funcValue ){
	var docObj;
	
	// ブラウザ分岐補正
	if( navigator.appName == "Netscape" ){ 
		docObj = document;
	} else {
		docObj = window;
	}
	
	// MovieObject取得
	var swfObj = docObj[movieName];

	//
	var str = funcName + "<>" + funcValue;

	swfObj.SetVariable( "_root.jswatch.funcSetting" , str );
}

function setSWFAlert( str ){
	alert( str );
}

