var baseScript = true;

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&&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 && 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];}
}

/* FS_command for top flash menu */
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
window.onload = init;
function init() {
	var obj = document.getElementById("flashMenu");
	if (obj) {
		obj.style.height = "73px";
	}
}
// Handle all the the FSCommand messages in a Flash movie
function top_navigation_DoFSCommand(command, args) {
  var top_navigationObj = InternetExplorer ? top_navigation : document.top_navigation;

var menuObj = document.getElementById("flashMenu");

if(command!="allowscale") {

	if(command == "flashOver") {
		menuObj.style.height = "110px";
//		alert("Over");
	} else if (command == "flashOut") {
		menuObj.style.height = "73px";
//		alert("Out");
	}
/*
	//alert(menuObj.style.height);
	if (menuObj.style.height == "73px") {
		menuObj.style.height = "110px";
	} else if (menuObj.style.height == "110px") {
		menuObj.style.height = "73px";
	} else {
		//alert("ERROR!!");
	}*/
}
  //
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub top_navigation_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call top_navigation_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

function selectedBox(obj, val)
{
    var selectedIndexNum = 0;

    for (i = 0; i < obj.length; i++)
    {
        if (obj.options[i].value == val)
            selectedIndexNum = i;
    }
    obj.selectedIndex = selectedIndexNum;
}

function checkedBox(obj, val)
{
    if (obj.length == null)
    {
        if (obj.value == val)
            obj.checked = true;

        return;
    }

    for (i = 0; i < obj.length; i++)
    {
        if (obj[i].value == val)
        {
            obj[i].checked = true;
            return;
        }
    }
}

function getRadioValue(obj)
{

    for (i = 0; i < obj.length; i++)
    {
        if (obj[i].checked == true)
            return obj[i].value;
    }
    return '';
}


function wopen(url)
{

    if (self.newwin && !newwin.closed)
    {
        newwin.close();
        newwin = null;
    }

    newwin = window.open(url, "newwin", "width=800,height=600,scrollbars=yes");
}

function wopen(url, wt, ht)
{

    if (self.newwin && !newwin.closed)
    {
        newwin.close();
        newwin = null;
    }
    newwin =
        window.open(
            url,
            "newwin",
            "width=" + wt + ",height=" + ht + ",scrollbars=yes");
}

function wopen3(url, wt, ht, winName)
{

    if (self.winName && !winName.closed)
    {
        winName.close();
        winName = null;
    }
    winName =
        window.open(
            url,
            winName,
            "width=" + wt + ",height=" + ht + ",scrollbars=no");
}

function wopen(url, wt, ht, scrl)
{

    if (self.newwin && !newwin.closed)
    {
        newwin.close();
        newwin = null;
    }

    newwin =
        window.open(
            url,
            "newwin",
            "width=" + wt + ",height=" + ht + ",scrollbars=" + scrl);
}

// For Date Formatting append by yakjin.
function dateFormat(obj, mode)
{
    d = obj.value;
    if (mode == 'off')
    {
        while (d.indexOf('/') >= 0)
        {
            d =
                d.substring(0, d.indexOf('/'))
                    + d.substring(d.indexOf('/') + 1);
        }
    }
    else if (mode == 'on')
    {
        d = d.substring(0, 4) + '/' + d.substring(4, 6) + '/' + d.substring(6);
    }
    obj.value = d;
    if (mode == 'off')
    {
        obj.select();
    }
}

/**
 * ¹®ÀÚ¿­ÀÇ leftÂÊ trim()
 * @return trimµÈ ¹®ÀÚ¿­
 */
function ltrim(str)
{
    var i;
    var ch;
    var retStr = '';
    if (str.length == 0)
        return str;
    for (i = 0; i < str.length; i++)
    {
        ch = str.charAt(i);
        if (retStr.length == 0 && (ch == ' ' || ch == '\r' || ch == '\n'))
            continue;
        retStr += ch;
    }
    return retStr;
}

/**
 * ¹®ÀÚ¿­ÀÇ rightÂÊ trim()
 * @return trimµÈ ¹®ÀÚ¿­
 */
function rtrim(str)
{
    var i;
    var ch;
    var retStr = '';
    if (str.length == 0)
        return str;
    for (i = str.length - 1; i >= 0; i--)
    {
        ch = str.charAt(i);
        if (ch != ' ' && ch != '\r' && ch != '\n')
        {
            break;
        }
    }
    retStr = str.substring(0, i + 1);
    return retStr;
}

/**
 * ¹®ÀÚ¿­ÀÇ ¾çÂÊ trim()
 * @return trimµÈ ¹®ÀÚ¿­
 */
function trim(str)
{
    var retStr;
    retStr = ltrim(str);
    retStr = rtrim(retStr);
    return retStr;
}

/**
 * ¹®ÀÚ¿­Ä¡È¯
 * @return trimµÈ ¹®ÀÚ¿­
 */
function replaceStr(str, oldstr, newstr)
{
    var index = 1;
    var temp = String(str);

    if (newstr == null)
        newstr = "";

    while (index > 0)
    {
        temp = temp.replace(oldstr, newstr);
        index = temp.indexOf(oldstr);
    }

    return temp;
}


function setCookie( name, value, expiredays )
{
	var todayDate = new Date();
	if(expiredays==null)
	    expiredays = 7;
	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 "";
}
/**
 * ½ºÆ®¸µÀÌ ¼ýÀÚ·Î¸¸ ±¸¼ºµÇ¾îÀÖ´ÂÁö ¿©ºÎ ÆÇº°
 * @return boolean
 */
function isNumStr(str) {
    var i;
    var ch;
    for (i=0;i<str.length;i++) {
        ch = str.charAt(i);
        if (isNum(ch) == false) {
            return false;
        }
    }
    return true;
}

function isNum(ch) {
    return (ch >= '0' && ch <= '9');
}


function checkIdNum(idbox1, idbox2) {
    idbox1.value = alltrim(idbox1.value);
    idbox2.value = alltrim(idbox2.value);

    var today = new Date();
    var chkYear1 = today.getYear();
    var chkYear2 = 0;
    if (chkYear1 < 2000)
        chkYear1 += 1900;
    var chk = 0;
    var chk2 = 0;
    var chk3 = 0;
    var yy = idbox1.value.substring(0,2);
    var mm = idbox1.value.substring(2,4);
    var dd = idbox1.value.substring(4,6);
    var chkSex = 0 + idbox2.value.substring(0,1);

    if ((idbox1.value.length != 6 ) ||
        (mm < 1 || mm > 12 || dd < 1) )
    {
        alert ("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¹Ù·Î ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
        idbox1.focus();
        return false;
    }

    if ((chkSex != 1 && chkSex !=2 && chkSex !=3 && chkSex !=4)
        || (idbox2.value.length != 7 )) {
        alert ("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¹Ù·Î ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
        idbox2.focus();
        return false;
    }

    chkYear2 = parseInt(yy,10);
    if (chkSex == 1  || chkSex == 2)
        chkYear2 += 1900;
    else if (chkSex == 3  || chkSex == 4)
        chkYear2 += 2000;

    //"14¼¼ ¹Ì¸¸Àº °¡ÀÔÇÒ ¼ö ¾ø½À´Ï´Ù."
    if (arguments.length > 2)
    {
        if ((chkYear1 - chkYear2) < arguments[2]) {
            alert(arguments[2] + "¼¼ ¹Ì¸¸Àº °¡ÀÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
            idbox1.focus();
            return false;
        }
    }

    for (var i = 0; i <=5 ; i++) {
        chk = chk + ((i%8+2) * parseInt(idbox1.value.substring(i,i+1)))
    }
    for (var i = 6; i <=11 ; i++){
        chk = chk + ((i%8+2) * parseInt(idbox2.value.substring(i-6,i-5)))
    }

    chk = 11 - (chk %11)
    chk = chk % 10

    //"À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù."
    if (chk != idbox2.value.substring(6,7)) {
        alert ("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.");
        idbox1.focus();
        return false;
    }
    return true;
}

function checkPassword( pwdbox, pwdRebox ) {
    pwdbox.value = alltrim(pwdbox.value);

    if (pwdbox.value.length == 0) {
        alert("ºñ¹Ð¹øÈ£¸¦ ³ÖÀ¸½Ê½Ã¿À.");
        pwdbox.focus();
        return false;
    }

    if (pwdbox.value.length < 4 || pwdbox.value.length > 10) {
        alert("ºñ¹Ð¹øÈ£´Â 4ÀÚ¸® ÀÌ»ó 10ÀÚ¸® ÀÌÇÏÀÔ´Ï´Ù.");
        pwdbox.focus();
        return false;
    }
    if (pwdRebox.value.length == 0)
    {
        alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ³ÖÀ¸½Ê½Ã¿À.");
        pwdRebox.focus();
        return false;
    }
    if (pwdbox.value != pwdRebox.value)
    {
        alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê¾Ò½À´Ï´Ù.");
        pwdRebox.focus();
        return false;
    }
    return true;
}

function alltrim(str) {
    var i;
    var ch;
    var retStr = '';
    var retStr1 = '';
    if (str.length == 0)
        return str;
    for (i=0;i<str.length;i++) {
        ch = str.charAt(i);
        if (ch == ' ' || ch == '\r' || ch == '\n')
            continue;
         retStr += ch;
    }
    return retStr;
}

function checkCellPhone(phone1, phone2, phone3)
{
    phone1.value = alltrim(phone1.value);
    phone2.value = alltrim(phone2.value);
    phone3.value = alltrim(phone3.value);
    if (phone1.value.length == 0) {
        alert("¹«¼± ÀüÈ­ÀÇ ¼­ºñ½º¾÷Ã¼ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
        phone1.focus();
        return false;
    }
    if (isNumStr(phone1.value) == false) {
        alert("¹«¼± ÀüÈ­ÀÇ ¼­ºñ½º¾÷Ã¼ ¹øÈ£´Â ¼ýÀÚÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone1.focus();
        return false;
    }
    if (phone1.value.charAt(0) != "0") {
        alert("¹«¼± ÀüÈ­ÀÇ ¼­ºñ½º¾÷Ã¼ ¹øÈ£´Â 0À¸·Î ½ÃÀÛÇÏ¿©¾ß ÇÕ´Ï´Ù.");
        phone1.focus();
        return false;
    }
    if (phone1.value.length != 3) {
        alert("¹«¼± ÀüÈ­ÀÇ ¼­ºñ½º¾÷Ã¼ ¹øÈ£´Â 3ÀÚ¸®ÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone1.focus();
        return false;
    }
    if (phone2.value.length == 0) {
        alert("¹«¼± ÀüÈ­ÀÇ ±¹¹øÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
        phone2.focus();
        return false;
    }
    if (isNumStr(phone2.value) == false) {
        alert("¹«¼± ÀüÈ­ÀÇ ±¹¹øÀº ¼ýÀÚÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone2.focus();
        return false;
    }
    if (phone2.value.length != 3 && phone2.value.length != 4) {
        alert("¹«¼± ÀüÈ­ÀÇ ±¹¹øÀº 3ÀÚ¸® ¶Ç´Â 4ÀÚ¸®ÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone2.focus();
        return false;
    }
    if (isNumStr(phone3.value) == false) {
        alert("¹«¼± ÀüÈ­ÀÇ °íÀ¯¹øÈ£´Â ¼ýÀÚÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone3.focus();
        return false;
    }
    if (phone3.value.length != 4) {
        alert("¹«¼± ÀüÈ­ÀÇ °íÀ¯¹øÈ£´Â 4ÀÚ¸®ÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone3.focus();
        return false;
    }
    if (phone3.value.length == 0) {
        alert("¹«¼± ÀüÈ­ÀÇ °íÀ¯¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
        phone3.focus();
        return false;
    }
    return true;
}


function checkLinePhone(phone1, phone2, phone3, msg) {
    phone1.value = alltrim(phone1.value);
    phone2.value = alltrim(phone2.value);
    phone3.value = alltrim(phone3.value);
    if (phone1.value.length == 0) {
        alert(msg + " Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
        phone1.focus();
        return false;
    }
    if (isNumStr(phone1.value) == false) {
        alert(msg + "ÀÇ Áö¿ª¹øÈ£´Â ¼ýÀÚÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone1.focus();
        return false;
    }
    if (phone1.value.charAt(0) != "0") {
        alert(msg + "ÀÇ Áö¿ª¹øÈ£´Â 0À¸·Î ½ÃÀÛÇÏ¿©¾ß ÇÕ´Ï´Ù.");
        phone1.focus();
        return false;
    }
    if (phone1.value.length < 2) {
        alert(msg + "ÀÇ Áö¿ª¹øÈ£´Â 2ÀÚ¸® ÀÌ»óÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone1.focus();
        return false;
    }
    if (phone2.value.length == 0) {
        alert(msg + " ±¹¹øÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
        phone2.focus();
        return false;
    }
    if (isNumStr(phone2.value) == false) {
        alert(msg + " ±¹¹øÀº ¼ýÀÚÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone2.focus();
        return false;
    }
    if (phone2.value.length < 2) {
        alert(msg + " ±¹¹øÀº 2ÀÚ¸® ÀÌ»óÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone2.focus();
        return false;
    }
    if (phone3.value.length == 0) {
        alert(msg + " °íÀ¯¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
        phone3.focus();
        return false;
    }
    if (isNumStr(phone3.value) == false) {
        alert(msg + " °íÀ¯¹øÈ£´Â ¼ýÀÚÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone3.focus();
        return false;
    }
    if (phone3.value.length != 4) {
        alert(msg + " °íÀ¯¹øÈ£´Â 4ÀÚ¸®ÀÌ¾î¾ß ÇÕ´Ï´Ù.");
        phone3.focus();
        return false;
    }
    return true;
}

function checkEmail( emailbox ) {
    emailbox.value = alltrim(emailbox.value);

    if (emailbox.value.length == 0) {
        alert("ÀüÀÚ¿ìÆíÀ» ÀÔ·ÂÇÏÁö ¾Ê¾Ò½À´Ï´Ù.");
        emailbox.focus();
        return false;
    }

    if (isAllowStr(emailbox.value, "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@.-_") == false) {
        alert("ÀüÀÚ¿ìÆí¿¡´Â ¿µ¹®°ú ¼ýÀÚ - _ . @¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
        return false;
    }

    var atCnt = 0;
    var dotCnt = 0;
    for (i = 0; i < emailbox.value.length ; i++) {
        ch = emailbox.value.charAt(i);
        if (ch == "@")
            atCnt++;
        if (ch == ".") {
            dotCnt++;
        }
    }

    if (atCnt != 1 || dotCnt < 1) {
        alert ("À¯È¿ÇÏÁö ¾ÊÀº ÀüÀÚ¿ìÆíÀÔ´Ï´Ù.");
        emailbox.focus();
        return false;
    }

    var atIndex = 0;
    atIndex = emailbox.value.indexOf("@");

    if (atIndex <= 0) {
        alert ("À¯È¿ÇÏÁö ¾ÊÀº ÀüÀÚ¿ìÆíÀÔ´Ï´Ù.");
        emailbox.focus();
        return false;
    }

    return true;
}

function isAllowStr(str, allowStr) {
    var i;
    var ch;
    for (i=0;i<str.length;i++) {
        ch = str.charAt(i);
        if (allowStr.indexOf(ch) < 0) {
            return false;
        }
    }
    return true;
}

//============ Top button===============
function setVariables(){
if (navigator.appName == "Netscape") {
v=".top=";h=".left=";dS="document.";sD="";
y="window.pageYOffset";x="window.pageXOffset";iW="window.innerWidth";iH="window.innerHeight"

}

else {h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
y="document.body.scrollTop";x="document.body.scrollLeft";iW="document.body.clientWidth";iH="document.body.clientHeight"

}
xyz=500


object="logo";
checkLocationA()
}
movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0
function checkLocation(){
innerX=905
innerY=eval(iH)-50
if (document.layers){innerY-=0;innerX-=0}
yy=eval(y);
xx=eval(x);
ydiff=ystart-yy;
xdiff=xstart-xx;
if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/10),ystart-=movey
if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex
eval(dS+object+sD+v+(ystart+innerY));
eval(dS+object+sD+h+(xstart+innerX));
setTimeout("checkLocation()",10)}

function checkLocationA(){ystart=eval(y);xstart=eval(x);}

function delayLogo(){
eval(dS+object+sD+v+0);          //
eval(dS+object+sD+h+0);      //and these three too
object='logo'                     //
}

function openWin(url){
	if ( url != null )
		AnotherWin = window.open(url,"AnotherWin","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
}

/****************************
		Press Center
****************************/

function goView(cmd,new_num)
{
	document.search.cmd.value=cmd+"View";
	document.search.new_num.value=new_num;
	document.search.action="read.jsp";
	document.search.submit();
}

function goList(cmd)
{
	document.search.cmd.value=cmd+"List";
	document.search.action="list.jsp";
	document.search.submit();
}

function goSearch(cmd,type) {
	window.location = "./list.jsp?cmd="+cmd+"&s_type="+type;
}

function listSearch(form) {

	form.page.value = "1";

	if(form.s_type.value == "search")
	{
		if(form.keyword.value == "") {
			alert("Insert Keyword !");
			form.keyword.focus();
			return false;
		}
	}
	else if(form.s_type.value == "advSearch")
	{
		var isData = false;

		if(form.keyword.value.length>0) isData = true;
		if(form.from_year.value.length>0 && form.from_month.value.length>0 && form.to_year.value.length>0 && form.to_month.value.length>0) isData = true;
		if(form.co_id.value.length>0) isData = true;

		if(isData) {
			form.action="list.jsp";
			form.submit();
			return false;
		} else {
			alert("Choose Search Condition !");
			return false;
		}
	}
}

function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

function popMail(tid, type) {
	window.open('/korean/utility/protectEmail.jsp?cmd=noSpam&tid='+tid+'&type='+type,'noSpam','width=250,height=285,left=350,top=250');
}

function popMail2(tid, type) {
	window.open('/korean/utility/privacyEmail.jsp?cmd=noSpam&tid='+tid+'&type='+type,'noSpam','width=250,height=285,left=350,top=250');
}

function goURL(gURL) {

	document.urlForm.gURL.value = gURL;
	document.urlForm.action = "/korean/utility/common/openWin.jsp";
	document.urlForm.submit();

}

function goURL2(gURL) {
	location.href = gURL;
}

function sendMail() {
	wopen3('', 600, 575, 'pop');
	document.pop.submit();
}

function AnyPopView(arg){
	var url = "http://www.lgcc.tv/hosting/lg/ex_newsWindow.asp?no="+arg;
	window.open(url,"AnyPopView","top=30,left=350,scrollbars=no,location=no, resizable=no,width=350,height=385")
}

function callMovie(num)
{
	location.href = "http://www.lg.co.kr/korean/press/news/mediaList.jsp?no="+num+"&path=000003000001";
}

function AnyAdPopView(arg,w,h){
	window.open(arg,"","top=30,left=350,scrollbars=no,location=no, resizable=no,width="+w+",height="+h)
}

function openChWin(url,kind,option){

	var wnd=window.open(url,kind,option);
	wnd.focus();
}
function FullWin(){



	var page = "http://www.lg.co.kr/korean/event/welfare/welfare.html";

//	var wnd=window.open(page,"newWnd","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=0,width="+(screen.width-15)+",height="+(screen.height-52)+",top=0");
	var wnd=window.open(page,"newWnd","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=0,width=797,height=650,top=0");

	wnd.focus();

}

function local_move(para){
	if(para=='1'){
		ifr.location.href='http://www.lg.co.kr/korean/vod/vod_small.jsp?movie_file=http://www.lgcc.tv/lgccfile/news/dynamic/300k-060721-1.asx';
	}else{
		ifr.location.href='http://www.lg.co.kr/korean/vod/vod_small.jsp?movie_file=http://www.lgcc.tv/lgccfile/lgcc/dynamic/060727-pyeongchang-1.asx';
	}
}

function popResize() {
var Dwidth = parseInt(document.body.scrollWidth);
var Dheight = parseInt(document.body.scrollHeight);
var divEl = document.createElement("div");
divEl.style.position = "absolute";
divEl.style.left = "0px";
divEl.style.top = "0px";
divEl.style.width = "100%";
divEl.style.height = "100%";
document.body.appendChild(divEl);
window.resizeBy(Dwidth-divEl.offsetWidth, Dheight-divEl.offsetHeight);
document.body.removeChild(divEl);
}

//ÇÃ·¡½Ã ·Îµå
function flashLoader(width,height,dir,mainPos,subPos){
	if (dir.indexOf("swf") > 0) {
		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+"'>");
		document.write("<param name='movie' value='"+dir+"?mmenu="+mainPos+"&smenu="+subPos+"'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='wmode' value='transparent'>");
		document.write("<param name='base' value='.'>");
		document.write("<param name=FlashVars value='mmenu="+mainPos+"&smenu="+subPos+"' />");
		document.write("<embed base='.' FlashVars='mmenu="+mainPos+"&smenu="+subPos+"' src='"+dir+"?mmenu="+mainPos+"&smenu="+subPos+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' wmode='transparent'></embed>");
		document.write("</object>");
	}
	else {
		document.write("<img src='"+dir+"' width='"+width+"' height='"+height+"'  border='0'>");
	}
}