function WriteObj()
{
	
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="780" height="250">\n');
    document.write('<param name="movie" value="swf/top.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="swf/top.swf" quality="high" type="application/x-shockwave-flash" width="780" height="250"  pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\n');
    document.write('</object>\n');
	
	//document.write('<img src="img/dummy.jpg" width="780" height="230" />\n');
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function PrintBtn() {
	/* print() が使えるブラウザかどうかを先に判断しておく */
	if (navigator.userAgent.match(/msie (\d)/i))
		v = (eval(RegExp.$1) >= 5) ? 1 : 0;
	else if (self.innerWidth)
		v = (eval(navigator.appVersion.charAt(0)) >= 4) ? 1 : 0;
	else v = 0;


	/* print() が使えるブラウザなら印刷ボタンを表示 */
	if (v){
		document.write('<form action="index.htmlq=print" method="POST">');
		document.write('<input type="button" onClick="PrintOut()" name="print" value="画面を印刷する" />');
		document.write('</form>');
	}else{
		document.write('<p>ブラウザのメニューから印刷をしてください。</p>');
	}
}

function PrintOut() {
   /* print() が使えるブラウザなら印刷を実行 */
	self.print();
	location.href = "?q=print";
}
