
// for FLASH

// <Attributes> & <Parameters>
// play: [true | false]; default: true;
// loop: [true | false]; default: true;
// quality: [low | medium | medium | high | best | autolow | autohigh ]; default: high;
// scale: [showall | noborder | exactfit | noscale]; default: showall;
// salign: [L | R | T | B | TL | TR | BL | BR]; default: 中央（省略）;
// menu: [true | false]; default: true;
// wmode: [window | opaque | transparent]; default: window; 
//   ※ wmode: transparent 対応はWinIEのみ。しかもテキストボックスに日本語入力ができなくなる。よって使用しない。

function FlashEmbed(Page) {

	switch(Page) {
		case 'TOP' :
			SWF = 'index.swf';
			WIDTH = '750';
			HEIGHT = '550';
			LOOP = 'false';
			QUALITY = 'best';
			BGCOLOR = '#ffffff';
		break;
	}
	FlashStr  = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n';
	FlashStr += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"\n';
	FlashStr += ' width="' + WIDTH + '" height="' + HEIGHT + '">\n';
	FlashStr += '\t<param name="movie" value="' + SWF + '">\n';
	FlashStr += '\t<param name="allowScriptAccess" value="sameDomain">\n';
	FlashStr += '\t<param name="loop" value="' + LOOP + '">\n';
	FlashStr += '\t<param name="quality" value="' + QUALITY + '">\n';
	FlashStr += '\t<param name="bgcolor" value="' + BGCOLOR + '">\n';
	FlashStr += '\t<embed\n';
	FlashStr += '\t src="' + SWF + '"\n';
	FlashStr += '\t loop="' + LOOP + '"\n';
	FlashStr += '\t quality="' + QUALITY + '"\n';
	FlashStr += '\t pluginspage="http://www.macromedia.com/go/getflashplayer"\n';
	FlashStr += '\t allowscriptaccess="sameDomain"\n';
	FlashStr += '\t type="application/x-shockwave-flash"\n';
	FlashStr += '\t bgcolor="' + BGCOLOR + '"\n';
	FlashStr += '\t width="' + WIDTH + '" height="' + HEIGHT + '"></embed>\n';
	FlashStr += '</object>\n';

	document.write(FlashStr);

} // End of Function FlashEmbed


