/****************************************************************************
	F_viewSwf - ´Ü¼ø FlashÀÏ °æ¿ì
*****************************************************************************	
	- width		: °¡·ÎÅ©±â
	- height	: ¼¼·ÎÅ©±â
	- wmode	: Åõ¸í, Àý´ëÀ§Ä¡µî ·¹ÀÌ¾îÀÇ ±â´É 
	- url			: ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
*****************************************************************************/
function F_viewSwf(width, height, wmode, url){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("		codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("		width='"+width+"' height='"+height+"' align='middle'>");
	document.write("	<param name='allowScriptAccess' value='always' /> ");
	document.write("	<param name='movie'				value='"+url+"' /> ");
	document.write("	<param name='quality'			value='high' /> ");
	document.write("	<param name='wmode'				value='"+wmode+"'> ");
	document.write("	<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("		allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write("		pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}


/*****************************************************************************
	F_viewSwf02 - Flash flashVars °ª Á¸ÀçÇÒ °æ¿ì
******************************************************************************
	- width		: °¡·ÎÅ©±â
	- height	: ¼¼·ÎÅ©±â
	- wmode	: Åõ¸í, Àý´ëÀ§Ä¡µî ·¹ÀÌ¾îÀÇ ±â´É 
	- url			: ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
	- fvalues	: ÇÃ·¡½¬¿¡°Ô º°µµÀÇ °ªÀ» ´øÁ® ÁÖ¾î¾ß ÇÒ °æ¿ì
*****************************************************************************/
function F_viewSwf02(width, height, wmode, url, fvalues){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("		codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("		width='"+width+"' height='"+height+"' align='middle'>");
	document.write("	<param name='allowScriptAccess' value='always' /> ");
	document.write("	<param name='movie'				value='"+url+"' /> ");
	document.write("	<param name='quality'			value='high' /> ");
	document.write("	<param name='wmode'				value='"+wmode+"'> ");
	document.write("	<param name='flashVars'			value='"+fvalues+"'/> ");  
	document.write("	<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("		allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write("		pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}


/*******************************************************************************************************************************************
	F_viewSwf03 - ¿©·¯ ÆÄ¶ó¹ÌÅÍ Á¸ÀçÇÒ°æ¿ì 
******************************************************************************************************************************************
	- width		: °¡·ÎÅ©±â
	- height	: ¼¼·ÎÅ©±â
	- idname	: ¿ÀºêÁ§Æ®¿¡ ¾ÆÀÌµð °ªÀÌ ÇÊ¿äÇÒ °æ¿ì 
	- obname	: ¿ÀºêÁ§Æ® ³×ÀÓÀÌ ÇÊ¿äÇÒ °æ¿ì
	- allowscriptaccess	: ½ºÅ©¸³Æ® Á¦¾îÁ¤º¸ (¿¹ : sameDomain) 
	- quality	: play µÇ´Â µ¿¾È »ç¿ëµÉ anti-aliasingÀÇ ·¹º§À» ¼³Á¤ (¿¹ : low | high | autolow | autohigh | best)
	- wmode	: Åõ¸í, Àý´ëÀ§Ä¡µî ·¹ÀÌ¾îÀÇ ±â´É 
	- scale		: WIDTH ¿Í HEIGHT °ªÀÌ ÆÛ¼¾Æ®·Î ÁöÁ¤µÇ¾î ÀÖ´Â °æ¿ì, movie°¡ ºê¶ó¿ìÀú windowÀÇ ¾î´À °÷¿¡ À§Ä¡ÇÒ °ÍÀÎÁö ¼³Á¤ 
			¿¹) showall  ¿øº» È­¸éºñÀ²ÀÌ Àû¿ëµÇ´Â Æ¯Á¤ ¿µ¿ª¾È¿¡ movie ÀüÃ¼¸¦ À§Ä¡. µÚÆ²¸²Àº ¹ß»ýÇÏÁö ¾ÊÀ¸¸ç, movieÀÇ µÎ ºÎºÐÀÇ °æ°è¼±ÀÌ ³ªÅ¸³² 
				 noborder ¿øº» È­¸éºñÀ²ÀÌ Àû¿ëµÇ´Â Æ¯Á¤ ¿µ¿ªÀ» Ã¤¿ì±â À§ÇØ movieÀÇ Å©±â¸¦ Á¶Àý. µÚÆ²¸²Àº ¹ß»ýÇÏÁö ¾ÊÀ¸¸ç, movieÀÇ ÀÏºÎ°¡ Â©·Á ³ª°¨ 
				 exactfit Æ¯Á¤ ¿µ¿ª¿¡ ÀüÃ¼°¡ º¸¿©Áöµµ·Ï ¸¸µë. ¿øº» È­¸éºñÀ²¿¡ »ó°ü¾ø±â ¶§¹®¿¡ µÚÆ²¸²ÀÌ ¹ß»ý
	- bgcolor	: ¹è°æ»ö (¿¹ : #ffffff)
	- swLiveConnect : ºê¶ó¿ìÀú°¡ Ã³À½ Flash Player¸¦ load ÇÏ´Â °æ¿ì Java¸¦ ½ÃÀÛÇÒ °ÍÀÎÁö ¼³Á¤ (¿¹ : true | false)
	- fvalues	: ÇÃ·¡½¬¿¡°Ô º°µµÀÇ °ªÀ» ´øÁ® ÁÖ¾î¾ß ÇÒ °æ¿ì
	- base		: base directory or URL
	- url			: ÇÃ·¡½¬ÀÇ °æ·Î
	
	F_viewSwf03("740", "31", "", "", "", "high", "transparent", "", "#ffffff", "", "", "", "http://image.cjmall.com/common/images/gnb_menu.swf?inc_menu_type=1");
*******************************************************************************************************************************************/
function F_viewSwf03(width, height, idname, obname, allowscriptaccess, quality, wmode, scale, bgcolor, swLiveConnect, fvalues, base, url){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("		codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");

	if(idname != ""){
		document.write("		id='"+idname+"' ");	}
	document.write("		width='"+width+"' ");
	document.write("		height='"+height+"'>");
	document.write("	<param name='movie'				value='"+url+"'/>");
	document.write("	<param name='quality'			value='"+quality+"'/>");
	document.write("	<param name='wmode'				value='"+wmode+"'/>");

	if(allowscriptaccess != ""){
		document.write("	<param name='allowscriptaccess' value='"+allowscriptaccess+"'/>");	}
	if(base != ""){
		document.write("	<param name='base'			value='"+base+"'/>");}
	if(bgcolor != ""){
		document.write("	<param name='bgcolor'		value='"+bgcolor+"' /> ");	}
	if ( fvalues != "" ) {
		document.write("	<param name='flashVars'		value='"+fvalues+"'/> ");    	}

	document.write("	<param name='scale'				value='"+scale+"' />");
	document.write("	<embed	src					='"+url+"'");
	document.write("			base				='"+base+"' ");
	document.write("			scale				='"+scale+"' ");
	document.write("			swLiveConnect		='"+swLiveConnect+"' ");

	if(idname != ""){
		document.write("			id					='"+idname+"' ");	}
	if(obname != ""){
		document.write("			name				='"+obname+"' ");	}
	if(allowscriptaccess != ""){
		document.write("			allowScriptAccess	='"+allowscriptaccess+"' ");	}

	document.write("			quality				='"+quality+"' ");
	document.write("			wmode				='"+wmode+"' ");
	document.write("			width				='"+width+"' ");
	document.write("			height				='"+height+"' ");
	document.write("			type='application/x-shockwave-flash' ");
	document.write("			pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>");
	document.write("</object>");
}


/***********************************************************************************************************
	F_viewMediaPlayer - Microsoft Windows Media Player Àç»ý
************************************************************************************************************
	¿¹) F_viewMediaPlayer('NSPlay','NSPlay','322','286','true','true','true','false','false','false','false','ÆÄÀÏ¸í');
************************************************************************************************************/
function F_viewMediaPlayer(id, name, width, height, showcontrols, autostart, autorewind, autosize, autoresize, transparentatstart, loop, url) {
	document.write("<object id='"+id+"' codeBase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' "); 
	document.write("		type='application/x-oleobject' standby='Loading Microsoft Windows Media Player components...' "); 
	document.write("		width='"+width+"' height='"+height+"' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' name='"+name+"'> ");
	document.write("	<param name='ShowControls' value='"+showcontrols+"'> ");
	document.write("	<param name='AutoStart' value='"+autostart+"'> ");
	document.write("	<param name='AutoRewind' value='"+autorewind+"'> ");
	document.write("	<param name='Autosize' value='"+autosize+"'> ");
	document.write("	<param name='AutoResize' value='"+autoresize+"'> ");
	document.write("	<param name='TransparentAtStart' value='"+transparentatstart+"'> ");
	document.write("	<param name='loop' value='"+loop+"'> ");
	document.write("	<param name='Filename' value='"+url+"'> ");
	document.write("	<embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/' "); 
	document.write("		id='"+id+"' name='"+name+"' showpositioncontrols='0' showcontrols='0' autosize='0' autostart='1' showdisplay='0' ");
	document.write("		showstatusbar='0' showtracker='1' loop='1' width='"+width+"'  height='"+height+"' src='"+url+"'> ");
	document.write("	</embed> "); 
	document.write("</object> ");
}