var font_family = "±¼¸²";
var font_size = "12px";
	
var NEOP_ALER_01_MSG01 = null;
var NEOP_ALER_01_MSG02 = null;
var NEOP_ALER_01_MSG03 = null;
var NEOP_ALER_01_MSG04 = null;
var NEOP_ALER_02_MSG01 = null;
var NEOP_ALER_02_MSG02 = null;

function aos_loadstring()
{
	if( aos_get_option("DllScan_Lang") == "en-us" )
	{
		font_family = "Tahoma";
		font_size = "11px";
		
		NEOP_ALER_00_ERROR = 'An error occurred.';
		NEOP_ALER_01_MSG01 = 'Loading AhnLab Online Security...';
		NEOP_ALER_01_MSG02 = 'Loading the scan engine...';
		NEOP_ALER_01_MSG03 = 'Scan is running...';
		NEOP_ALER_01_MSG04 = 'There is no security threat detected.';
		NEOP_ALER_02_MSG01 = 'The detected security threats have been removed.';
		NEOP_ALER_02_MSG02 = 'You must restart the computer to complete the repair process.';
		NEOP_ALER_02_MSG03 = 'The repair finished but failed to repair some files.';
		NEOP_ALER_02_MSG04 = 'You have security threats uncleared.';
	}
	else
	{
		font_family = "±¼¸²";
		font_size = "12px";
		
		NEOP_ALER_00_ERROR = '¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.';
		NEOP_ALER_01_MSG01 = 'AhnLab Online Security ·Îµù Áß...';
		NEOP_ALER_01_MSG02 = '¾Ç¼ºÄÚµå °Ë»ç ¿£Áø ·Îµù Áß...';
		NEOP_ALER_01_MSG03 = '¾Ç¼ºÄÚµå¸¦ °Ë»çÇÏ°í ÀÖ½À´Ï´Ù.';
		NEOP_ALER_01_MSG04 = '¹ß°ßµÈ À§Çè ¿ä¼Ò°¡ ¾ø½À´Ï´Ù.';
		NEOP_ALER_02_MSG01 = '¹ß°ßÇÑ À§Çè ¿ä¼Ò¸¦ ¸ðµÎ Á¦°ÅÇß½À´Ï´Ù';
		NEOP_ALER_02_MSG02 = '¾Ç¼ºÄÚµå Ä¡·á¸¦ ¸¶Ä¡·Á¸é ÄÄÇ»ÅÍ¸¦ ´Ù½Ã ½ÃÀÛÇØ¾ß ÇÕ´Ï´Ù.';
		NEOP_ALER_02_MSG03 = '¾Ç¼ºÄÚµå¸¦ Ä¡·áÇÏÁö ¸øÇß½À´Ï´Ù.';
		NEOP_ALER_02_MSG04 = '¾Ç¼ºÄÚµå¸¦ Ä¡·áÇÏÁö ¾Ê¾Ò½À´Ï´Ù.';
	}
}


var aos_modal_layer 
= 
"<div id='aos_modal' style='display:none;'>"+
"	<div class='aos_modal_background'>"+
"		<iframe src='about:blank' scrolling='no' frameborder='0'></iframe>"+
"		<div class='background'></div>"+
"	</div>"+
"	<div class='aos_modal_contents'>"+
"		<iframe src='about:blank' scrolling='no' frameborder='0'></iframe>"+
"		<div class='contents'>"+
"			<div id='neo_about_bi' class='neo_about_bi'></div>"+
"			<div id='aos_loading_icon_01' class='aos_loading_icon_01'></div>"+
"			<div id='icon_arrow_01' class='icon_arrow_01'></div>"+
"			<div id='aos_loading_icon_02' class='aos_loading_icon_02'></div>"+
"			<div id='icon_arrow_02' class='icon_arrow_02'></div>"+
"			<div id='aos_loading_icon_01' class='aos_loading_icon_01'></div>"+
"			<div id='aos_loading_icon_03' class='aos_loading_icon_03'></div>"+
"			<span id='aos_modal_msg' class='aos_modal_msg'></span>"+
"			<span id='progress_bar' class='progress_bar'></span>"+
"			<span id='progress_text' class='progress_text'></span>"+
"			<span id='po_by_ahnlab' class='po_by_ahnlab'>Powered by AhnLab</span>"+
"		</div>"+
"	</div>"+
"</div>";

if( typeof HTMLElement != "undefined" && !HTMLElement.prototype.insertAdjacentElement )
{ 
	HTMLElement.prototype.insertAdjacentElement = function(where,parsedNode) 
	{ 
		switch (where){ 
		case 'beforeBegin': 
			this.parentNode.insertBefore(parsedNode,this) 
			break; 
		case 'afterBegin': 
			this.insertBefore(parsedNode,this.firstChild); 
			break; 
		case 'beforeEnd': 
			this.appendChild(parsedNode); 
			break; 
		case 'afterEnd': 
			if (this.nextSibling) 
			this.parentNode.insertBefore(parsedNode,this.nextSibling); 
			else this.parentNode.appendChild(parsedNode); 
			break; 
		} 
	} 

	HTMLElement.prototype.insertAdjacentHTML = function(where,htmlStr) 
	{ 
		var r = this.ownerDocument.createRange(); 
		r.setStartBefore(this); 
		var parsedHTML = r.createContextualFragment(htmlStr); 
		this.insertAdjacentElement(where,parsedHTML) 
	} 

	HTMLElement.prototype.insertAdjacentText = function(where,txtStr) 
	{ 
		var parsedText = document.createTextNode(txtStr) 
		this.insertAdjacentElement(where,parsedText) 
	} 
}

function aos_write_layer(container, html)
{
	document.body.insertAdjacentHTML( "beforeEnd", html );
}

function aos_show_layer(id)
{
	var obj = document.getElementById(id);
	if( obj )
	{
		obj.style.display='block';
	}
}

function aos_hide_layer(id)
{
	var obj = document.getElementById(id);
	if( obj )
	{
		obj.style.display='none';
	}
}

function aos_set_innerHTML(id, msg)
{
	var obj = document.getElementById(id);
	if( obj )
	{
		obj.style.fontFamily=font_family;
		obj.style.fontSize=font_size;
		obj.innerHTML = msg;		
	}
}

function aos_set_width(id, width)
{
	var obj = document.getElementById(id);
	if( obj )
	{
		obj.style.width = width;
	}
}

function aos_set_backgroundImage(id, image)
{
	var obj = document.getElementById(id);
	if( obj )
	{
		obj.style.backgroundImage=image;
	}
}
