//¼­ºê Å¾ ÇÃ·¡½Ã

function top_menu(src,w,h){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="881" height="119"><param name="movie" value="/Flash/top_menu.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="/Flash/top_menu.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="881" height="119"></embed></object>');
}

/* ÇÃ·¡½Ã ÇÔ¼ö */

function Flash(id,url,w,h,bg,t){
document.write("\
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src="+url+" wmode="+t+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' wmode='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}

// FAQ
var faq_idx_tmp = 0;
function faqView(idx) {
	if (faq_idx_tmp != 0) document.getElementById("a"+faq_idx_tmp).style.display = "none";
	document.getElementById("a"+idx).style.display = "block";
	faq_idx_tmp = idx;
}
/* ·¹ÀÌ¾î º¸ÀÌ±â ========================================================================= */
function showdiv(targetEl) {
	if(document.getElementById(targetEl)) document.getElementById(targetEl).style.display="block";
}
function hidediv(targetEl) {
	if(document.getElementById(targetEl)) document.getElementById(targetEl).style.display="none";
}
// terms
var faq_idx_tmp = 0;
function termsView(idx) {
	if (faq_idx_tmp != 0) document.getElementById("a"+faq_idx_tmp).style.display = "none";
	document.getElementById("a"+idx).style.display = "block";
	faq_idx_tmp = idx;
}
/* µ¿¿µ»óº¸±â ========================================================================= */
function embedMedia(url,width,height){
var str="";
str+="<embed src='";
str+= url;
str+= "' name='mmsPlayer' autostart=true loop=false width='";
str+= width;
str+= "' height='";
str+= height
str+= "'>";
document.write(str);
}
// JavaScript Document
function embedMedia(url,width,height, Name){
var str="";
str+="<embed src='";
str+= url;
str+= "' name='";
str+= Name;
str+= "' autostart=true loop=false ShowControls=0 width='";
str+= width;
str+= "' height='";
str+= height
str+= "'>";
document.write(str);
}

// JavaScript Document
function writeObjMovie(f_uri,f_width,f_height,lan){
			document.write("<object name='MediaPlayer1' id='MediaPlayer1' width='"+f_width+"' height='"+f_height+"' classid='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112' standby='loading windows media player components...' type='application/x-oleobject'>");
			document.write("<param name='filename' value='"+f_uri+"'>");
			document.write("<param name='autostart'   value='true' >");
			document.write("<param name='showcontrols' value='0'>");
			document.write("<param name='showstatusbar' value='1'>");
			document.write("<param name='enablecontextmenu' value='false'>");
			document.write("<param name='transparentatstart' value='true'>");
			document.write("<param name='transparentonstop' value='true'>");
			document.write("<EMBED TYPE='application/x-mplayer2' id='MP1' name='MP1' SRC='"+f_uri+"' NAME='mplay1' WIDTH='"+f_width+"' HEIGHT='"+f_height+"'></EMBED>");
			document.write("</object>");
		}

		function playIt(){
			document.getElementById('MediaPlayer1').Play();
		}

		function pauseIt(){
			document.getElementById('MediaPlayer1').Pause();
		}

		function stopIt(){
			document.getElementById('MediaPlayer1').Stop();
			document.getElementById('MediaPlayer1').CurrentPosition=0;
		}
//»õÃ¢¶ç¿ì±â
function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

//ÇÏ´ÜÁ¡ÇÁ¸Þ´º
function jumpMenu(selObj) {
	var url = selObj.options[selObj.selectedIndex].value;
	
	if(url.length > 0)
		window.open(url, '');
}
