/**********************************************************************
JSAT_HD : js [ flashcheck.js ]

08.12.18
***********************************************************************
a variable : -
a function : flash_xxxx
**********************************************************************/

/* ==================================
 flash_Branch()
================================== */
function flash_Branch(){
	var mRet = flash_checkBrowser();

	if (mRet == 0) {
			document.write('<div id="noFlash">');
			document.write('<div class="inner">');
			document.write('<div id="header" class="clearfix">');
			document.write('<div id="logo"><h1><img src="common/img/img_logo.gif" alt="株式会社スカパーJSATホールディングス" width="386" height="32" /></h1></div>');
			document.write('<div id="headerNavi"><ul>');
			document.write('<li class="firstchild"><a href="/contact/index.html"><img src="common/img/bt_contact.gif" alt="お問い合わせ" width="70" height="14" class="hoverImg" /></a></li>');
			document.write('<li><a href="/sitemap/index.html"><img src="common/img/bt_sitemap.gif" alt="サイトマップ" class="hoverImg" /></a></li>');
			document.write('<li><a href="/en/index.html"><img src="common/img/bt_english.gif" alt="English" class="hoverImg" /></a></li>');
			document.write('</ul></div>');
			document.write('<div id="searchArea"><form name="searchform" action="/cgi-bin/search.cgi" method="get">');
			document.write('<div class="searchText"><input type="text" name="phrase"><input type="hidden" name="perpage" value="10"><input type="hidden" name="order" value="@mdate+NUMD"></div>');
			document.write('<input type="image" src="common/img/bt_search.gif" align="サイト内検索" class="searchBt" />');
			document.write('</form></div></div>');
			document.write('<div id="gNavi" class="clearfix"><ul><li><a href="index.html"><img src="common/img/bt_gnavi1_home_on.jpg" alt="ホーム" width="155" height="45" border="0"  /></a></li>');
			document.write('<li><a href="message/index.html"><img src="common/img/bt_gnavi2_home.jpg" alt="トップメッセージ" width="152" height="45" border="0" class="hoverImg" /></a></li>');
			document.write('<li><a href="company/index.html"><img src="common/img/bt_gnavi3_home.jpg" alt="持株会社について" width="152" height="45" border="0" class="hoverImg" /></a></li>');
			document.write('<li><a href="ir/index.html"><img src="common/img/bt_gnavi4_home.jpg" alt="IR情報" width="152" height="45" border="0" class="hoverImg" /></a></li>');
			document.write('<li><a href="news/index.html"><img src="common/img/bt_gnavi5_home.jpg" alt="ニュースリリース" width="153" height="45" border="0" class="hoverImg" /></a></li></ul></div>');
			document.write('<div id="promotion"><p><img src="common/img/img_main.jpg" alt="Quality for Value 私たちは常にパイオニア精神を持ってサービスの向上を図り、豊かな社会生活の創造に貢献していきます。" width="575" height="76" /></p>');
			document.write('</div></div></div>');
	} else {
		 if (deconcept.SWFObjectUtil.getPlayerVersion ()["major"] >= 7){

			if (AC_FL_RunContent == 0) {
				alert("このページでは \"AC_RunActiveContent.js\" が必要です。");
			} else {
				AC_FL_RunContent(
					'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
					'width', '100%',
					'height', '430',
					'src', 'common/swf/HDtop_jp',
					'quality', 'high',
					'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
					'align', 'middle',
					'play', 'true',
					'loop', 'true',
					'scale', 'showall',
					'wmode', 'window',
					'devicefont', 'true',
					'id', 'common/swf/HDtop_jp',
					'bgcolor', '#ffffff',
					'name', 'common/swf/HDtop_jp',
					'menu', 'false',
					'allowFullScreen', 'false',
					'allowScriptAccess','sameDomain',
					'movie', 'common/swf/HDtop_jp',
					'salign', ''
					); //end AC code
			}

		} else {
			document.write('<div id="noFlash">');
			document.write('<div class="inner">');
			document.write('<div id="header" class="clearfix">');
			document.write('<div id="logo"><h1><img src="common/img/img_logo.gif" alt="株式会社スカパーJSATホールディングス" width="386" height="32" /></h1></div>');
			document.write('<div id="headerNavi"><ul>');
			document.write('<li class="firstchild"><a href="/contact/index.html"><img src="common/img/bt_contact.gif" alt="お問い合わせ" width="70" height="14" class="hoverImg" /></a></li>');
			document.write('<li><a href="/sitemap/index.html"><img src="common/img/bt_sitemap.gif" alt="サイトマップ" class="hoverImg" /></a></li>');
			document.write('<li><a href="/en/index.html"><img src="common/img/bt_english.gif" alt="English" class="hoverImg" /></a></li>');
			document.write('</ul></div>');
			document.write('<div id="searchArea"><form name="searchform" action="/cgi-bin/search.cgi" method="get">');
			document.write('<div class="searchText"><input type="text" name="phrase"><input type="hidden" name="perpage" value="10"><input type="hidden" name="order" value="@mdate+NUMD"></div>');
			document.write('<input type="image" src="common/img/bt_search.gif" align="サイト内検索" class="searchBt" />');
			document.write('</form></div></div>');
			document.write('<div id="gNavi" class="clearfix"><ul><li><a href="index.html"><img src="common/img/bt_gnavi1_home_on.jpg" alt="ホーム" width="155" height="45" border="0"  /></a></li>');
			document.write('<li><a href="message/index.html"><img src="common/img/bt_gnavi2_home.jpg" alt="トップメッセージ" width="152" height="45" border="0" class="hoverImg" /></a></li>');
			document.write('<li><a href="company/index.html"><img src="common/img/bt_gnavi3_home.jpg" alt="持株会社について" width="152" height="45" border="0" class="hoverImg" /></a></li>');
			document.write('<li><a href="ir/index.html"><img src="common/img/bt_gnavi4_home.jpg" alt="IR情報" width="152" height="45" border="0" class="hoverImg" /></a></li>');
			document.write('<li><a href="news/index.html"><img src="common/img/bt_gnavi5_home.jpg" alt="ニュースリリース" width="153" height="45" border="0" class="hoverImg" /></a></li></ul></div>');
			document.write('<div id="promotion"><p><img src="common/img/img_main.jpg" alt="Quality for Value 私たちは常にパイオニア精神を持ってサービスの向上を図り、豊かな社会生活の創造に貢献していきます。" width="575" height="76" /></p>');
			document.write('</div></div></div>');
		}
	}
}


/* ==================================
 flash_checkBrowser()
================================== */
function flash_checkBrowser(){
	var mApp = flash_getNavType();
	var mOS = flash_getOsType();
	var mRet = "PG";

	if( mApp[0] == "InternetExplorer" ){
		if( mOS == "Win" && mApp[1] >= 4 ){
			mRet = "VB";
		}
		else if( mOS == "Win" && mApp[1] < 4 ){
			mRet = "0";
		}
		else if( mOS == "Mac" && mApp[1] < 5 ){
			mRet = "0";
		}
	}
	else if( mApp[0] == "NetscapeCommunicator" ){
		if( mApp[1] < 4 ){
			mRet = 0;
		}
	}
	return mRet;
}

/* ==================================
 flash_getOsType()
================================== */
function flash_getOsType(){
	var mAge = navigator.userAgent;
	var mOsType;
	if( mAge.indexOf("Win") >= 0 ) mOsType = "Win";
	else if( mAge.indexOf("Mac") >= 0 ) mOsType = "Mac";
	return mOsType;
}

/* ==================================
 flash_getNavType()
================================== */
function flash_getNavType(){
	var mAge = navigator.userAgent;
	var mNavType = "other";
	var mNavVer = 0;
	var mArys;

	// Opera
	if( mAge.indexOf( "Opera", 0 ) != -1 ){
		mNavType = "Opera";
		mNavVer = (mAge.split( "Opera" ))[1].substr( 1 , 3 );
	}
	// InternetExplorer
	else if( mAge.indexOf( "MSIE", 0 ) != -1 ){
		mNavType = "InternetExplorer";
		mNavVer = (mAge.split( "MSIE" ))[1].substr( 1 , 3 );
	}
	// Firefox
	else if( mAge.indexOf( "Firefox", 0 ) != -1 ){
		mNavType = "Firefox";
		mNavVer = (mAge.split( "Firefox" ))[1].substr( 1 , 3 );
	}
	// Safari
	else if( mAge.indexOf( "Safari", 0 ) != -1 ){
		mNavType = "Safari";
		if( (mAge.split( "Safari" ))[1].substr( 1 , 3 ) < 312 ){
			mNavVer = 0;     //under version1.3
		}
		else{
			mNavVer = 1;     //over version1.3
		}
	}
	else if( navigator.appName == "Netscape" ){
		// Netscape6
		if( mAge.indexOf( "Netscape6", 0 ) != -1 ){
			mNavType = "Netscape";
			mNavVer = (mAge.split( "Netscape6" ))[1].substr( 1 , 3 );
		}
		// Netscape7+
		else if( mAge.indexOf( "Netscape", 0 ) != -1 ){
			mNavType = "Netscape";
			mNavVer = (mAge.split( "Netscape" ))[1].substr( 1 , 3 );
		}
		// NetscapeCommunicator4+
		else{
			mNavType = "NetscapeCommunicator";
			mNavVer = (mAge.split( "Mozilla" ))[1].substr( 1 , 3 );
		}
	}
	mArys = new Array( mNavType, mNavVer );
	return mArys;
}