
/************************************************************/

// °øÅë-±âº»ÀÌ¹ÌÁö·Ñ¿À¹ö
function ch(name,img){
	var imgUrl = "/future/images/"
	name.src = imgUrl + img;
}		

// °øÅë-Ã§¸°Àú¼­ºê
function challenger() {
	var ch = document.body.scrollHeight - 210 ;
	document.all.challenger.style.pixelTop = ch ;
	document.all.challenger.style.visibility = "visible";
}

/************************************************************/

function home(){
	window.location.href = '/index.jsp';
}

/************************************************************/

// Å¾¹öÆ°½ºÅ©·Ñ
function CheckUIElements()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;
                yButtonFrom = parseInt (divMenu.style.top, 10);
                yButtonTo   = document.body.scrollTop + document.body.clientHeight - 265;
        timeoutNextCheck = 500;
        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }
        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;
                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
             			timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;
                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
                		timeoutNextCheck = 10;
        }
        setTimeout ("CheckUIElements()", timeoutNextCheck);
}
function OnLoad()
{
        var y;
                divMenu.style.top = document.body.scrollTop + document.body.clientHeight - 265;
                divMenu.style.visibility = "visible";
        CheckUIElements();
        return true;
}

/************************************************************/

// ÀÌ¸ÞÀÏ ¹«´Ü¼öÁý °ÅºÎ ÆË¾÷
function email(){
  var opt = "width=350,height=437,top=100,left=100,scrollbars=no" ; 
	window.open('/utility/pop_email.jsp', 'email',opt) ;
}	

// LGÆÐ¹Ð¸®»çÀÌÆ® ÆË¾÷
function family(){
  var opt = "width=613,height=500,top=100,left=100,scrollbars=yes" ; 
	window.open('http://www.lg.co.kr/korean/lgsite/index.shtml', 'family',opt) ;
}	

/************************************************************/

// ¹Ì¾ó¿¡¼¼ÀÌ ÆË¾÷
function essay(){
	var w = 770 ;
	var h = 584 ;
	var winX = (screen.availWidth - w) * 0.5 ;
	var winY = (screen.availHeight - h) * 0.5 ;
	
	var opt = "width=" + w + ",height=" + h + ",top=" + winY + ",left=" + winX + ",scrollbars=no,status=no,titlebar=no,menubar=no,location=no,toolbar=no";
	window.open('/future/images/2005/04/flash/essay/pop_essay.html', 'essay',opt) ;
}

// ¸ÚÁø°É&¸ÚÁø³² ÆË¾÷
function girlnboy(){
	window.open('/future/images/2005/04/flash/girlnboy/stage.html','girlnboy','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=100,height=100');	
}

/************************************************************/