//////////////////////////////////////////////////////////////////////////////////////////
//	ÀÍ½ºÇÃ·Î¾î ÆÐÄ¡ ´ëÀÀ ÇÃ·¡½¬ Ãâ·ÂÄÚµå
//	function printFlash(flash, width, height)
//	flash : ÇÃ·¡½¬ ¼Ò½º °æ·Î
//	width : ÇÃ·¡½¬ ³ÐÀÌ
//	height : ÇÃ·¡½¬ ³ôÀÌ
//
//	Example )
//	<SCRIPT language="JavaScript">printFlash("flash/m_menu.swf", 500, 400);</SCRIPT>
//////////////////////////////////////////////////////////////////////////////////////////
function printFlash(flash, width, height, transparent) {
	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='"+width+"' height='"+height+"'>");
	document.write("<PARAM name='movie' value='"+flash+"'>");
	document.write("<PARAM name='quality' value='high'>");
		if(transparent)
					document.write(" <param name='wmode' value='transparent'>");
	document.write("<EMBED src='"+flash+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></EMBED></OBJECT>");
}
function printFlashMov(flash, width, height, transparent) {
	document.write("<OBJECT id='mo' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
	document.write("<PARAM name='movie' value='"+flash+"'>");
	document.write("<PARAM name='quality' value='high'>");
		if(transparent)
					document.write(" <param name='wmode' value='transparent'>");
	document.write("<EMBED src='"+flash+"' name='mo' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></EMBED></OBJECT>");
}
function printFlashMov2(flash, width, height, transparent) {
	document.write("<OBJECT id='mo2' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
	document.write("<PARAM name='movie' value='"+flash+"'>");
	document.write("<PARAM name='quality' value='high'>");
		if(transparent)
					document.write(" <param name='wmode' value='transparent'>");
	document.write("<EMBED src='"+flash+"' name='mo' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></EMBED></OBJECT>");
}
function printFlashMovMiddle(flash, width, height, transparent) {
	document.write("<OBJECT id='mnew' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
	document.write("<PARAM name='movie' value='"+flash+"'>");
	document.write("<PARAM name='quality' value='high'>");
		if(transparent)
					document.write(" <param name='wmode' value='transparent'>");
	document.write("<EMBED src='"+flash+"' name='mo' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></EMBED></OBJECT>");
}

var playOrPause = 1;
var playOrPause2 = 1;

function mov(inputValue){
	if(inputValue == 'on'){
		playOrPause = 1;
		document.getElementById("movPlay2").style.display = "none";
		document.getElementById("movPlay").style.display = "block";
		movPlay();
	}else if(inputValue == 'off'){
		playOrPause = 1;
		stopPlay();
		document.all.movPlay.style.display = "none";
	}
}

function mov2(inputValue){
	if(inputValue == 'on'){
		playOrPause = 1;
		document.getElementById("movPlay").style.display = "none";
		document.getElementById("movPlay2").style.display = "block";
		movPlay2();
	}else if(inputValue == 'off'){
		playOrPause2 = 1;
		stopPlay2();
		document.getElementById("movPlay2").style.display = "none";
	}
}

function movPlay(){
	if(playOrPause == 1){mo.Play(); playOrPause = 2;}
	else if(playOrPause == 2){mo.StopPlay(); playOrPause = 1;}
}

function movPlay2(){
	if(playOrPause2 == 1){mo2.Play(); playOrPause2 = 2;}
	else if(playOrPause2 == 2){mo2.StopPlay(); playOrPause2 = 1;}
}

function stopPlay(){
		playOrPause = 1;
		mo.StopPlay();
		mo.GotoFrame(0);
		self.close();
}

function stopPlay2(){
		playOrPause2 = 1;
		mo2.StopPlay();
		mo2.GotoFrame(0);
		self.colse();
}

function movopenpop(iv) {
	window.open('etc/cf.asp?num='+iv,'movwin','width=396, height=290, top=30,left=30,scrollbars=no');
} 

function popupopen(url, id, wsize, hsize, topposition, leftposition){
	window.open(url, id, 'width='+wsize+',height='+hsize+', top='+topposition+', left='+leftposition);
}