ns=window.navigator.appName == "Netscape" 
ie=window.navigator.appName == "Microsoft Internet Explorer" 

function openIt(x) { 

	// NS ÀÇ °æ¿ì 	
	if(ns) { 
		showbox= document.layers[x+1] 
		showbox.visibility = "show"; 
		showbox.top=96; 

	var items = 8 ; // ¸Þ´ºÀÇ °¹¼ö 
		for (i=1; i<=items; i++) { 
			Elopen=document.layers[i] 
			if (i != (x + 1)) { 
			Elopen.visibility = "hide" 
			} 
		} 
	} 

	// IE ÀÏ °æ¿ì 
	if(ie) { 
		curEl = event.toElement 
		// curEl.style.background = "yellow" // ¸¶¿ì½º ¿À¹ö½Ã ¹è°æ»ö 

		showBox = document.all.box[x]; 
		showBox.style.visibility = "visible"; 
		showBox.style.top = 96; // ¼­ºê¸Þ´ºÀÇ À§ÂÊ¿©¹é 

		var items = 8 // ¸Þ´ºÀÇ °¹¼ö 
			for (i=0; i<items; i++) { 
				ElOpen=document.all.box[i] 
				barEl=document.all.mnubar[i] 
				if (i != x){ 
					ElOpen.style.visibility = "hidden" 
					barEl.style.background = "white" // ºñÈ°¼º¸Þ´º ¹è°æ»ö 
				} 
			} 
	} 
} 

function closeIt() { 
	var items = 8 // ¸Þ´ºÀÇ °¹¼ö 
	for (i=0; i<items; i++) { 
		if(ie){ 
			document.all.box[i].style.visibility = "hidden" 
			barEl=document.all.mnubar[i] 
			barEl.style.background = "white" 
		} 
		if(ns){ document.layers[i+1].visibility = "hide"} 
	} 
} 


//------ ½½¶óÀÌµù Äü¸Þ´º

//---- °Ë»öºÎºÐ ----
var c=false;
function ch1 () {
if ( c ) return;
document.SearchForm.q.style.backgroundImage="";
c=true;
}

function checksearchform(){
    if(checkformSubmit_s()) document.SearchForm.submit();
}

function checkformSubmit_s(){
    var form = document.SearchForm;

    if( form.key.value == '' ) {
        alert('[°Ë»ö¾î]¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        form.key.focus();
        return false;
    }
   return true;
}


//------- Flash

function mov(src,w,h){
	html = '';
	html += '<OBJECT ID=NSPlay Name=NSPlay classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..."  type="application/x-oleobject "	bgcolor="DarkBlue"  style="ACCELERATOR: true; WIDTH: '+w+'px ; HEIGHT: '+h+'px" border="0" width="'+w+'" height="'+h+'" VIEWASTEXT>';
	html += '<PARAM NAME="AutoStart" VALUE="'+src+'">';
	html += '<PARAM NAME="AnimationAtStart" VALUE="1">';
	html += '<PARAM NAME="Enabled" VALUE="true">';
	html += '<PARAM NAME="Filename" VALUE="'+src+'">';
	html += '<PARAM NAME="Volume" VALUE="0">';
	html += '<PARAM NAME="ShowCaptioning" VALUE="0">';
	html += '<PARAM NAME="TransparentAtStart" VALUE="1">';
	html += '<PARAM NAME="ShowTracker" VALUE="false">';
	html += '<PARAM NAME="ShowControls" VALUE="false">';
	html += '<\/object>';
	document.write(html);
}

/*
function mov(src,w,h){
	html = '';
	html += '<OBJECT ID=NSPlay Name=NSPlay classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..."  type="application/x-oleobject "	bgcolor="DarkBlue"  style="ACCELERATOR: true; WIDTH: '+w+'px ; HEIGHT: '+h+'px" border="0" width="'+w+'" height="'+h+'" VIEWASTEXT>';
	html += '<PARAM NAME="AutoStart" VALUE="'+src+'">';
	html += '<PARAM NAME="AnimationAtStart" VALUE="1">';
	html += '<PARAM NAME="ShowControls" VALUE="1">';
	html += '<PARAM NAME="ShowStatusBar" VALUE="1">';	
	html += '<PARAM NAME="AutoRewind" VALUE="0">';	
	html += '<PARAM NAME="ShowDisplay" VALUE="0">';		
	html += '<PARAM NAME="Enabled" VALUE="true">';
	html += '<PARAM NAME="Filename" VALUE="'+src+'">';
	html += '<PARAM NAME="Volume" VALUE="0">';
	html += '<PARAM NAME="ShowCaptioning" VALUE="0">';
	html += '<PARAM NAME="Autostart" VALUE="1">';	
	html += '<PARAM NAME="TransparentAtStart" VALUE="1">';
	html += '<\/object>';
	
	document.write(html);
}

*/

function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="best">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="menu" value="false">';
	html += '<param name=wmode value="transparent">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=best wmode="transparent" bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}
