var i = 0;
var loadFlag = 0;
var imgLoadList = new Array(
"/_common/chgimg/products_o.gif",
"/_common/chgimg/services_o.gif",
"/_common/chgimg/corporate_o.gif",
"/_common/chgimg/contact_o.gif",
"/_common/chgimg/shop_o.gif",
"/_common/chgimg/legal_o.gif",
"/_common/chgimg/privacy_o.gif",
"/_common/chgimg/m_home_o.gif",
"/_common/chgimg/m_products_o.gif",
"/_common/chgimg/m_services_o.gif",
"/_common/chgimg/m_corporate_o.gif",
"/_common/chgimg/m_contact_o.gif",
"/_common/chgimg/m_shop_o.gif"
);

//onLoad
function initImg() {
	loadImg = new Array ();
	for (i in imgLoadList) {
		loadImg[i] = new Image();
		loadImg[i].src = imgLoadList[i];
	}
	loadFlag = 1;
}

function chgImg(arg1,arg2) {
	if ( loadFlag && arg1 && arg2 ) {
		document.images[arg1].src = arg2;
	}
}


var subwin;
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='\/_common\/sample\/box_top.gif' alt='' width='352' height='6'><\/td>",
		"<\/tr>",
		"<tr>",
		"<td width='6' style='background:url(\/_common\/sample\/box_left.gif) repeat-y'><img src='\/_common\/img\/spacer.gif' width='6' height='1' alt=''><\/td>",
		"<td width='340' style='text-align:center; background:#FFF;'>",
		"<div><img src='\/_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='\/_common\/sample\/title.gif' alt='SAMPLE MOVIE' width='273' height='13'><\/td>",
		"<td width='2'><img src='\/_common\/img\/spacer.gif' width='2' height='1' alt=''><\/td>",
		"<td width='47'><a href='Javascript:close();'><img src='\/_common\/sample\/close.gif' alt='CLOSE' width='47' height='13' border='0'><\/a><\/td>",
		"<\/tr>",
		"<\/table>",
		"<div><img src='\/_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=" + 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='\/_common\/img\/spacer.gif' width='1' height='10' alt=''><\/div>",
		"<\/td>",
		"<td width='6' style='background:url(\/_common\/sample\/box_right.gif) repeat-y'><img src='\/_common\/img\/spacer.gif' width='6' height='1' alt=''><\/td>",
		"<\/tr>",
		"<tr>",
		"<td colspan='3'><img src='\/_common\/sample\/box_bottom.gif' alt='' width='352' height='6'><\/td>",
		"<\/tr>",
		"<\/table>",
		"<\/body>",
		"<\/html>"
		);
	subwin.document.close();
	subwin.focus();
}
