// JavaScript Document

function new_win_about(URL) {
  NewWin = open(URL,'about',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1024,height=600" ); NewWin.focus();
}

function new_win_plus40(URL) {
  NewWin = open(URL,'plus40',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1024,height=680" ); NewWin.focus();
}

function new_win_flip(URL) {
  NewWin = open(URL,'contents',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=950,height=575" );
}

function new_win_gallery(URL) {
  NewWin = open(URL,'gallery',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1000,height=640" );
}

function new_win_gallery2(URL) {
  NewWin2 = open(URL,'gallery2',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1024,height=768" );}

function new_win_gallery3(URL) {
  NewWin3 = open(URL,'gallery3',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1024,height=768" );}

function new_win_ginza10(URL) {
  NewWin = open(URL,'ginza10',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1002,height=680" );
}

function new_win_shibuya10() {
	window.onerror = null;
	var DisplayHeight = screen.height;
	if (DisplayHeight <= 800) {
		URL = '/SHIBUYA10/index_s.html';
		NewWin = open(URL,'shibuya10',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=904,height=678" );
	} else {
		URL = '/SHIBUYA10/index.html';
		NewWin = open(URL,'shibuya10',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1024,height=768" );
	}
}

function new_win_history(URL) {
  if(screen.height >= "768"){  
  	NewWin = open(URL,'history',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1024,height=768" );
	NewWin.focus(); 
  } else {  
	NewWin = open(URL,'history',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=800,height=600" );
	NewWin.focus(); 
  } 
}

function MaxWin(){
	maxWin = window.open("/chokuei_5/index.html","","toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=no");
	maxWin.moveTo(0,0);
	maxWin.resizeTo(screen.availWidth,screen.availHeight);
}

function MaxWin_gallery0811(){
	maxWin = window.open("/gallery/gallery_0811/index.html","","toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=no");
	maxWin.moveTo(0,0);
	maxWin.resizeTo(screen.availWidth,screen.availHeight);
}

function MaxWin_gallery0905(){
	maxWin = window.open("/gallery/gallery_0905/index.html","","toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=no");
	maxWin.moveTo(0,0);
	maxWin.resizeTo(screen.availWidth,screen.availHeight);
}

function new_win_twitter(URL) {
  NewWin = open(URL,'twitter',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=475,height=324" );
}

function new_win_namiki(URL) {
  NewWin = open(URL,'namiki',"toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1024,height=720" );}

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("このページでは \"AC_RunActiveContent.js\" が必要です。");
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // 使用可能なバージョンが検出された場合
		// Flash ムービーの埋め込み
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
			'width', '800',
			'height', '100',
			'src', 'header',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'header',
			'bgcolor', '#babec1',
			'name', 'header',
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','false',
			'movie', '/swf/header',
			'salign', ''
			); //end AC code
	} else {  // Flash が古すぎるか、プラグインを検出できません
		var alternateContent = '<img src="/images/header.jpg" alt="999.9（フォーナインズ）公式ウェブサイト" width="800" height="100" border="0" usemap="#Map" /><map name="Map" id="Map"><area shape="rect" coords="698,26,792,59" href="../pickup/index.html" alt="ピックアップ" /><area shape="rect" coords="603,26,697,59" href="../company/index.html" alt="会社情報" /><area shape="rect" coords="503,26,597,59" href="../about/index.html" alt="999.9について" /><area shape="rect" coords="404,26,498,59" href="../from/index.html" alt="999.9から" /><area shape="rect" coords="309,26,403,59" href="../store/index.html" alt="店舗情報" /><area shape="rect" coords="203,26,308,59" href="../products/index.html" alt="商品カタログ" /><area shape="rect" coords="18,16,174,53" href="../index2.html" alt="HOMEに戻る" /></map>';
		document.write(alternateContent);  // Flash 以外のコンテンツを挿入する
	}
}