/****************************************************************************
	Flash_view - ´Ü¼ø FlashÀÏ °æ¿ì
*****************************************************************************	
	- width		: °¡·ÎÅ©±â
	- height		: ¼¼·ÎÅ©±â
	- wmode	: Åõ¸í, Àý´ëÀ§Ä¡µî ·¹ÀÌ¾îÀÇ ±â´É 
	- url			: ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
*****************************************************************************/

function flashView(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' wmode='"+wmode+"' ");
	document.write("		allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write("		pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

/****************************************************************************
	F_viewSwf - ÆäÀÌÁö ÀÎ½ÄÀÌ ÀÖ´Â FlashÀÏ °æ¿ì
*****************************************************************************	
	- width		: °¡·ÎÅ©±â
	- height	: ¼¼·ÎÅ©±â
	- wmode	: Åõ¸í, Àý´ëÀ§Ä¡µî ·¹ÀÌ¾îÀÇ ±â´É 
	- url			: ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
	- page		: pageNum
	- sub	 		: subNum
*****************************************************************************/

function flashPage(width, height, wmode, url, page, sub){
	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='pageNum="+page+"&subNum="+sub+"'> ");
	document.write("	<embed src='"+url+"' FlashVars='pageNum="+page+"&subNum="+sub+"' quality='high' width='"+width+"' height='"+height+"' align='middle' wmode='"+wmode+"' ");
	document.write("		allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write("		pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	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> ");
}


/****************************************************************************
	img_over - ÀÌ¹ÌÁö ·Ñ¿À¹ö
****************************************************************************/

function img_over(img1,name,dir,over){

	if(over=='over')
	{
		img1.src=dir+name+'_on.gif';
	}
	else
	{
		img1.src=dir+name+'.gif';
	}
}

/****************************************************************************
	goSite - ¼¿·ºÆ®¹Ú½º »õÃ¢
****************************************************************************/
function goSite(site){
	if(site != ""){
	window.open(site, "", "");
	}
}


/*ÅÇÀüÈ¯(ÁÖÀÇ idÀÇ°ªÀº 1ºÎÅÍ.. total°ªÀº ÅÇ¼ö)*/
function tabDisplay(total,num){
	a = total + 1;
	for(i=1; i<a; i++){
		if( num == i){
			document.getElementById("tab0"+i).style.display = "";
		}
		else{
			document.getElementById("tab0"+i).style.display = "none";
		}
	}
}


