<!--
function changeButton(obj, varType){
	//オブジェクト名を取得
	var varObjName = obj.name;
	//白→赤
	if (varType == 1){
		document.all[varObjName].src = "./image/" + varObjName + "_d.jpg";
	//赤→白
	}else if (varType == 2){
			document.all[varObjName].src = "./image/" + varObjName + ".jpg";
		}
}
function openWindow(url) {
	var w = 600;
	var h = 500;
	var x = (screen.width  - w) / 2
	var y = (screen.height - h) / 2
	var win = window.open(url, 'new_win',
		+ " toolbar=0"
		+ ",location=0"
		+ ",directories=0"
		+ ",status=0"
		+ ",menubar=0"
		+ ",scrollbars=0"
		+ ",resizable=0"
		+ ",width="  + w
		+ ",height=" + h
		+ ",left="   + x
		+ ",top="    + y
		)
	win.focus();
}

function header_flash(){
	document.write('<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="840" height="120">');
	document.write('<param name="movie" value="../img/p/menu.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="840" height="120"></embed>');
	document.write('</object>');
}


function top_flash(){
	document.write('<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="620" 	height="290">');
	document.write('<param name="movie" value="../img/p/main_fla.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/main_fla.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="620" height="290"></embed>');
	document.write('</object>');
}

function category_flash(){
	document.write('<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="811" height="216">');
	document.write('<param name="movie" value="../img/p/category.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/category.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="811" height="216"></embed>');
	document.write('</object>');
}

function category2_flash(){
	document.write('<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="160" height="500">');
	document.write('<param name="movie" value="../img/p/category2.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/category2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="500"></embed>');
	document.write('</object>');
}

function footer_flash(){
	document.write('<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="950" height="75">');
	document.write('<param name="movie" value="../img/p/footer.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/footer.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="950" height="75"></embed>');
	document.write('</object>');
}

function login_flash(){
	document.write('<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="950" height="27">');
	document.write('<param name="movie" value="../img/p/loginMenu.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/loginMenu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="950" height="27"></embed>');
	document.write('</object>');
}

function topMain_flash(){
	document.write('<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="811" height="430">');
	document.write('<param name="movie" value="../img/p/topMain.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/topMain.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="811" height="430"></embed>');
	document.write('</object>');
}

function topMainMovie(){
	document.write('<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="811" height="430">');
	document.write('<param name="movie" value="../img/p/topMainMovie.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/topMainMovie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="811" height="430"></embed>');
	document.write('</object>');
}

function ilistMenu(){
	document.write('<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="635" height="15">');
	document.write('<param name="movie" value="../img/p/ilistMenu.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../img/p/ilistMenu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="635" height="15"></embed>');
	document.write('</object>');
}



function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		menu_02_over = newImage("../img/p/menu_02-over.jpg");
		menu_03_menu_02_over = newImage("../img/p/menu_03-menu_02_over.jpg");
		menu_04_menu_02_over = newImage("../img/p/menu_04-menu_02_over.jpg");
		menu_05_menu_02_over = newImage("../img/p/menu_05-menu_02_over.jpg");
		menu_06_menu_02_over = newImage("../img/p/menu_06-menu_02_over.jpg");
		menu_07_menu_02_over = newImage("../img/p/menu_07-menu_02_over.jpg");
		menu_08_menu_02_over = newImage("../img/p/menu_08-menu_02_over.jpg");
		menu_09_menu_02_over = newImage("../img/p/menu_09-menu_02_over.jpg");
		menu_10_menu_02_over = newImage("../img/p/menu_10-menu_02_over.jpg");
		menu_11_menu_02_over = newImage("../img/p/menu_11-menu_02_over.jpg");
		preloadFlag = true;
	}
}

// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


-->
