var subwin;
function openMovie(fileName){
	subwin = window.open("","subWin","width=340,height=320");
	subwin.document.open();
	subwin.document.write("<html><head><title>サンプルムービー<\/title><\/head><body style='padding:0; margin:0;'><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,0,0' width='340' height='320' id='test' align='middle'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='\/swf\/flvplayer.swf?file=" + fileName + "'><param name='quality' value='high'><param name='bgcolor' value='#ffffff'><embed src='\/swf\/flvplayer.swf?file=" + fileName + "' quality='high' bgcolor='#ffffff' width='340' height='320' align='middle' allowScriptAccess='sameDomain' type='application\/x-shockwave-flash' pluginspage='http:\/\/www.macromedia.com\/go\/getflashplayer'><\/object><\/body><\/html>");
	subwin.document.close();
	subwin.focus();
}

function openSubWin(fileName){
	subwin = window.open("","subWin","width=420,height=360");
	subwin.document.open();
	subwin.document.write(
		"<html>",
		"<head>",
		"<title>サンプルムービー<\/title>",
		"<\/head>",
		"<body style='text-align:center; margin:10px; background:#EDF3EA;'>",
		"<table border='0' cellspacing='0' cellpadding='0'>",
		"<tr>",
		"<td colspan='3' width='352' height='6'><img src='\/FLC\/_common\/sample\/box_top.gif' alt='' width='352' height='6'><\/td>",
		"<\/tr>",
		"<tr>",
		"<td width='6' style='background:url(\/FLC\/_common\/sample\/box_left.gif) repeat-y'><img src='\/FLC\/_common\/img\/spacer.gif' width='6' height='1' alt=''><\/td>",
		"<td width='340' style='text-align:center; background:#FFF;'>",
		"<div><img src='\/FLC\/_common\/img\/spacer.gif' width='1' height='10' alt=''><\/div>",
		"<table border='0' cellspacing='0' cellpadding='0' width='322'>",
		"<tr>",
		"<td width='273'><img src='\/FLC\/_common\/sample\/title.gif' alt='SAMPLE MOVIE' width='273' height='13'><\/td>",
		"<td width='2'><img src='\/FLC\/_common\/img\/spacer.gif' width='2' height='1' alt=''><\/td>",
		"<td width='47'><a href='Javascript:close();'><img src='\/FLC\/_common\/sample\/close.gif' alt='CLOSE' width='47' height='13' border='0'><\/a><\/td>",
		"<\/tr>",
		"<\/table>",
		"<div><img src='\/FLC\/_common\/img\/spacer.gif' width='1' height='10' alt=''><\/div>",
		"<table width='320' border='0' cellspacing='0' cellpadding='0' style='border:1px solid #999;'>",
		"<tr>",
		"<td>",
		"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,29,0' width='320' height='240'>",
		"<param name='movie' value='\/swf\/player.swf?file=" + fileName + "'>",
		"<param name='quality' value='high'>",
		"<param name='wmode' value='opaque'>",
		"<param name='LOOP' value='false'>",
		"<param name='menu' value='false'>",
		"<embed src='\/swf\/player.swf?file=\/FLC\/swf\/" + fileName + "' width='320' height='240' loop='false' quality='high' pluginspage='http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application\/x-shockwave-flash'><\/embed>",
		"<\/object><\/td>",
		"<\/tr>",
		"<\/table>",
		"<div><img src='\/FLC\/_common\/img\/spacer.gif' width='1' height='10' alt=''><\/div>",
		"<\/td>",
		"<td width='6' style='background:url(\/FLC\/_common\/sample\/box_right.gif) repeat-y'><img src='\/FLC\/_common\/img\/spacer.gif' width='6' height='1' alt=''><\/td>",
		"<\/tr>",
		"<tr>",
		"<td colspan='3'><img src='\/FLC\/_common\/sample\/box_bottom.gif' alt='' width='352' height='6'><\/td>",
		"<\/tr>",
		"<\/table>",
		"<\/body>",
		"<\/html>"
		);
	subwin.document.close();
	subwin.focus();
}