isPlayer = (FlashPlayer.version == "0.0.0" || FlashPlayer.version == "5.0.44") ? false : true;
ver = "9.0.0";

function addTopSWFContents()
{	
	if(isPlayer && !WebKitDetect.isMobile()){
	$(document).ready(function(){$('#mainFlaImg').remove();})
	var so = new SWFObject('top/swf/greenhouse_top.swf', 'flashMovie', '100%', '360', ver, '#B6D91E'); 
	so.useExpressInstall("top/swf/expressinstall.swf");
	so.addParam('menu', 'false');
	so.addParam('scale', 'noScale');
	so.addParam('salign', 'TC');
	so.addParam('allowScriptAccess', 'always');//for Google Analytics
	so.write('flashcontent');
	}else
	{
	//if(WebKitDetect.isMobile()) 
	$(document).ready(function(){$('#mainFlaImg').remove();});
	document.write(
	'<script type="text/javascript" src="top/js/jquery_topVisual.js"></script>',
	'<div id="mainFlaImg"><a id="flaUrl" href="products/index.html"><img src="top/swf/Digital4Human_ver01.jpg" alt="DIGITAL for HUMAN" width="960" height="305" /></a></div>',
	'<div class="topCngBtn">',
	'<ul id="flaImgThumb">',
	'<li class="fla01"><a href="#"><img src="top/img/top_btn_no01.gif" alt="1" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla02"><a href="#"><img src="top/img/top_btn_no02.gif" alt="2" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla03"><a href="#"><img src="top/img/top_btn_no03.gif" alt="3" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla04"><a href="#"><img src="top/img/top_btn_no04.gif" alt="4" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla05"><a href="#"><img src="top/img/top_btn_no05.gif" alt="5" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla06"><a href="#"><img src="top/img/top_btn_no06.gif" alt="6" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla07"><a href="#"><img src="top/img/top_btn_no07.gif" alt="7" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla08"><a href="#"><img src="top/img/top_btn_no08.gif" alt="8" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla09"><a href="#"><img src="top/img/top_btn_no09.gif" alt="9" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla10"><a href="#"><img src="top/img/top_btn_no10.gif" alt="10" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla11"><a href="#"><img src="top/img/top_btn_no11.gif" alt="11" width="15" height="15" class="imgover" /></a></li>',
	'<li class="fla12"><a href="#"><img src="top/img/top_btn_no12.gif" alt="12" width="15" height="15" class="imgover" /></a></li>',
	'</ul></div>');
	}
}

function addProductsSWFContents()
{
	if(isPlayer && !WebKitDetect.isMobile()){
	$(document).ready(function(){$('#productsSearchNoFla').remove();});
	var soSearch = new SWFObject('top/swf/productsSearch.swf', 'externalFlash', '730', '100%', ver, '#FFFFFF');
	soSearch.useExpressInstall("top/swf/expressinstall.swf");
	soSearch.addParam('menu', 'false');
	soSearch.addParam('scale', 'noScale');
	soSearch.addParam('salign', 'TC');
	soSearch.addParam("wmode", "transparent");
	soSearch.addParam('allowScriptAccess', 'always');
	soSearch.write('externalFlash');
	}else
	{
	//if(WebKitDetect.isMobile()) 
	$(document).ready(function(){$('#productsSearchNoFla').remove();});
	document.write(
'<div class="topProductsNoFla clearFix">',
'<h2 class="topLng"><img src="top/img/top_ttl_01.gif" alt="製品を探す デジタルAV機器" width="165" height="15" /></h2>',
'<div class="topProductsSearch">',
'<ul>',
'<li><a href="products/av/digitalaudio/"><img src="top/img_products/top_av_digitalaudio.jpg" alt="デジタルオーディオプレーヤー" width="240" height="59" /></a></li>',
'<li><a href="products/av/bd_dvd/"><img src="top/img_products/top_av_dvd.jpg" alt="DVDプレーヤー" width="240" height="59" /></a></li>',
'<li><a href="products/av/digitalvideocamera/"><img src="top/img_products/top_av_digitalvideocamera.jpg" alt="デジタルビデオカメラ" width="240" height="59" /></a></li>',
'<li><a href="products/av/digitalphotoframe/"><img src="top/img_products/top_av_digitalphotoframe.jpg" alt="デジタルフォトフレーム" width="240" height="59" /></a></li>',
'<li><a href="products/av/popdisplay/"><img src="top/img_products/top_av_popdisplay.jpg" alt="電子POP・デジタルサイネージ" width="240" height="59" /></a></li>',
'<li><a href="products/av/earphone_speaker/"><img src="top/img_products/top_av_earphone_speaker.jpg" alt="イヤホン・スピーカー" width="240" height="59" /></a></li>',
'<li><a href="products/av/tv/"><img src="top/img_products/top_av_tv.jpg" alt="TV周辺機器" width="240" height="59" /></a></li>',
'<li><a href="products/av/fmtransmitter/"><img src="top/img_products/top_av_fmtransmitter.jpg" alt="FMトランスミッター" width="240" height="59" /></a></li>',
'<li><a href="products/av/ipod/"><img src="top/img_products/top_av_ipod.jpg" alt="iPod・iPhone周辺機器" width="240" height="59" /></a></li>',
'<li><a href="products/av/mobilephone/"><img src="top/img_products/top_av_mobilephone.jpg" alt="ケータイ周辺機器" width="240" height="59" /></a></li>',
'<li><a href="products/av/game/"><img src="top/img_products/top_av_game.jpg" alt="ゲーム周辺機器" width="240" height="59" /></a></li>',
'<li><a href="products/av/digitalcamera/"><img src="top/img_products/top_av_digitalcamera.jpg" alt="デジカメ周辺機器" width="240" height="59" /></a></li>',
'</ul>',
'</div>',
'</div>',
'<div class="topProductsNoFla clearFix">',
'<h2 class="topLng"><img src="top/img/top_ttl_02.gif" alt="製品を探す パソコン周辺機器" width="170" height="15" /></h2>',
'<div class="topProductsSearch">',
'<ul>',
'<li><a href="products/pc/memory/"><img src="top/img_products/top_pc_memory.jpg" alt="メモリ" width="240" height="59" /></a></li>',
'<li><a href="products/pc/display/"><img src="top/img_products/top_pc_display.jpg" alt="液晶ディスプレイ" width="240" height="59" /></a></li>',
'<li><a href="products/pc/usbmemory/"><img src="top/img_products/top_pc_usbmemory.jpg" alt="USBフラッシュメモリ" width="240" height="59" /></a></li>',
'<li><a href="products/pc/storage/"><img src="top/img_products/top_pc_storage.jpg" alt="ストレージ" width="240" height="59" /></a></li>',
'<li><a href="products/pc/memorycard/"><img src="top/img_products/top_pc_memorycard.jpg" alt="メモリカード" width="240" height="59" /></a></li>',
'<li><a href="products/pc/cardreader/"><img src="top/img_products/top_pc_cardreader.jpg" alt="カードリーダライタ" width="240" height="59" /></a></li>',
'<li><a href="products/pc/usbvariety/"><img src="top/img_products/top_pc_usbvariety.jpg" alt="USBバラエティグッズ" width="240" height="59" /></a></li>',
'<li><a href="products/pc/supply/"><img src="top/img_products/top_pc_supply.jpg" alt="サプライ" width="240" height="59" /></a></li>',
'<li><a href="products/pc/network/"><img src="top/img_products/top_pc_network.jpg" alt="ネットワーク" width="240" height="59" /></a></li>',
'<li><a href="products/pc/cable_interface/"><img src="top/img_products/top_pc_cable_interface.jpg" alt="ケーブル・インターフェイス" width="240" height="59" /></a></li>',
'<li><a href="products/pc/accessory/"><img src="top/img_products/top_pc_accessory.jpg" alt="PCアクセサリ" width="240" height="59" /></a></li>',
'<li><a href="products/pc/businesstool/"><img src="top/img_products/top_pc_businesstool.jpg" alt="業務支援ツール" width="240" height="59" /></a></li>',
'</ul>',
'</div>',
'</div>',
'<div class="topProductsNoFla clearFix">',
'<h2 class="topLng"><img src="top/img/top_ttl_02_2.gif" alt="製品を探す 生活" width="170" height="15" /></h2>',
'<div class="topProductsSearch">',
'<ul>',
'<li><a href="products/life/led/"><img src="top/img_products/top_life_led.jpg" alt="LED電球" width="240" height="59" /></a></li>',
'<li><a href="products/life/toy/"><img src="top/img_products/top_life_toy.jpg" alt="TOY" width="240" height="59" /></a></li>',
'</ul>',
'</div>',
'</div>'
)	
	}
}

function addNaireSWFContents()
{
	if(isPlayer && !WebKitDetect.isMobile()){
	$(document).ready(function(){$('#naireBannerInner').remove();});
	var soNaire = new SWFObject('top/swf/naire_banner.swf', 'naireBanner', '220', '232', ver, '#FFFFFF');
	soNaire.useExpressInstall("top/swf/expressinstall.swf");
	soNaire.addParam('menu', 'false');
	soNaire.addParam('scale', 'noScale');
	soNaire.addParam('salign', 'TC');
	soNaire.addParam('allowScriptAccess', 'always');//for Google Analytics
	soNaire.write('naireBanner');
	}else
	{
		//if(WebKitDetect.isMobile()) 
		$(document).ready(function(){$('#naireBannerInner').remove();});
		document.write('<a href="naire/index.html"><img src="top/img/top_bnr_naire.jpg" alt="名入れ イズ ワンダホー！デジタル製品のノベルティ" width="220" height="232" /></a>')
	}
}

