var LoadSwf = function () {};
LoadSwf.prototype =
{
	'exinstall'	: "/common/images/swf/swfobject/expressInstall.swf",
	'varsion' : "9.0.0",
	
	'params' :
	{
		'allowScriptAccess' : "always",
		'allowFullScreen'   : "false",
		'quality'           : "high",
		'bgcolor'           : "#131313",
		'wmode'             : "transparent"
	},
	
	'swffile'    : '',
	'objectid'   : '',
	'width'      : '',
	'height'     : '',
	'flashvars'  : {},
	'attributes' : {},
	
	'execute' : function ()
	{
		swfobject.embedSWF( this.swffile, this.objectid, this.width, this.height, this.varsion, this.exinstall, this.flashvars, this.params, this.attributes);
	},
	
	'execute2' : function ( swffile, objectid, width, height, varsion, exinstall, flashvars, params, attributes)
	{
		swfobject.embedSWF( swffile, objectid, width, height, varsion, exinstall, flashvars, params, attributes);
	},
	
	'IndexMovie' : function ( language, locale)
	{
		this.swffile	= "/common/images/swf/home/mainbanner.swf";
		this.objectid	= "index_flash";
		this.width		= "980";
		this.height		= "278";
		this.flashvars.language	= language;
		this.flashvars.locale	= locale;
		this.params.bgcolor   = "#000000";
		this.execute ();
	},
	
	'MoviePlayer' : function (language, flv, jpg, wmv, wmv_caption, mov, mov_caption, mov_width, mov_height)
	{
		this.swffile	= "/common/images/swf/common/videoplayer.swf";
		this.objectid	= "title_link_movie";
		this.width		= "580";
		this.height		= "380";
		this.flashvars.language		= language;
		this.flashvars.flv			= flv;
		this.flashvars.jpg			= jpg;
		this.flashvars.wmv			= wmv;
		this.flashvars.wmv_caption	= wmv_caption;
		this.flashvars.mov			= mov;
		this.flashvars.mov_caption	= mov_caption;
		this.flashvars.mov_width	= mov_width;
		this.flashvars.mov_height	= mov_height;
		this.params.allowFullScreen   = "true";
		this.params.bgcolor   = "#000000";
		
		this.execute ();
	},
	
	'GttvTopFlash' : function ( language, locale, special, topgear, option, d1gp, supergt, bestm)
	{
		this.swffile	= "/common/images/swf/tv/index.swf";
		this.objectid	= "gttv_top_flash";
		this.width		= "580";
		this.height		= "226";
		this.flashvars.language	= language;
		this.flashvars.locale	= locale;
		this.flashvars.special	= special;
		this.flashvars.topgear	= topgear;
		this.flashvars.option	= option;
		this.flashvars.d1gp		= d1gp;
		this.flashvars.supergt	= supergt;
		this.flashvars.bestm	= bestm;
		
		this.execute ();
	},
	
	'PsnObject' : function ( language, online_id, locale_url)
	{
		this.swffile	= "/local/"+locale_url+"/images/swf/header/header.swf";
		this.objectid	= "header_psn_object";
		this.width		= "720";
		this.height		= "34";
		this.flashvars.language = language;
		this.flashvars.PS3      = isPS3();
		this.flashvars.ID       = online_id;
		this.flashvars.locale   = locale_url;
		
		this.execute ();
	},
	
	'RankingComponent' : function (locale, ranking_text, error_text)
	{
		this.swffile	= "/common/images/swf/component/ranking.swf";
		this.objectid	= "ranking_component";
		this.width		= "180";
		this.height		= "242";
		this.flashvars.locale  = locale;
		this.flashvars.ranking = ranking_text;
		this.flashvars.error   = error_text;
		
		this.execute ();
	},
	
	'NetworkClock' : function ( language, game, psn)
	{
		this.swffile	= "/common/images/swf/component/clock.swf";
		this.objectid	= "network_clock";
		this.width		= "180";
		this.height		= "180";
		this.flashvars.language = language;
		this.flashvars.game = game;
		this.flashvars.psn  = psn;
		
		this.execute ();
	},
	
	'ListDate' : function ( genre, month, date, language, id)
	{
		var swffile	= "/common/images/swf/common/date.swf";
		var objectid	= id;
		var width		= "180";
		var height		= "30";
		var flashvars = {};
		flashvars.genre    = genre;
		flashvars.month    = month;
		flashvars.date     = date;
		flashvars.language = language;
		
		this.execute2 (swffile, objectid, width, height, this.varsion, this.exinstall, flashvars, this.params, this.attributes);
	},
	
	'blogDate' : function (id, date)
	{
		var swffile	= "/common/images/swf/blog/date.swf";
		var objectid	= id;
		var width		= "260";
		var height		= "20";
		var flashvars   = {};
		flashvars.date = date;
		
		this.execute2 (swffile, objectid, width, height, this.varsion, this.exinstall, flashvars, this.params, this.attributes);
	},
	
	'CarmediaTop' : function ( jpg, number, price, date, release, link_url)
	{
		this.swffile	= "/common/images/swf/carmedia/index.swf";
		this.objectid	= "carmedia_top";
		this.width		= "580";
		this.height		= "250";
		
		this.execute ();
	},
	
	'CarmediaCategoryTop' : function ( jpg, number, price, date, release, link_url)
	{
		this.swffile	= "/common/images/swf/carmedia/category.swf";
		this.objectid	= "carmedia_category_top";
		this.width		= "220";
		this.height		= "200";
		this.flashvars.jpg      = jpg;
		this.flashvars.number   = number;
		this.flashvars.price    = price;
		this.flashvars.date     = date;
		this.flashvars.release  = release;
		this.flashvars.link_url = link_url;
		
		this.execute ();
	},
	
	'CarmediaDetail' : function ( article_id)
	{
		this.swffile	= "/common/images/swf/carmedia/detail.swf";
		this.objectid	= "carmedia_detail";
		this.width		= "580";
		this.height		= "520";
		this.flashvars.article_id = article_id;
		this.params.allowFullScreen   = "true";
		this.execute ();
	},
	
	'getCardetailsPopup' : function (car_id, gtcom_region)
	{
		var locale_url = "";
		if(gtcom_region=="eu")
		{
			locale_url="gb";
		}
		else
		{
			locale_url = gtcom_region;
		}
		return '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="620" height="270" id="date" align="middle">\
		<param name="allowScriptAccess" value="sameDomain" />\
		<param name="allowFullScreen" value="false" />\
		<param name="FlashVars" value="carID='+car_id+'&locale='+locale_url+'&flv=1" />\
		<param name="movie" value="/common/images/swf/products/car.swf" />\
		<param name="quality" value="high" />\
		<param name="bgcolor" value="#131313" />\
		<param name="wmode" value="transparent">\
		<embed src="/common/images/swf/products/car.swf" quality="high" bgcolor="#131313" width="620" height="270" wmode="transparent" name="date" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="carID='+car_id+'&locale='+locale_url+'&flv=1" />\
		</object>';
	}
}
/*
jpg=../binary/images/$category_top.getIndex_banner_image()&
	number=$category_top.getTitle_number()&
	price=??$category_top.getPrice()?~&
	date=$date.format("MM??dd??",$category_top.user_create_time)????&
	release=0&
	link_url=/jp/carmedia/d${category_top.id}c${category_top.category_id}.html
*/	

function flushOutput_products_collaborations() {
	var version = deconcept.SWFObjectUtil.getPlayerVersion();
	if(version["major"] < 6){
		document.write('<img id="centering" usemap="#plugins" src="/jp/images/swf/flash_plugin_black.gif" border="0" /><map name="plugins" id="pulugins"><area shape="rect"coords="122,124,261,138" href="http://www.adobe.com/jp/products/flashplayer/" /></map>');
	}
	else {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%" id="collaborations" align="middle">');
	document.write('<param name="movie" value="/jp/images/swf/20070717_collaborations/index3.swf" />');
	document.write('<embed src="/local/jp/data2/event/20070717_collaborations/index3.swf" quality="high" bgcolor="#000000" width="100%" height="100%" name="collaborations" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	}
}