/* ¸ÞÀÎ ÇÃ·¡½¬´í½º ¹Ù²Ù±â*/
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(){
//top.location.href="/zb/zboard.php?id=GayoList&keyword="+document.form1.textfield.value;
top.location.href="/dance/GayoList/list.php?id=GayoList&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 = "";
}
/* ½ºÇÁ¶óÀÌÆ®º¸±â ³¡ */

/*float ¹è³Ê
document.write("<div id=\"Layer1\" style=\"position:absolute; left:840px; top:408px; width:100px; height:100px; z-index:1000\">");
document.write("    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">");
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_beta.swf\">");
document.write("                    <PARAM NAME=wmode VALUE=transparent>");
document.write("                    <param name=\"quality\" value=\"high\">");
document.write("                    <embed src=\"/banner/swf/flat_beta.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=\"ritght\">");
document.write("             <img src=\"/banner/btn_close.gif\" border=\"0\">       ");
document.write("     </td>");
document.write("        </tr>");
document.write("    </table>");
document.write("    </div>");
float ¹è³Ê ³¡ */


/*ÇÃ·ÎÆ® ¹è³Ê 2 ½ÃÀÛ
//-->
document.write("<div id=\"Layer1\" style=\"position:absolute; left:840px; top:408px; width:108px; height:92px; z-index:1\">");
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_beta.swf\">");
document.write("                    <PARAM NAME=wmode VALUE=transparent>");
document.write("                     ");
document.write("                    <param name=\"quality\" value=\"high\">");
document.write("                    <embed src=\"/banner/swf/flat_beta.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>");
³¡*/

/*float ¹è³Ê 3 ½ÃÀÛ */
<!--
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; }
}
//-->
/*
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>");
*/

/*float ¹è³Ê ³¡ */
 
 
 
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();


///////////////////////////////////////////////////////////////////////////
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();
}
//-->


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