/* Á¡¼±¸µÅ© */
function bluring()
{
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

function go_logout()
{ 
    top.window.location = 'http://www.kukinews.com/login/logout.asp?reUrl='+ window.location.href;
} 

function go_login()
{ 
    top.window.location = 'http://www.kukinews.com/login/commonLogin.asp?reUrl='+ window.location.href;
}

function getMCookie(name)
{
	var prefix = name + "=";
		
	var cookieStartIndex = document.cookie.indexOf(prefix);
	if (cookieStartIndex == -1) return null;
		
	var cookieEndIndex = document.cookie.indexOf("&", cookieStartIndex + prefix.length);
	if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length;
	
	return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}

function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d)
{ //v4.0
  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 && document.getElementById) x=document.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 ShowFlash(url, 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 + '" VIEWASTEXT>');
	document.write('<param name="movie" value="' + url + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
	document.write('</object>');
}

/* */
document.write('<script language=javascript src=http://www.kukinews.com/js/hide.asp></script>');
document.write('<iframe src=http://www.kukinews.com/js/user.asp style="display:none;"></iframe>');
document.write('<script language=javascript src=http://www.kukinews.com/js/ems.js></script>');

function topScheck()
{
	if (document.topSearch.search_text.value == "")
	{
		document.topSearch.search_text.value = "ÄíÅ°´º½º";
		document.topSearch.action = "http://search.kukinews.com/searching.asp";
		document.topSearch.submit();
		return false;
	}
	else if (document.topSearch.search_text.value == "Searched by Paran")
	{
		document.topSearch.search_text.value = "ÄíÅ°´º½º";
		document.topSearch.action = "http://search.kukinews.com/searching.asp";
		document.topSearch.submit();
		return false;
	}else{
		document.topSearch.action = "http://search.kukinews.com/searching.asp";
		document.topSearch.submit();
	}
}

function printWin(aid)
{
	page = "/article/print.asp?arcid="+ aid;
	window.open(page,"","width=700,height=700,scrollbars=yes");
}

//µ¿¿µ»ó ÆË¾÷Ã¢ ¶ç¿ì±â
function vod_on(idx)
{
	window.open('http://www.kukinews.com/vod/vod.asp?idx='+idx, 'play', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,width=820, height=600');
}