// JavaScript Document

function flash_view(swf, width, height) {
	var html=""
	html += "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
	html += " codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'"
	html += " WIDTH=" + width
	html += " HEIGHT=" + height + ">"
	html += "<PARAM NAME=movie VALUE=" + swf + ">"
	html += "<PARAM NAME=quality VALUE=high>"
	html += "<EMBED src=" + swf +""
	html += " quality=high"
	html += " WIDTH=" + width 
	html += " HEIGHT=" + height
	html += " TYPE='application/x-shockwave-flash'"
	html += " PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>"
	html += "</EMBED>"
	html += "</OBJECT>"
	
	document.write(html);
	document.close();
}	

function OpenFig(title, fig, w, h){
	var winFig;
	var width = w;
	var height = h;
	
	//指定ウィンドウサイズがスクリーンサイズより大きいときはサイズ設定を変更する。
	if(width >= (screen.width - 80) || width <= 100){
		width = (screen.width * 0.85);
	}
	if(height >= (screen.height - 10) || height <= 100){
		height = (screen.height * 0.85);
	}
	
	//ウィンドウの生成。
	winFig = window.open("","FigWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=480,screenX=80,screenY=10");
	winFig.resizeTo(width, height);
	winFig.focus();
		
	winFig.document.writeln('<html>\n');
	winFig.document.writeln('<head>\n');
	winFig.document.writeln('<title>'+title+'</title>\n');
	winFig.document.writeln('</head>\n');
	winFig.document.writeln('<body bgcolor="white" text=#eeeeee link="blue" vlink=#ccaaff>\n');
	winFig.document.writeln('<center>\n');
	winFig.document.writeln('<img src="'+fig+'">\n');
	winFig.document.writeln('<br /><a href="javascript:void(0)" onClick="window.close()">ウィンドウを閉じる</a>\n');
	winFig.document.writeln('</center>\n');
	winFig.document.writeln('</body>\n');
	winFig.document.writeln('</html>\n');
	winFig.document.close();
}

/*マウスオーバー画像切り替え*/
function chImg(img, str){
	document.images[img].src = str;
}

/*ダウンロード／プルダウンメニュー*/
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
