// <![CDATA[

function officialEvent(){
	var scrX = window.screen.availWidth;
	var scrY = window.screen.availHeight;

	window.open("http://www.easthokkaido.com/event/index.html", "officialEvent", "left=0,top=0,width="+scrX+",height="+scrY+",scrollbars=no,resizable=no,toolbar=no,menubar=no,location=no,status=no");
	//window.open("http://192.168.0.2/easthokkaido/event/index.html", "officialEvent", "left=0,top=0,width="+scrX+",height="+scrY+",scrollbars=no,resizable=no,toolbar=no,menubar=no,location=no,status=no");
}

/*
"swf"はswfファイルへのパス
"w"はswfのwidth
"h"はswfのheight
"transparentFlag"は背景を等価させるかどうか。"1"で透過、"0"で不透過
"salign"は座標の指定
値	縦位置	横位置
LT	上端	左端
T	上端	中央
RT	上端	右端
L	中央	左端
""	中央	中央
R	中央	右端
LB	下端	左端
B	下端	中央
RB	下端	右端
"scale"は表示方法
「showAll」[すべて表示]縦横比を維持し指定サイズ内にムービー全体を表示。
「noBorder」[枠なし]縦横比を維持し指定サイズいっぱいにムービー全体を表示。
「exactFit」[フィット]ムービーの縦横比が変化し指定サイズにぴったり収まるように表示。
「noScale」[拡大/縮小なし]Flashムービー内で指定されているサイズで表示。伸縮なし。
*/

function displayFlash(swf,w,h,transparentFlag,salign,scale){
	var code = _loadFlash(swf,w,h,transparentFlag,salign,scale);
	document.write(code);
}


/*
"divLabel"はDivのid名
"swf"はswfファイルへのパス
"w"はswfのwidth
"h"はswfのheight
"transparentFlag"は背景を等価させるかどうか。"1"で透過、"0"で不透過
"salign"は座標の指定
値	縦位置	横位置
LT	上端	左端
T	上端	中央
RT	上端	右端
L	中央	左端
""	中央	中央
R	中央	右端
LB	下端	左端
B	下端	中央
RB	下端	右端
"scale"は表示方法
「showAll」[すべて表示]縦横比を維持し指定サイズ内にムービー全体を表示。
「noBorder」[枠なし]縦横比を維持し指定サイズいっぱいにムービー全体を表示。
「exactFit」[フィット]ムービーの縦横比が変化し指定サイズにぴったり収まるように表示。
「noScale」[拡大/縮小なし]Flashムービー内で指定されているサイズで表示。伸縮なし。
*/

function _loadFlash(swf,w,h,transparentFlag,salign,scale) {
	var code = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + w + '" height="' + h + '">';
	code += '<param name="allowScriptAccess" value="sameDomain" />';
	code += '<param name="movie" value="' + swf + '" />';
	code += '<param name="quality" value="high" />';
	code += '<param name="menu" value="false" />';
	code += '<param name="scale" value="' + scale + '">';
	code += '<param name="salign" value="' + salign + '" />';

	if(transparentFlag) {
		code += '<param name="wmode" value="transparent" />';
	}

	code += '<embed src="' + swf + '" quality="high" menu="false" scale="' + scale + '" salign="' + salign + '" ';

	if(transparentFlag) {
		code += 'wmode="transparent" ';
	}

	code += 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '"></embed>';
	code += '</object>';

	return code;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  var w = window.open(theURL,winName,features);
  w.focus();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

// ]]>

