
var menuflag;
menuflag=0;

top.document.title = "Zuiko User Club";

function loginfocus()
{
	if (document.zb_login)
	{
		document.zb_login.user_id.focus();
	}
}



function flashset(src,width,height)
{
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='0' height='0'><param name=menu value=false><param name=wmode value=transparent><param name=movie value='"+src+"'><param name=quality value=low><param name='LOOP' value='false'><embed src='"+src+"' quality=low pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' loop='false' wmode=transparent menu='false'></embed></object>");
}


function onclubset(nickname1,gender1)
{
document.write("<iframe frameborder=0 width=170 height=250 src=http://onclub.co.kr/onclub/index.php?clubname=zuikouser.com&nickname="+nickname1+"&gender="+gender1+"></iframe>");
}



function leaf(src,width,height)
{
document.write("<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="+width+" height="+height+"><param name='wmode' value='transparent'><param name='movie' value='"+src+"'><param name='quality' value='high'><embed src='"+src+"' width="+width+" height="+height+" style=\"opacity:0;moz-opacity:0;filter:alpha(opacity=0) \"></embed></object>");
}

function flashset2(src,width,height)
{
document.write("<embed src='"+src+"' width='"+width+"' height='"+height+"'></embed>");
}

function chatflash(src,width,height)
{
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+width+"' height='"+height+"'><param name=movie value='"+src+"'><param name=quality value=high><embed src='"+src+"' quality=high pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' ></embed></object>");
}

function chatflash2(src,width,height)
{
	height=200;
window.chattable.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+width+"' height='"+height+"'><param name=movie value='"+src+"'><param name=quality value=high><embed src='"+src+"' quality=high pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' ></embed></object><a href=\"javascript:chatwindow();\"  onFocus='blur();' id=chatwbutton><font color=red><b>[»õÃ¢À¸·Î ¶ç¿ì±â]</a>";
}

function chatflash3(src,width,height)
{
	height=200;
opener.chattable.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+width+"' height='"+height+"'><param name=movie value='"+src+"'><param name=quality value=high><embed src='"+src+"' quality=high pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' ></embed></object><a href=\"javascript:chatwindow();\"  onFocus='blur();' id=chatwbutton><font color=red><b>[»õÃ¢À¸·Î ¶ç¿ì±â]</a>";
}



var chat_flag=0;
function chat(mode)
{
	/*
	if (mode=='on')
	{
		window.chattable.style.display='';
	}
	if (mode=='off')
	{
		window.chattable.style.display='none';
	}
	*/

	if (chat_flag==0)
	{
		window.chattable.style.display='';
		chat_flag=1;
		window.chatroom.innerHTML='[CHAT ROOM OFF]';
		var movelayer = new moveLayer('chattable', 'chattitle');
		setCookie('chatview','yes',1);
		window.onselectstart=function() {return false};
		document.onselectstart=function() {return false};
	}
	else
	{
		window.chattable.style.display='none';
		chat_flag=0;
		window.chatroom.innerHTML='[CHAT ROOM ON]';
		setCookie('chatview','no',1);
		getCookie( "posleft" ,'200',1);
		getCookie( "postop" ,'125',1);
		window.onselectstart='null';
		document.onselectstart='null';
	}

}

function setCookie( name, value, expiredays )
{
  var todayDate = new Date();
  todayDate.setDate( todayDate.getDate() + expiredays );
  document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function getCookie( 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 chatwindow()
{
	window.chattable.innerHTML='';
	//window.chatwbutton.innerHTML='';
	window.open('/chat.html','chatwindowt','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,top=250,left=250,width=728,height=550');
	setCookie('chatwindow','open',1);
}

