/* ¸ÞÀÎ ÇÃ·¡½¬´í½º ¹Ù²Ù±â*/
function changeSWF(){
	formname=document.dance;
	key_v=formname.SWFlist.options[formname.SWFlist.selectedIndex].value;
	if(key_v!=""){
		document.SWFname.movie=key_v;
	}
}
/* ¸ÞÀÎ ´í½º °Ë»ö*/
function dance_search(){
	
location.href="../sub_01/sub_01_04_search.php?d_part=dance&sub_ch=3&category=1&strsearch="+document.form1.textfield.value;
document.form1.textfield.value="";
}
/* ¸ÞÀÎ ´í½º °Ë»ö ³¡*/
/* ÃÖ½Å´í½º ¹Ì¸®º¸±â*/
function goLink()
{
	///this.list.location=lnk;
		  //var url = this.dance.sel_emo.options[dance.sel_emo.selectedIndex].value;
		  var url = document.forms['dance'].sel_emo.options[document.forms['dance'].sel_emo.selectedIndex].value;
	     if (url != '') list.location.href=url;
	     return false;
}
/* ÃÖ½Å´í½º ¹Ì¸®º¸±â ³¡*/
/* ¿ÞÂÊ ¸Þ´º ½½¶óÀÌµù */
<!--
var old_menu = '';
var old_cell = '';
var state;
var tmpID;
var fir = 1;
function menuclick(curmenu,stat) {
	//alert('curmenu = '+curmenu);
	setmenu = document.getElementById(curmenu);
	//alert('style = '+setmenu.style.display);
	//state=stat;
	if( old_menu != curmenu ) {
		if( old_menu !='' ) {
		    setmenu.style.display = 'none';
		}
		setmenu.style.display = 'block';
		
		oldmenu = document.getElementById(old_menu);
		if (oldmenu)
		oldmenu.style.display = 'none';
 
		old_menu = curmenu;
	} else {
		setmenu.style.display = 'none';
		old_menu = '';
	}
}

function menuclick_seek(curmenu,stat) {
	
	setmenu = document.getElementById(curmenu);
	
	if( old_menu != curmenu ) {
		if( old_menu !='' ) {
		    setmenu.style.display = 'none';
		}
		setmenu.style.display = 'block';
		
		oldmenu = document.getElementById(old_menu);
		if (oldmenu)
		oldmenu.style.display = 'none';
 
		old_menu = curmenu;

	} else {
		setmenu.style.display = 'block';
		old_menu = curmenu;
	}
}

function over(m1){
	if (m1!=state){
		var mov=m1;
		mov.style.cursor='hand';
		mov.style.backgroundColor='';			
		mov.style.color='';
		//mov.style.backgroundColor='#F8F0B8';			
		//mov.style.color='#855100';
	}
}
function out(m1){
	if (m1!=state){
		var mov=m1;
		mov.style.backgroundColor='';
		mov.style.color='';
	}
}

function chgimg(prm) {
	if (fir!=1) {
		tID = tmpID;
		//document.all[tID].src='menu_img/test.gif';
	}
	tmpID = prm;
	fir = 0;
	//document.all[prm].src='menu_img/arrow.gif';
}
function resto(){
	m1.style.backgroundColor='';
	m1.style.color='';
	document.all['km1'].background='http://idance.co.kr/dance/sub_menu/bar.gif';
	m2.style.backgroundColor='';
	m2.style.color='';
	document.all['km2'].background='http://idance.co.kr/dance/sub_menu/bar.gif';
	m3.style.backgroundColor='';
	m3.style.color='';
	document.all['km3'].background='http://idance.co.kr/dance/sub_menu/bar.gif';
	m4.style.backgroundColor='';
	m4.style.color='';
	document.all['km4'].background='http://idance.co.kr/dance/sub_menu/bar.gif';
	m5.style.backgroundColor='';
	m5.style.color='';
	document.all['km5'].background='http://idance.co.kr/dance/sub_menu/bar.gif';
	m6.style.backgroundColor='';
	m6.style.color='';
	document.all['km6'].background='http://idance.co.kr/dance/sub_menu/bar.gif';
	
}

function go(url){
	document.location.href=url;
}
	
	
//-->
/* ¿ÞÂÊ ¸Þ´º ½½¶óÀÌµù ³¡ */
/* ½ºÇÁ¶óÀÌÆ®º¸±â */
function showSprite( motionArg )
{
	var contents = document.getElementById( "mySprite" );
	var motion = motionArg;
	if ( motion.length == 0 )
		motion = 'nsync'; // default dance
	
	var sprite = "<OBJECT id=WingCtl codeBase=http://web.spaceillusion.com/mysprite/install/Wings2.cab#version=1,1,0,1 classid=CLSID:ED5896AC-7F1A-4095-87A8-08206DE7835C>\n<PARAM NAME=\"Location\" VALUE=\"http://web.spaceillusion.com/mysprite/" + motion + ".txt\">\n<PARAM NAME=\"List\" VALUE=\"http://web.spaceillusion.com/mysprite/" + motion +"list.txt\">\n<PARAM NAME=\"X\" VALUE=\"194\">\n<PARAM NAME=\"Y\" VALUE=\"160\">\n<PARAM NAME=\"ExitOnEnd\" VALUE=\"0\">\n<PARAM NAME=\"Program\" VALUE=\"MySpriteLE.exe\">\n</OBJECT>\n";
	contents.innerHTML = "";
	contents.innerHTML = sprite;	
	
}
function hideSprite()
{
	var contents = document.getElementById( "mySprite" );
	contents.innerHTML = "";
}
/* ½ºÇÁ¶óÀÌÆ®º¸±â ³¡ */
/*¸®¸¶¸®¿À ÆË¾÷¶ç¿ì±â
function leemariopop() {
	//
	
		window.open('http://www.idance.co.kr/banner/leemario.htm','statusbar=no, menubar=no, toolbar=no, height=300,width=181,scrollbars=no,resizable=no');
		
	//}
}
¸®¸¶¸®¿À ÆË¾÷¶ç¿ì±â*/


/*float ¹è³Ê
document.write("<div id=\"Layer1\" style=\"position:absolute; left:580px; top:10px; width:100px; height:100px; z-index:1000\">");
document.write("    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("        <tr>");
document.write("            <td><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=\"100\" height=\"100\" id=\"myFlash\">");
document.write("                    <param name=\"movie\" value=\"/banner/swf/float_0202.swf\">");
document.write("                    <PARAM NAME=wmode VALUE=transparent>");
document.write("                    <param name=\"quality\" value=\"high\">");
document.write("                    <embed src=\"/banner/swf/float_0202.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"100\" height=\"100\" name=\"myFlash\" swLiveConnect=\"true\"></embed></object></td>");
document.write("        </tr>");
document.write("    </table>");
document.write("    </div>");



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

float ¹è³Ê ³¡ */


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v;

//	   	obj_left = obj.left;
//	   	obj_left = obj_left.substr(0, obj_left.length-2);
//			
//		//	layerLeftPosition = document.body.offsetWidth/2 + parseInt(obj_left/10);
//			layerLeftPosition =  (document.body.offsetWidth/2) - (parseInt(obj_left)/2);
//
//		  if (layerLeftPosition <= parseInt(obj_left)) 
//		  {
//		      layerLeftPosition = parseInt(obj_left);
//		  }
//
//			obj.left = layerLeftPosition;
			
		}
    
}
 
 
 
function chkFloat() {
	var tt_value = getCookie( "float_layer" );

	if ( tt_value.length > 0 )
	MM_showHideLayers('Layer1','','hide');
}

function tt_writeCookie() {
	minute_setCookie( "float_layer", "prettygirl" , "20");
}

chkFloat();





/*ÇÃ·ÎÆ® ¹è³Ê 2 ½ÃÀÛ

document.write("<div id=\"Layer1\" style=\"position:absolute; left:100px; top:100px; width:108px; height:92px; z-index:1000\">");
document.write("    <table width=\"100\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("        <tr>");
document.write("            <td><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=\"100\" height=\"100\">");
document.write("                    <param name=\"movie\" value=\"/banner/swf/flat_0202.swf\">");
document.write("                    <PARAM NAME=wmode VALUE=transparent>");
document.write("                     ");
document.write("                    <param name=\"quality\" value=\"high\">");
document.write("                    <embed src=\"/banner/swf/flat_0202.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"100\" height=\"100\"></embed></object></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("            <td align=\"right\"><img src=\"/banner/btn_close.gif\" width=\"40\" height=\"20\" onClick=\"javascript:;tt_writeCookie();MM_showHideLayers('Layer1','','hide')\"></td>");
document.write("        </tr>");
document.write("    </table>");
document.write("</div>");

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}



function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
 
 
 
function chkFloat() {
	var tt_value = getCookie( "float_layer" );

	if ( tt_value.length > 0 )
	MM_showHideLayers('Layer1','','hide');
}

function tt_writeCookie() {
	minute_setCookie( "float_layer", "prettygirl" , "20");
}

chkFloat();

³¡*/

 


//-->
/*float ¹è³Ê 3 ½ÃÀÛ
document.write("<div id=\"Layer1\" style=\"position:absolute; left:950px; top:99px; width:104px; height:126px; z-index:1\">");
document.write("  <table width=\"105\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("  <tr>");
document.write("    <td><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=\"100\" height=\"100\">");
document.write("    <param name=\"movie\" value=\"/banner/swf/flat_toxic.swf\">");
document.write("    <param name=\"quality\" value=\"high\">");
document.write("                    <PARAM NAME=wmode VALUE=transparent>");
document.write("    <embed src=\"/banner/swf/flat_toxic.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"100\" height=\"100\"></embed></object>");
document.write("</td>");
document.write("  </tr>");
document.write("</table>");
document.write("</div>");
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}




float ¹è³Ê ³¡ */






///////////////////////////////////////////////////////////////////////////
function getCookie( name )
{
	//alert(name);
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length )
	{
		var y = (x+nameOfCookie.length);
		if ( document.cookie.substring( x, y ) == nameOfCookie )
		{
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
				endOfCookie = document.cookie.length;
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
			break;
	}
	return "";
}

function minute_setCookie( name, value, expiremin )
{
	var todayDate = new Date();
	todayDate.setTime(todayDate.getTime() + expiremin*60*1000); // 
	if ( expiremin == -1 )
	{
		document.cookie = name + "=" + escape( value ) + "; path=/;"
	}
	else
	{
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
	}
}
///////////////////////////////////////////////////////////////////////////



/* rollover image */

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/* rollover image  ³¡*/

/* ÆË¾÷ ·¹ÀÌ¾î ¿òÁ÷ÀÌ±â ½ÃÀÛ*/

<!--
var x =0
var y=0
drag = 0
move = 0
window.document.onmousemove = mouseMove
window.document.onmousedown = mouseDown
window.document.onmouseup = mouseUp
window.document.ondragstart = mouseStop
function mouseUp() {
move = 0
}
function mouseDown() {
if (drag) {
clickleft = window.event.x - parseInt(dragObj.style.left)
clicktop = window.event.y - parseInt(dragObj.style.top)
dragObj.style.zIndex += 1
move = 1
}
}
function mouseMove() {
if (move) {
dragObj.style.left = window.event.x - clickleft
dragObj.style.top = window.event.y - clicktop
}
}
function mouseStop() {
window.event.returnValue = false
}
function Show(divid) {
divid.filters.blendTrans.apply();
divid.style.visibility = "visible";
divid.filters.blendTrans.play();
}
function Hide(divid) {
divid.filters.blendTrans.apply();
divid.style.visibility = "hidden";
divid.filters.blendTrans.play();
}
//-->


/* ÆË¾÷ ·¹ÀÌ¾î ¿òÁ÷ÀÌ±â ½ÃÀÛ*/




/* ¾ÆÀÌ´í½º »ó´Ü ¸Þ´º ·¹ÀÌ¾î ½ÃÀÛ*/


function show() {
if(navigator.appName != "Netscape") {
if(document.all['sub'].style.visibility == "visible")
document.all['sub'].style.visibility = "hidden";
else
document.all['sub'].style.visibility = "visible";
}
if(navigator.appName == "Netscape") {
if(document.layers['sub'].visibility == "show")
document.layers['sub'].visibility = "hide";
else
document.layers['sub'].visibility = "show";
}
}
//-->




/* ¾ÆÀÌ´í½º »ó´Ü ¸Þ´º ·¹ÀÌ¾î ½ÃÀÛ*/

/* 20051013 _Á¤¼± ¼öÁ¤ ºÎºÐ ½ÃÀÛ     */

/* °Ô½ÃÆÇ ³»¿ë¿¡ µû¶ó ´Ã¾î³ª±â */

function ReSizeIframe() 
{ 
var table1 = document.getElementById("table1");
//table1.Height = contents.document.body.scrollHeight; 
//table1.width = contents.document.body.scrollWidth;  
//2007.04.11
table1.setExpression("height", contents.document.body.scrollHeight);
table1.setExpression("width", contents.document.body.scrollWidth);

//alert (table1.Height);
}

/* °Ô½ÃÆÇ ³»¿ë¿¡ µû¶ó ´Ã¾î³ª±â */

/* ÆÐ¹Ð¸® ½ÎÀÌÆ®  */

	//ÆÐ¹Ð¸® ½ÎÀÌÆ® Ã³¸® ºÎºÐ
	function chSelect(strURL){
    if (strURL == "fimmSite"){
    MagicnGoMenu("XA00000",null); //ÇË »çÀÌÆ® ÀÌµ¿ ºÎºÐ
    }else if (strURL == "voisnSite"){
    MagicnGoMenu("XB00000",null);//º¸ÀÌ½º¿£ »çÀÌÆ® ÀÌµ¿ ºÎºÐ
	}else if (strURL == ""){
    //°ªÀÌ ¾Æ¹«°Íµµ ¾øÀ¸¸é ¹ÝÀÀ ¾øÀ½
	}else{//³ª¸ÓÁö ÆÐ¹Ð¸® ½ÎÀÌÆ® ÆË¾÷Ã¢ Ã³¸®
	window.open(strURL,"_blank");
	}
	}


/*  ÀÌ¹ÌÁö Á¡¼± ¾ø¾Ö±â  */

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 


function JS_ShowDialog( html, message, width, height )
{
	if( width == 0 || height == 0 )
	{
		width = 300;
		height = 130;
	}

	var result = window.showModalDialog( html, message, 
		"dialogWidth:" + width + "px;" + 
		"dialogHeight:" + height + "px;" +
		"edge:raised; center:yes; help:no; resizable:no; status:no; scroll:no;" );
		
	return result;
}






/* add by ikalos ÀÓÃ¤ÁØ. ÀÌº¥Æ® ·¹ÀÌ¾î º¸ÀÌ±â/¾Èº¸ÀÌ±â (ÇÏ·çµ¿¾È º¸Áö ¾Ê±â)*/
/* ÇÏ·çµ¿¾È ¾Èº¸ÀÌ±â °ü·Ã ÇÔ¼ö */
function getCookie_ikalos( name ){
	
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length ){
		var y = (x+nameOfCookie.length);
		//alert(document.cookie.substring( x, y ));
		if ( document.cookie.substring( x, y ) == nameOfCookie ) 
		{
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
			endOfCookie = document.cookie.length;
			//alert(document.cookie.substring( y, endOfCookie ));
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		
		if ( x == 0 )
			break;
	}
	return "";
}

function setCookie_ikalos( name, value, expiredays ){
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	//todayDate.setSeconds( todayDate.getSeconds() + 10 ); //for test code
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function NotShowThisLayerToday(val)
{
	targetDiv = document.getElementById(val);
	targetDiv.style.display="none";
	setCookie_ikalos( "DoNotShowEventLayer", "check" , 1); 
}

/* ÃÖ½Å »óÇ°µé ÁÂ¿ì ÀÌµ¿ °ü·Ã ÃÊ±âÈ­ ÇÔ¼ö */
