// topページflash用

Event.observe(window, 'load', onLoad, false);

function onLoad(){
	onResize();
	Event.observe(window, 'resize', onResize, false);
}

function onResize(){
	gbs = getWindowHeight();

	sbs = (gbs<610)?'610px':gbs+'px';
	$('flash').height = sbs;
	if($('flashe')) $('flashe').height = sbs;
}

function getWindowHeight(){
  if(window.innerHeight) return window.innerHeight; // Mozilla, Opera, NN4
  if(document.documentElement && document.documentElement.clientHeight){ // 以下 IE
   return document.documentElement.clientHeight;
  }
  else if(document.body && document.body.clientHeight){
   return document.body.clientHeight;
  }
  return 0;
}

function out(){
	document.write('<object id="flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="master" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="index.swf?v=5" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed id="flashe" src="index.swf?v=5" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="master" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}