﻿/**
 * SWFEmbedder
 * @usage
 * <script type="text/javascript">
 * 	var embedder = new SWFEmbedder();
 * 	embedder.embedLiquid( "ja", "JP" );
 * </script>
 */

var SWFEmbedder = function () {};
SWFEmbedder.prototype = 
{
	'expressinstall'	:	"js/expressinstall.swf",
	'version'		:	"9.0.45",
	'params'	:
	{
		'arrowScriptAccess'	:	"alway",
		'allowFullScreen'	:	"true",
		'quality'		:	"high",
		'bgcolor'		:	"#000000",
		'wmode'			:	"opaque",
		'scale'			:	"noscale",
		'menu'			:	"false"
	},
	
	'swf'		:	'',
	'objectid'	:	'',
	'width'		:	'',
	'height'	:	'',
	'flashvars'	:	{},
	'attributes'	:
	{
		'id'	:	this.objectid,
		'name'	:	this.objectid
	},
	
	'execute'	:	function ()
	{
		swfobject.embedSWF( this.swf, this.objectid, this.width, this.height, this.version, this.expressinstall, this.flashvars, this.params, this.attributes);
	},
	
	'embedLiquid'	:	function( language, locale )
	{
		this.swf = "feb19.swf";
		this.objectid = "flashContent";
		this.width = "100%";
		this.height = "100%";
		this.flashvars.language = language;
		this.flashvars.locale = locale;
		
		this.execute();
	}
	
}