//ポップアップ制御var sw;var Astr;var w;var h;var browser;//HTML表示function pop(url,w,h){ if(!w) w = ""; if(!h) h = ""; if(!url) url = ""; Point(w,h,'',''); subwin = window.open(url,'window1',Astr); if(sw){ subwin.window.scrollTo(0, 0); }}//映像表示function video(url,w,h){ if(!w) w = ""; if(!h) h = ""; if(!url) url = ""; Point(w,h,'',''); subwin = window.open('','',Astr); subwin.document.open(); subwin.document.write( "<ht" + "ml><he" + "ad>\n"); subwin.document.write( "<title></title>\n"); subwin.document.write( "<style type='text/css'>\n"); subwin.document.write( "<!--\n"); subwin.document.write( "body { margin: 0px }\n"); subwin.document.write( "-->\n"); subwin.document.write( "</style>\n"); //「X」キーを押下時、ウィンドウをクローズ subwin.document.write( "<script type='text/javascript'>\n"); subwin.document.write( "<!--\n"); subwin.document.write( "listenKey()\n"); subwin.document.write( "function getKey(e) {\n"); subwin.document.write( " if (e == null) { keycode = event.keyCode }\n"); subwin.document.write( " else { keycode = e.which }\n"); subwin.document.write( " key = String.fromCharCode(keycode).toLowerCase()\n"); subwin.document.write( " if (key == 'x') { window.close() }\n"); subwin.document.write( "}\n"); subwin.document.write( "function listenKey() {\n"); subwin.document.write( " document.onkeypress = getKey\n"); subwin.document.write( "}\n"); subwin.document.write( "//-->\n"); subwin.document.write( "</script>\n"); subwin.document.write( "</he" + "ad>\n"); subwin.document.write( "<body bgcolor='#000000' oncontextmenu='return false'>\n"); subwin.document.write( "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'>\n"); subwin.document.write( "<tr><td align='center'>\n"); if(browser == "ie"){  //ビデオサイズ  subwin.document.write( "<object id='player' width='" + w + "' height='" + h + "' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>\n");  //ビデオファイル  subwin.document.write( "<param name='URL' value='" + url + "'>\n");  //オートスタート  subwin.document.write( "<param name='autoStart' value='true'>\n");  //再生回数  subwin.document.write( "<param name='PlayCount' value='1'>\n");  //プレイメニュー表示  subwin.document.write( "<param name='enableContextMenu' value='false'>\n");  subwin.document.write( "<param name='uiMode' value='full'>\n");  subwin.document.write( "<param name='stretchToFit' value='false'>\n");  subwin.document.write( "<param name='windowlessvideo' value='false'>\n");  subwin.document.write( "</object>\n"); } else {  //ビデオファイル  subwin.document.write( "<embed src='" + url + "'></embed>\n"); } subwin.document.write( "</td></tr>\n"); subwin.document.write( "</table>\n"); subwin.document.write( ""); subwin.document.write( "</bo" + "dy></ht" + "ml>"); subwin.document.close();}//画像表示function pview(url,name){ if(!url) url = ""; if(!name) name = ""; Point('','',url,name); subwin = window.open('','',Astr); subwin.document.open(); subwin.document.write( "<ht" + "ml><he" + "ad>\n"); subwin.document.write( "<meta http-equiv='Content-Type' content='text/html; charset=Shift_JIS'>\n"); subwin.document.write( "<meta http-equiv='imagetoolbar' content='no'>\n"); subwin.document.write( "<title></title>\n"); subwin.document.write( "<style type='text/css'>\n"); subwin.document.write( "<!--\n"); if(name == "") {  subwin.document.write( "body { margin: 0px }\n"); } else {  subwin.document.write( "body { margin: 18px; font-size: 11pt; color: #ffffff; }\n"); } subwin.document.write( "-->\n"); subwin.document.write( "</style>\n"); //「X」キーを押下時、ウィンドウをクローズ subwin.document.write( "<script type='text/javascript'>\n"); subwin.document.write( "<!--\n"); subwin.document.write( "listenKey()\n"); subwin.document.write( "function getKey(e) {\n"); subwin.document.write( " if (e == null) { keycode = event.keyCode }\n"); subwin.document.write( " else { keycode = e.which }\n"); subwin.document.write( " key = String.fromCharCode(keycode).toLowerCase()\n"); subwin.document.write( " if (key == 'x') { window.close() }\n"); subwin.document.write( "}\n"); subwin.document.write( "function listenKey() {\n"); subwin.document.write( " document.onkeypress = getKey\n"); subwin.document.write( "}\n"); subwin.document.write( "//-->\n"); subwin.document.write( "</script>\n"); subwin.document.write( "</he" + "ad>\n"); subwin.document.write( "<body bgcolor='#000000' oncontextmenu='return false'>\n"); subwin.document.write( "<center>\n"); if(name == "") {  subwin.document.write( "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'>\n");  subwin.document.write( "<tr>\n");  subwin.document.write( "<td align='center'><img src='" + url + "' width='" + w + "' height='" + h + "' border='0' onClick='window.close()' alt='クリックすると閉じます'></td>\n");  subwin.document.write( "</tr>\n");  subwin.document.write( "</table>\n"); } else {  subwin.document.write( "<table border='1' cellpadding='0' cellspacing='0'>\n");  subwin.document.write( "<tr>\n");  subwin.document.write( "<td align='center'><img src='" + url + "' width='" + w + "' height='" + h + "' border='0' onClick='window.close()' alt='クリックすると閉じます'></td>\n");  subwin.document.write( "</tr>\n");  subwin.document.write( "</table>\n");  subwin.document.write( "<br>" + name + "\n"); } subwin.document.write( "</center>\n"); subwin.document.write( ""); subwin.document.write( "</bo" + "dy></ht" + "ml>"); subwin.document.close();}//POINTfunction Point(pw,ph,purl,pname){ sw = 0; if(purl != "") {  g = new Image();  g.src = purl;  if(g.width > 0) {   w  = g.width;   pw = g.width;  } else {   w  = 640;   pw = 640;  }  if(g.height > 0) {   h  = g.height;   ph = g.height;  } else {   h  = 428;   ph = 428;  } } if(pname == "") {  scw = pw;  sch = ph; } else {  scw = pw + 40;  sch = ph + 70; } if( navigator.appName.indexOf("Microsoft") > -1 ){  browser = "ie"; } else {  browser = "other"; } if(!!window.screen){  ScreenWIDTH = screen.width; } else {  ScreenWIDTH = 0; } if(!!window.screen){  ScreenHEIGHT = screen.height; } else {  ScreenHEIGHT = 0; } if(scw <= ScreenWIDTH){  Pwscr = (ScreenWIDTH - scw) / 2; } else {  sw = 1; scw = 640; } if(sch <= ScreenHEIGHT){  Phscr = (ScreenHEIGHT - sch) / 2; } else {  sw = 1; sch = 428; } if(sw){  str = ",left=0,top=0,screenX=0,screenY=0,scrollbars=yes,resizable=yes"; } else {  str = ",left=" + Pwscr + ",top=" + Phscr + ",screenX=0,screenY=0,scrollbars=no,resizable=no"; } Astr = "width=" + scw + ",height=" + sch + str;}//音声再生制御function Play(id1,id2){ id1.CurrentPosition = 0; id1.play(); id2.style.color = "#ff0000";}function Stop(id1,id2){ id1.stop(); id2.style.color = "#000000";}