/*************** ÇÃ·¡½Ã ºÒ·¯¿À´Â ÇÔ¼ö ****************/
function FlashMainbody(Ftrans,wid,hei) {
	mainbody = "<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='"+ wid +"' height='"+ hei +"'>";
	mainbody += "<param name='movie' value='/swf/"+ Ftrans +"'>";
	mainbody += "<param name='quality' value='high'>";
	mainbody += "<param name='wmode' value='transparent'>";
	mainbody += "<param name='menu' value='false'>";
	mainbody += "<embed src='swf/"+ Ftrans +"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ wid +"' height='"+ hei +"'></embed>"
	mainbody += "</object>";

	//document.body.innerHTML = mainbody;
	document.write(mainbody);
	return;
}

/*************** µ¿¿µ»ó ºÒ·¯¿À´Â ÇÔ¼ö ****************/
function MovieMainbody(file) {
    moviebody = "<embed src='/movie/"+file+"' width='320' height='285'></embed>";
	document.write(moviebody);
	return;
}


/*************** »õÃ¢¿­±â ÇÔ¼ö ****************/
function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
var winscreen = window.open(name, url, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
winscreen.focus();
}

function openscreen(folder) {
  open_window('/screen/'+folder+'/index.asp','gamescreen', 0, 0, 630, 590, 0, 0, 0, 0, 0);	
}

function openmovie(folder) {
  open_window('/movie/'+folder+'/index.asp','gamemovie', 0, 0, 340, 390, 0, 0, 0, 0, 0);	
}


/*************** ¸µÅ© Á¡¼± °¨Ãß´Â ÇÔ¼ö ****************/
function allblur() {
for (i = 0; i < document.links.length; i++)
document.links[i].onfocus = document.links[i].blur;
}
document.onfocusin = allblur;
