if (!window.features){
	var features = {};
}

(function( features ){
	//var $ = jQuery;

	features.Flash = FlashObject;

	function FlashObject () {
		this.src = "swf/index/index.swf";
		this.reqVer = '9.0.124';
		this.replaceObjId = 'flashArea';
		this.enable = false;
		this.init();
	}

	FlashObject.prototype.init = function () {
		if ( !swfobject ) return;
		this.enable = swfobject.hasFlashPlayerVersion(this.reqVer)
	}

	FlashObject.prototype.set = function () {
		if ( this.enable ) {
			this.setEnableCSS();
			this.setFlash();
		}
	}

	FlashObject.prototype.setFlash = function () {
		var flashvars = {};//{ trackdebug:"false" };
		var params = { menu: "false", bgcolor: "#ffffff", wmode:"opaque" };
		var attributes = { id: "featuresSwf", name: "featuresSwf" };
		swfobject.embedSWF(
			this.src,
			this.replaceObjId,
			"100%",
			"894",
			this.reqVer,
			"",
			flashvars,
			params,
			attributes
		);
	}

	FlashObject.prototype.setEnableCSS = function () {
		document.write('<style type="text/css">'
		+'#globalNavigation{display:none}'
		+'#contentsBody{height: 894px;}'
		+'div#headBgImageTray {background: none}'
		+'#contents {width: 100%;}'
		+'#footer {margin-top:0}'
		+'</style>');
	}

})(features);
