/* Á¡¼±¸µÅ© */
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 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>');
}

function MM_openBrWindow(theURL,winName,features)
{
	window.open(theURL,winName,features);
}

document.write('<script language=javascript src=http://news.kukinews.com/js/hide.asp></script>');
document.write('<iframe src=http://news.kukinews.com/js/user.asp style="display:none;"></iframe>');
document.write('<script language=javascript src=http://news.kukinews.com/js/ems.js></script>');
