<!-- 
var ifrContentsTimer; 

function resizeRetry() { //ÀÌ¹ÌÁö°°ÀÌ ·Îµù½Ã°£ÀÌ °É¸®´Â °ÍµéÀÌ ·ÎµùµÈÈÄ ´Ù½Ã ÇÑ¹ø ¸®»çÀÌÁî 
        if(document.body.readyState == "complete") { 
            clearInterval(ifrContentsTimer); 
        }else { 
            resizeFrame(); 
        } 
} 

function resizeFrame(){  //ÆäÀÌÁö°¡ ·ÎµùµÇ¸é ¹Ù·Î ¸®»çÀÌÁî.. 
	self.scrollTo(0,0); 
}

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_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&frames.length) {
    d=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_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];}
}

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')?'':(v=='hide')?'none':v; }
    obj.display=v; }
}

// ÇÁ·¹ÀÓ ³ôÀÌ Á¶Àý
function Resize_Frame(mFramName)
{
	try
    {
		mFramName	=	(mFramName && mFramName != undefined)?	mFramName	:	'CHAT_BODY';
		var oBody	=	document.frames[mFramName].document.body;
		var oFrame	=	document.all[mFramName];

		oFrame.style.height = oBody.scrollHeight;
		
		if (oFrame.style.height == "0px")
		{
			oFrame.style.height	=	1900;
			window.status		=	'iframe resizing fail.';
		}
		else window.status		=	'';
    }
    catch(e)
    {
		 window.status	=	'Error: ' + e.number + '; ' + e.description;
    }
}

function ListReload()
{
	document.frames['SUB_BODY_2'].location.href	=	'/etc/qeen_list_in.php?reCk=1';
}

function PopUpLay(title,url,w,h,divname,itype)
{

	if(!divname)	
	{
		divname	=	'popupDiv';
		pText	=	pText+'&divname='+divname;
	}

	if(!url)
	{
		alert("ÆäÀÌÁö °æ·Î°¡ ¾ø½À´Ï´Ù. ¿Ã¹Ù¸¥ Á¢±ÙÀ» ÇØÁÖ¼¼¿ä!");
		return;
	}
	
	if(itype == 1)
	{
		/*if(url == '/etc/qeen_list_in.php')
		{
			document.getElementById(divname).style.top	=	'10px';
			document.getElementById(divname).style.left	=	'200px';
			var pText	=	"<TABLE BORDER=0 width='"+w+"' CELLPADDING=0 CELLSPACING=0>";
				pText	+=		"<TR>";
				pText	+=			"<TD id='titleBar' style='cursor:move'>";
				pText	+=			"<ilayer width='100%' onSelectStart='return false'>";
				pText	+=			"<layer width='100%' onMouseover='isHot=true;if (isN4) ddN4("+divname+")' onMouseout='isHot=false'>";
				pText	+=			"<img src=/img/top20/top20_top_01.gif border=0>";
				pText	+=			"</layer></ilayer></TD>";
				pText	+=			"<TD width=130><img src=/img/top20/top20_top_02.gif border=0 style='cursor:hand' onClick=MM_showHideLayers('"+divname+"','','hide')><img src=/img/top20/top20_top_03.gif border=0 style='cursor:hand' onClick=ListReload()><img src=/img/top20/top20_top_04.gif border=0 style='cursor:hand' onClick=cafe_GoMovie()></TD>";
				pText	+=		"</TR>";
				pText	+=		"<TR>";
				pText	+=			"<TD colspan=2><img src=/img/top20/top20_top_05.gif border=0></TD>";
				pText	+=		"</TR>";
				pText	+=		"<TR>";
				pText	+=			"<TD colspan=2 bgcolor=#FFFFFF><iframe width='"+w+"' height='"+h+"' src='"+url+"' scrolling=no leftmargin=0 marginheight=0 frameborder=no name='SUB_BODY' id='SUB_BODY_2' align=center></iframe></TD>";
				pText	+=		"</TR>";
				pText	+=	"</table>";
		}
		else
		{
			*/
			var pText	=	"<TABLE BORDER=0 width='"+w+"' CELLPADDING=0 CELLSPACING=0>";
				pText	+=		"<TR>";
				pText	+=			"<TD bgcolor=#FFFFFF><iframe width='"+w+"' height='"+h+"' src='"+url+"' scrolling=no leftmargin=0 marginheight=0 frameborder=no name='SUB_BODY' id='SUB_BODY' align=center></iframe></TD>";
				pText	+=		"</TR>";
				pText	+=	"</table>";
		/*
		}
		*/
	}
	else if(itype == 2)
	{
		if(url == '/etc/qeen_list.php')
		{
			document.getElementById(divname).style.top	=	'10px';
			document.getElementById(divname).style.left	=	'200px';
		}
		var pText	=	"<TABLE BORDER=0 width='"+w+"' CELLPADDING=0 CELLSPACING=0>";
			pText	+=		"<TR>";
			pText	+=			"<TD><IMG SRC='/img/popdiv/popup_01.gif' WIDTH=4 HEIGHT=30></TD>";
			pText	+=			"<TD background='/img/popdiv/popup_03.gif' width=97% id='titleBar' style='cursor:move'>";
			pText	+=			"<ilayer width='100%' onSelectStart='return false'>";
			pText	+=			"<layer width='100%' onMouseover='isHot=true;if (isN4) ddN4("+divname+")' onMouseout='isHot=false'>";
			pText	+=			"&nbsp;<img src='/img/popdiv/p_icon.gif' width=18 height=18 align=absmiddle>";
			pText	+=			"&nbsp;<FONT COLOR=#FFFFFF><B>"+title+"</B></FONT></layer></ilayer></TD>";
			pText	+=			"<TD background='/img/popdiv/popup_03.gif' width=21><A onclick=\"MM_showHideLayers('"+divname+"','','hide')\" style='cursor:hand'><IMG SRC='/img/popdiv/close.gif' WIDTH=21 HEIGHT=21 border=0></A></TD>";
			pText	+=			"<TD><IMG SRC='/img/popdiv/popup_05.gif' WIDTH=4 HEIGHT=30></TD>";
			pText	+=		"</TR>";
			pText	+=		"<TR>";
			pText	+=			"<TD colspan=4 bgcolor=#FFFFFF><iframe width=100% height='"+h+"' src='"+url+"' scrolling=no leftmargin=0 marginheight=0 frameborder=no name='SUB_BODY' id='SUB_BODY' align=center></iframe></TD>";
			pText	+=		"</TR>";
			pText	+=	"</table>";
	}
	else 
	{
		var pText	=	"<TABLE BORDER=0 width='"+w+"' CELLPADDING=0 CELLSPACING=0>";
			pText	+=		"<TR>";
			pText	+=			"<TD><IMG SRC='/img/popdiv/popup_01.gif' WIDTH=4 HEIGHT=30></TD>";
			pText	+=			"<TD background='/img/popdiv/popup_03.gif' width=97% id='titleBar' style='cursor:move'>";
			pText	+=			"<ilayer width='100%' onSelectStart='return false'>";
			pText	+=			"<layer width='100%' onMouseover='isHot=true;if (isN4) ddN4("+divname+")' onMouseout='isHot=false'>";
			pText	+=			"&nbsp;<img src='/img/popdiv/p_icon.gif' width=18 height=18 align=absmiddle>";
			pText	+=			"&nbsp;<FONT COLOR=#FFFFFF><B>"+title+"</B></FONT></layer></ilayer></TD>";
			pText	+=			"<TD background='/img/popdiv/popup_03.gif' width=21><A onclick=\"MM_showHideLayers('"+divname+"','','hide')\" style='cursor:hand'><IMG SRC='/img/popdiv/close.gif' WIDTH=21 HEIGHT=21 border=0></A></TD>";
			pText	+=			"<TD><IMG SRC='/img/popdiv/popup_05.gif' WIDTH=4 HEIGHT=30></TD>";
			pText	+=		"</TR>";
			pText	+=		"<TR>";
			pText	+=			"<TD background='/img/popdiv/popup_06.gif' WIDTH=4></TD>";
			pText	+=			"<TD colspan=2 bgcolor=#FFFFFF><iframe width=100% height='"+h+"' src='"+url+"' scrolling=no leftmargin=0 marginheight=0 frameborder=no name='SUB_BODY' id='SUB_BODY' align=center></iframe></TD>";
			pText	+=			"<TD background='/img/popdiv/popup_08.gif' WIDTH=4></TD>";
			pText	+=		"</TR>";
			pText	+=		"<TR>";
			pText	+=			"<TD background='/img/popdiv/popup_09.gif' WIDTH=4 HEIGHT=4></TD>";
			pText	+=			"<TD background='/img/popdiv/popup_10.gif' colspan=2 HEIGHT=4></TD>";
			pText	+=			"<TD background='/img/popdiv/popup_11.gif' WIDTH=4 HEIGHT=4></TD>";
			pText	+=		"</TR>";
			pText	+=	"</table>";
	}

	
	MM_showHideLayers(divname,'','hide');
	document.getElementById(divname).innerHTML	=	pText;
	MM_showHideLayers(divname,'','show');
}

isIE	=	document.all; 
isNN	=	!document.all&&document.getElementById; 
isN4	=	document.layers; 
isHot	=	false; 

function ddInit(e){ 
  topDog=isIE ? "BODY" : "HTML"; 
  whichDog=isIE ? document.all.popupDiv : document.getElementById("popupDiv");  
  hotDog=isIE ? event.srcElement : e.target;  
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){ 
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode; 
  }  
  if (hotDog.id=="titleBar"){ 
    offsetx=isIE ? event.clientX : e.clientX; 
    offsety=isIE ? event.clientY : e.clientY; 
    nowX=parseInt(whichDog.style.left); 
    nowY=parseInt(whichDog.style.top); 
    ddEnabled=true; 
    document.onmousemove=dd; 
  } 
} 

function dd(e){ 
  if (!ddEnabled) return; 
  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety; 
  return false;  
} 

function ddN4(whatDog){ 
  if (!isN4) return; 
  N4=eval(whatDog); 
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP); 
  N4.onmousedown=function(e){ 
    N4.captureEvents(Event.MOUSEMOVE); 
    N4x=e.x; 
    N4y=e.y; 
  } 
  N4.onmousemove=function(e){ 
    if (isHot){ 
      N4.moveBy(e.x-N4x,e.y-N4y); 
      return false; 
    } 
  } 
  N4.onmouseup=function(){ 
    N4.releaseEvents(Event.MOUSEMOVE); 
  } 
} 

document.onmousedown=ddInit; 
document.onmouseup=Function("ddEnabled=false"); 
-->